Update 'rand' dependency to 0.8.

This commit is contained in:
Jeb Rosen 2021-02-28 16:18:37 -08:00
parent e332ee83da
commit 9d45e786bb
6 changed files with 6 additions and 6 deletions

View File

@ -42,7 +42,7 @@ parking_lot = "0.11"
ubyte = {version = "0.10", features = ["serde"] } ubyte = {version = "0.10", features = ["serde"] }
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
figment = { version = "0.10.2", features = ["toml", "env"] } figment = { version = "0.10.2", features = ["toml", "env"] }
rand = "0.7" rand = "0.8"
either = "1" either = "1"
[dependencies.tokio] [dependencies.tokio]

View File

@ -7,4 +7,4 @@ publish = false
[dependencies] [dependencies]
rocket = { path = "../../core/lib" } rocket = { path = "../../core/lib" }
rand = "0.7" rand = "0.8"

View File

@ -15,7 +15,7 @@ log = "0.4"
[dev-dependencies] [dev-dependencies]
parking_lot = "0.11" parking_lot = "0.11"
rand = "0.7" rand = "0.8"
[dependencies.rocket_contrib] [dependencies.rocket_contrib]
path = "../../contrib/lib" path = "../../contrib/lib"

View File

@ -95,7 +95,7 @@ fn test_many_insertions() {
for i in 0..ITER { for i in 0..ITER {
// Issue a request to insert a new task with a random description. // Issue a request to insert a new task with a random description.
let desc: String = thread_rng().sample_iter(&Alphanumeric).take(12).collect(); let desc: String = thread_rng().sample_iter(&Alphanumeric).take(12).map(char::from).collect();
client.post("/todo") client.post("/todo")
.header(ContentType::Form) .header(ContentType::Form)
.body(format!("description={}", desc)) .body(format!("description={}", desc))

View File

@ -183,7 +183,7 @@ Finally, add a dependency for the `rand` crate to the `Cargo.toml` file:
```toml ```toml
[dependencies] [dependencies]
# existing Rocket dependencies... # existing Rocket dependencies...
rand = "0.6" rand = "0.8"
``` ```
Then, ensure that your application builds with the new code: Then, ensure that your application builds with the new code:

View File

@ -10,5 +10,5 @@ rocket = { path = "../../core/lib", features = ["secrets"] }
doc-comment = "0.3" doc-comment = "0.3"
rocket_contrib = { path = "../../contrib/lib", features = ["json", "tera_templates", "diesel_sqlite_pool"] } rocket_contrib = { path = "../../contrib/lib", features = ["json", "tera_templates", "diesel_sqlite_pool"] }
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
rand = "0.7" rand = "0.8"
figment = { version = "0.10", features = ["toml", "env"] } figment = { version = "0.10", features = ["toml", "env"] }