Skip to content

Commit 98d6c69

Browse files
committed
make parking_lot optional in tokio dep
1 parent 4b4eddc commit 98d6c69

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ regex = "1.7"
3333
serde_json = "1.0"
3434
serde_urlencoded = "0.7"
3535
similar = "2.2"
36-
tokio = { version = "1.25", features = ["net", "parking_lot", "rt", "sync"] }
36+
tokio = { version = "1.25", features = ["net", "rt", "sync"] }
3737

3838
[dev-dependencies]
3939
env_logger = "0.8"
@@ -43,5 +43,7 @@ reqwest = { version = "0.12", default-features = false, features = ["http2"] }
4343
tokio = { version = "1.25", features = ["macros", "rt-multi-thread"] }
4444

4545
[features]
46-
default = ["color"]
46+
default = ["color", "parking_lot"]
4747
color = ["colored"]
48+
49+
parking_lot = ["tokio/parking_lot"]

0 commit comments

Comments
 (0)