mirror of
https://github.com/nushell/nushell.git
synced 2024-11-26 02:13:47 +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"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c1ad822118d20d2c234f427000d5acc36eabe1e29a348c89b63dd60b13f28e5d"
|
checksum = "c1ad822118d20d2c234f427000d5acc36eabe1e29a348c89b63dd60b13f28e5d"
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "byte-order"
|
|
||||||
version = "0.3.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "b021a13e4bf34a5679ada4609a01337ae82f2c4c97493b9d8cbf8aa9af9bd0f4"
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "byte-unit"
|
name = "byte-unit"
|
||||||
version = "4.0.14"
|
version = "4.0.14"
|
||||||
@ -2747,13 +2741,11 @@ name = "nu-plugin"
|
|||||||
version = "0.70.1"
|
version = "0.70.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bincode",
|
"bincode",
|
||||||
"byte-order",
|
|
||||||
"criterion",
|
"criterion",
|
||||||
"nu-engine",
|
"nu-engine",
|
||||||
"nu-protocol",
|
"nu-protocol",
|
||||||
"rmp",
|
"rmp",
|
||||||
"rmp-serde",
|
"rmp-serde",
|
||||||
"rmpv",
|
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
]
|
]
|
||||||
@ -2778,7 +2770,6 @@ dependencies = [
|
|||||||
"indexmap",
|
"indexmap",
|
||||||
"miette",
|
"miette",
|
||||||
"nu-json",
|
"nu-json",
|
||||||
"nu-path",
|
|
||||||
"nu-utils",
|
"nu-utils",
|
||||||
"num-format",
|
"num-format",
|
||||||
"serde",
|
"serde",
|
||||||
@ -2837,7 +2828,6 @@ dependencies = [
|
|||||||
"nu-glob",
|
"nu-glob",
|
||||||
"nu-path",
|
"nu-path",
|
||||||
"nu-utils",
|
"nu-utils",
|
||||||
"num-bigint 0.4.3",
|
|
||||||
"num-format",
|
"num-format",
|
||||||
"tempfile",
|
"tempfile",
|
||||||
]
|
]
|
||||||
@ -2950,7 +2940,6 @@ dependencies = [
|
|||||||
"autocfg",
|
"autocfg",
|
||||||
"num-integer",
|
"num-integer",
|
||||||
"num-traits",
|
"num-traits",
|
||||||
"serde",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -4134,16 +4123,6 @@ dependencies = [
|
|||||||
"serde",
|
"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]]
|
[[package]]
|
||||||
name = "roxmltree"
|
name = "roxmltree"
|
||||||
version = "0.14.1"
|
version = "0.14.1"
|
||||||
|
@ -9,6 +9,8 @@ version = "0.70.1"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
dirs-next = "2.0.0"
|
dirs-next = "2.0.0"
|
||||||
|
|
||||||
|
[target.'cfg(windows)'.dependencies]
|
||||||
omnipath = "0.1.1"
|
omnipath = "0.1.1"
|
||||||
|
|
||||||
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
|
[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" }
|
nu-engine = { path = "../nu-engine", version = "0.70.1" }
|
||||||
serde = {version = "1.0.143", features = ["derive"]}
|
serde = {version = "1.0.143", features = ["derive"]}
|
||||||
serde_json = { version = "1.0"}
|
serde_json = { version = "1.0"}
|
||||||
byte-order = "0.3.0"
|
|
||||||
rmp = "0.8.11"
|
rmp = "0.8.11"
|
||||||
rmp-serde = "1.1.0"
|
rmp-serde = "1.1.0"
|
||||||
rmpv = "1.0.0"
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
criterion = "0.3"
|
criterion = "0.3"
|
||||||
|
@ -12,17 +12,10 @@ doctest = false
|
|||||||
name = "nu_pretty_hex"
|
name = "nu_pretty_hex"
|
||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[[bin]]
|
|
||||||
name = "nu_pretty_hex"
|
|
||||||
path = "src/main.rs"
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
nu-ansi-term = "0.46.0"
|
nu-ansi-term = "0.46.0"
|
||||||
rand = "0.8.3"
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
heapless = { version = "0.7.8", default-features = false }
|
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]
|
[dependencies]
|
||||||
nu-utils = { path = "../nu-utils", version = "0.70.1" }
|
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" }
|
nu-json = { path = "../nu-json", version = "0.70.1" }
|
||||||
|
|
||||||
byte-unit = "4.0.9"
|
byte-unit = "4.0.9"
|
||||||
|
@ -18,6 +18,5 @@ lazy_static = "1.4.0"
|
|||||||
num-format = "0.4.3"
|
num-format = "0.4.3"
|
||||||
|
|
||||||
getset = "0.1.1"
|
getset = "0.1.1"
|
||||||
num-bigint = { version="0.4.3", features=["serde"] }
|
|
||||||
tempfile = "3.2.0"
|
tempfile = "3.2.0"
|
||||||
hamcrest2 = "0.3.0"
|
hamcrest2 = "0.3.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user