Skip to content

Commit 519f488

Browse files
committed
chore(Cargo.toml): Better document direct deps
- Slight adjustments to the version fields for compatibility with `cargo +nightly update -Z direct-minimal-versions` for MSRV `1.56.0` - Add `rust-version` field for leveraging `cargo +nightly update -Z msrv-policy` to generate a lockfile that respects the MSRV, and the benefit of downstreams. - Communicate why `dev-dependencies` are required (examples / tests). - Avoid repeating deps in `dev-dependencies`. - Raise fixed `warp` dev dep to a MSRV compatible version with common `tokio-util` implicit dep. Simplifies CI lock maintenance. Signed-off-by: Brennan Kinney <[email protected]>
1 parent 2ded348 commit 519f488

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

Cargo.toml

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ authors = ["Ryan Leckey <[email protected]>"]
1010
categories = ["config"]
1111
license = "MIT/Apache-2.0"
1212
edition = "2018"
13+
rust-version = "1.56.0"
1314

1415
[badges]
1516
maintenance = { status = "actively-developed" }
@@ -23,13 +24,13 @@ json5 = ["json5_rs"]
2324
preserve_order = ["indexmap", "toml/preserve_order", "serde_json/preserve_order", "ron/indexmap"]
2425

2526
[dependencies]
26-
async-trait = "0.1.50"
27-
lazy_static = "1.0"
28-
serde = "1.0.8"
27+
async-trait = "0.1.2"
28+
lazy_static = "1.4"
29+
serde = "1.0.99"
2930
nom = "7"
3031

3132
toml = { version = "0.5", optional = true }
32-
serde_json = { version = "1.0.2", optional = true }
33+
serde_json = { version = "1.0.0", optional = true }
3334
yaml-rust = { version = "0.4", optional = true }
3435
rust-ini = { version = "0.18", optional = true }
3536
ron = { version = "0.7", optional = true }
@@ -38,16 +39,24 @@ indexmap = { version = "1.7.0", features = ["serde-1"], optional = true}
3839
pathdiff = "0.2"
3940

4041
[dev-dependencies]
41-
serde_derive = "1.0.8"
4242
float-cmp = "0.9"
43-
chrono = { version = "0.4", features = ["serde"] }
44-
tokio = { version = "1", features = ["rt-multi-thread", "macros", "fs", "io-util", "time"]}
45-
warp = "=0.3.1"
46-
futures = "0.3.15"
47-
reqwest = "0.11.10"
4843

49-
serde = "1.0"
44+
# tests/legacy (available in serde via `features = ["derive"]` since 1.0.103)
45+
serde_derive = "1.0.99"
46+
47+
# tests/datetime.rs + tests/legacy/datetime.rs
48+
chrono = { version = "0.4.23", features = ["serde"] }
49+
50+
# examples/async_source
51+
warp = "=0.3.5"
52+
futures = "0.3"
53+
reqwest = "0.11"
54+
# Additionally tests/async_builder.rs
55+
tokio = { version = "1.13", features = ["rt-multi-thread", "macros"]}
56+
57+
# examples/glob
5058
glob = "0.3"
51-
lazy_static = "1"
52-
notify = "^4.0.0"
59+
# examples/watch
60+
notify = "4.0.0"
61+
# tests/env.rs
5362
temp-env = "0.2.0"

0 commit comments

Comments
 (0)