mirror of https://github.com/rwf2/Rocket.git
Update 'rand' dependency to 0.8.
This commit is contained in:
parent
e332ee83da
commit
9d45e786bb
|
@ -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]
|
||||||
|
|
|
@ -7,4 +7,4 @@ publish = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rocket = { path = "../../core/lib" }
|
rocket = { path = "../../core/lib" }
|
||||||
rand = "0.7"
|
rand = "0.8"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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))
|
||||||
|
|
|
@ -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:
|
||||||
|
|
|
@ -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"] }
|
||||||
|
|
Loading…
Reference in New Issue