Remove some unused Rust dependencies

This commit is contained in:
Damien Elmes 2023-06-24 19:10:02 +10:00
parent 630b1267c2
commit b2e7ab522b
9 changed files with 4 additions and 38 deletions

5
Cargo.lock generated
View file

@ -94,7 +94,6 @@ dependencies = [
"criterion", "criterion",
"csv", "csv",
"difflib", "difflib",
"env_logger",
"flate2", "flate2",
"fluent", "fluent",
"fluent-bundle", "fluent-bundle",
@ -202,7 +201,6 @@ dependencies = [
"anyhow", "anyhow",
"inflections", "inflections",
"itertools", "itertools",
"num_enum",
"prost", "prost",
"prost-build", "prost-build",
"prost-reflect", "prost-reflect",
@ -2129,7 +2127,6 @@ dependencies = [
"camino", "camino",
"clap 4.2.1", "clap 4.2.1",
"glob", "glob",
"lazy_static",
"plist", "plist",
"serde", "serde",
"serde_json", "serde_json",
@ -2144,7 +2141,6 @@ dependencies = [
"anyhow", "anyhow",
"camino", "camino",
"clap 4.2.1", "clap 4.2.1",
"glob",
"tugger-windows-codesign", "tugger-windows-codesign",
"walkdir", "walkdir",
] ]
@ -3319,7 +3315,6 @@ dependencies = [
"camino", "camino",
"clap 4.2.1", "clap 4.2.1",
"flate2", "flate2",
"itertools",
"junction", "junction",
"reqwest", "reqwest",
"sha2", "sha2",

View file

@ -62,7 +62,6 @@ coarsetime = "0.1.23"
convert_case = "0.6.0" convert_case = "0.6.0"
criterion = { version = "0.4.0" } criterion = { version = "0.4.0" }
difflib = "0.4.0" difflib = "0.4.0"
env_logger = "0.10.0"
flate2 = "1.0.25" flate2 = "1.0.25"
fluent = "0.16.0" fluent = "0.16.0"
fluent-bundle = "0.15.2" fluent-bundle = "0.15.2"

View file

@ -13,7 +13,6 @@ anyhow.workspace = true
camino.workspace = true camino.workspace = true
clap.workspace = true clap.workspace = true
flate2.workspace = true flate2.workspace = true
itertools.workspace = true
junction.workspace = true junction.workspace = true
reqwest = { workspace = true, features = ["rustls-tls", "rustls-tls-native-roots"] } reqwest = { workspace = true, features = ["rustls-tls", "rustls-tls-native-roots"] }
sha2.workspace = true sha2.workspace = true

View file

@ -593,15 +593,6 @@
"license_file": null, "license_file": null,
"description": "A Gecko-oriented implementation of the Encoding Standard" "description": "A Gecko-oriented implementation of the Encoding Standard"
}, },
{
"name": "env_logger",
"version": "0.10.0",
"authors": null,
"repository": "https://github.com/rust-cli/env_logger/",
"license": "Apache-2.0 OR MIT",
"license_file": null,
"description": "A logging implementation for `log` which is configured via an environment variable."
},
{ {
"name": "errno", "name": "errno",
"version": "0.3.1", "version": "0.3.1",
@ -1061,15 +1052,6 @@
"license_file": null, "license_file": null,
"description": "HTTP date parsing and formatting" "description": "HTTP date parsing and formatting"
}, },
{
"name": "humantime",
"version": "2.1.0",
"authors": "Paul Colomiets <paul@colomiets.name>",
"repository": "https://github.com/tailhook/humantime",
"license": "Apache-2.0 OR MIT",
"license_file": null,
"description": "A parser and formatter for std::time::{Duration, SystemTime}"
},
{ {
"name": "hyper", "name": "hyper",
"version": "0.14.25", "version": "0.14.25",
@ -1205,15 +1187,6 @@
"license_file": null, "license_file": null,
"description": "Provides types and useful methods for working with IPv4 and IPv6 network addresses, commonly called IP prefixes. The new `IpNet`, `Ipv4Net`, and `Ipv6Net` types build on the existing `IpAddr`, `Ipv4Addr`, and `Ipv6Addr` types already provided in Rust's standard library and align to their design to stay consistent. The module also provides useful traits that extend `Ipv4Addr` and `Ipv6Addr` with methods for `Add`, `Sub`, `BitAnd`, and `BitOr` operations. The module only uses stable feature so it is guaranteed to compile using the stable toolchain." "description": "Provides types and useful methods for working with IPv4 and IPv6 network addresses, commonly called IP prefixes. The new `IpNet`, `Ipv4Net`, and `Ipv6Net` types build on the existing `IpAddr`, `Ipv4Addr`, and `Ipv6Addr` types already provided in Rust's standard library and align to their design to stay consistent. The module also provides useful traits that extend `Ipv4Addr` and `Ipv6Addr` with methods for `Add`, `Sub`, `BitAnd`, and `BitOr` operations. The module only uses stable feature so it is guaranteed to compile using the stable toolchain."
}, },
{
"name": "is-terminal",
"version": "0.4.6",
"authors": "softprops <d.tangren@gmail.com>|Dan Gohman <dev@sunfishcode.online>",
"repository": "https://github.com/sunfishcode/is-terminal",
"license": "MIT",
"license_file": null,
"description": "Test whether a given stream is a terminal"
},
{ {
"name": "itertools", "name": "itertools",
"version": "0.10.5", "version": "0.10.5",

View file

@ -13,7 +13,6 @@ apple-bundles.workspace = true
camino.workspace = true camino.workspace = true
clap.workspace = true clap.workspace = true
glob.workspace = true glob.workspace = true
lazy_static.workspace = true
plist.workspace = true plist.workspace = true
serde.workspace = true serde.workspace = true
serde_json.workspace = true serde_json.workspace = true

View file

@ -11,6 +11,5 @@ rust-version.workspace = true
anyhow.workspace = true anyhow.workspace = true
camino.workspace = true camino.workspace = true
clap.workspace = true clap.workspace = true
glob.workspace = true
tugger-windows-codesign.workspace = true tugger-windows-codesign.workspace = true
walkdir.workspace = true walkdir.workspace = true

View file

@ -33,7 +33,6 @@ syn.workspace = true
[dev-dependencies] [dev-dependencies]
async-stream.workspace = true async-stream.workspace = true
env_logger.workspace = true
wiremock.workspace = true wiremock.workspace = true
[dependencies] [dependencies]

View file

@ -19,7 +19,6 @@ prost-reflect.workspace = true
prost-types.workspace = true prost-types.workspace = true
[dependencies] [dependencies]
num_enum.workspace = true
prost.workspace = true prost.workspace = true
serde.workspace = true serde.workspace = true
snafu.workspace = true snafu.workspace = true

4
tools/unused-rust-deps Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
cargo install cargo-udeps@0.1.40
cargo +nightly-2023-01-24-x86_64-unknown-linux-gnu udeps --all-targets