make unused dependencies optional

This commit is contained in:
Namekuji 2023-07-10 03:48:46 -04:00
parent 4f0c6c94aa
commit b9794dd625
No known key found for this signature in database
GPG key ID: 1D62332C07FBA532

View file

@ -10,14 +10,14 @@ path = "src/lib.rs"
[features] [features]
default = [] default = []
convert = ["dep:indicatif"] convert = ["dep:native-utils", "dep:indicatif", "dep:futures"]
[dependencies] [dependencies]
serde_json = "1.0.96" serde_json = "1.0.96"
native-utils = { path = "../" } native-utils = { path = "../", optional = true }
indicatif = { version = "0.17.4", features = ["tokio"], optional = true } indicatif = { version = "0.17.4", features = ["tokio"], optional = true }
tokio = { version = "1.28.2", features = ["full"] } tokio = { version = "1.28.2", features = ["full"] }
futures = "0.3.28" futures = { version = "0.3.28", optional = true }
serde_yaml = "0.9.21" serde_yaml = "0.9.21"
serde = { version = "1.0.163", features = ["derive"] } serde = { version = "1.0.163", features = ["derive"] }
urlencoding = "2.1.2" urlencoding = "2.1.2"