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:
Stefan Holderbach
2022-10-29 21:19:12 +02:00
committed by GitHub
parent 4f7f6a2932
commit ce4ae00a6f
7 changed files with 3 additions and 33 deletions

View File

@ -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"