mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 18:03:51 +01: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:
parent
4f7f6a2932
commit
ce4ae00a6f
21
Cargo.lock
generated
21
Cargo.lock
generated
@ -380,12 +380,6 @@ version = "3.11.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c1ad822118d20d2c234f427000d5acc36eabe1e29a348c89b63dd60b13f28e5d"
|
||||
|
||||
[[package]]
|
||||
name = "byte-order"
|
||||
version = "0.3.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b021a13e4bf34a5679ada4609a01337ae82f2c4c97493b9d8cbf8aa9af9bd0f4"
|
||||
|
||||
[[package]]
|
||||
name = "byte-unit"
|
||||
version = "4.0.14"
|
||||
@ -2747,13 +2741,11 @@ name = "nu-plugin"
|
||||
version = "0.70.1"
|
||||
dependencies = [
|
||||
"bincode",
|
||||
"byte-order",
|
||||
"criterion",
|
||||
"nu-engine",
|
||||
"nu-protocol",
|
||||
"rmp",
|
||||
"rmp-serde",
|
||||
"rmpv",
|
||||
"serde",
|
||||
"serde_json",
|
||||
]
|
||||
@ -2778,7 +2770,6 @@ dependencies = [
|
||||
"indexmap",
|
||||
"miette",
|
||||
"nu-json",
|
||||
"nu-path",
|
||||
"nu-utils",
|
||||
"num-format",
|
||||
"serde",
|
||||
@ -2837,7 +2828,6 @@ dependencies = [
|
||||
"nu-glob",
|
||||
"nu-path",
|
||||
"nu-utils",
|
||||
"num-bigint 0.4.3",
|
||||
"num-format",
|
||||
"tempfile",
|
||||
]
|
||||
@ -2950,7 +2940,6 @@ dependencies = [
|
||||
"autocfg",
|
||||
"num-integer",
|
||||
"num-traits",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@ -4134,16 +4123,6 @@ dependencies = [
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "rmpv"
|
||||
version = "1.0.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "de8813b3a2f95c5138fe5925bfb8784175d88d6bff059ba8ce090aa891319754"
|
||||
dependencies = [
|
||||
"num-traits",
|
||||
"rmp",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "roxmltree"
|
||||
version = "0.14.1"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user