mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 06:30:08 +02:00
Remove unused dependencies (#6945)
* Remove unused dependencies Inspired by #6938 ran `cargo +nightly udeps --features extra`. Removes 2 crates and should remove an unnecessary intra-workspace dependency which might open up further opportunities for compilation. * Make windows-only dependency conditional in toml `omnipath` is only used on Windows and already behind a `#[cfg]` block in the code. Made the dependency in `Cargo.toml` conditional as well. * Make `nu-pretty-hex` example a proper example This allows making `rand` a dev-dependency in this crate.
This commit is contained in:
committed by
GitHub
parent
4f7f6a2932
commit
ce4ae00a6f
@ -9,6 +9,8 @@ version = "0.70.1"
|
||||
|
||||
[dependencies]
|
||||
dirs-next = "2.0.0"
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
omnipath = "0.1.1"
|
||||
|
||||
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
|
||||
|
@ -13,10 +13,8 @@ nu-protocol = { path = "../nu-protocol", version = "0.70.1" }
|
||||
nu-engine = { path = "../nu-engine", version = "0.70.1" }
|
||||
serde = {version = "1.0.143", features = ["derive"]}
|
||||
serde_json = { version = "1.0"}
|
||||
byte-order = "0.3.0"
|
||||
rmp = "0.8.11"
|
||||
rmp-serde = "1.1.0"
|
||||
rmpv = "1.0.0"
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = "0.3"
|
||||
|
@ -12,17 +12,10 @@ doctest = false
|
||||
name = "nu_pretty_hex"
|
||||
path = "src/lib.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "nu_pretty_hex"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
nu-ansi-term = "0.46.0"
|
||||
rand = "0.8.3"
|
||||
|
||||
[dev-dependencies]
|
||||
heapless = { version = "0.7.8", default-features = false }
|
||||
rand = "0.8.3"
|
||||
|
||||
# [features]
|
||||
# default = ["alloc"]
|
||||
# alloc = []
|
||||
|
@ -11,7 +11,6 @@ version = "0.70.1"
|
||||
|
||||
[dependencies]
|
||||
nu-utils = { path = "../nu-utils", version = "0.70.1" }
|
||||
nu-path = { path = "../nu-path", version = "0.70.1" }
|
||||
nu-json = { path = "../nu-json", version = "0.70.1" }
|
||||
|
||||
byte-unit = "4.0.9"
|
||||
|
@ -18,6 +18,5 @@ lazy_static = "1.4.0"
|
||||
num-format = "0.4.3"
|
||||
|
||||
getset = "0.1.1"
|
||||
num-bigint = { version="0.4.3", features=["serde"] }
|
||||
tempfile = "3.2.0"
|
||||
hamcrest2 = "0.3.0"
|
||||
|
Reference in New Issue
Block a user