From b2e7ab522b7fde25eed19cfc439e39cf9f0b9f88 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 24 Jun 2023 19:10:02 +1000 Subject: [PATCH] Remove some unused Rust dependencies --- Cargo.lock | 5 ----- Cargo.toml | 1 - build/runner/Cargo.toml | 1 - cargo/licenses.json | 27 --------------------------- qt/bundle/mac/Cargo.toml | 1 - qt/bundle/win/Cargo.toml | 1 - rslib/Cargo.toml | 1 - rslib/proto/Cargo.toml | 1 - tools/unused-rust-deps | 4 ++++ 9 files changed, 4 insertions(+), 38 deletions(-) create mode 100755 tools/unused-rust-deps diff --git a/Cargo.lock b/Cargo.lock index d1bdd5144..f349de7d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -94,7 +94,6 @@ dependencies = [ "criterion", "csv", "difflib", - "env_logger", "flate2", "fluent", "fluent-bundle", @@ -202,7 +201,6 @@ dependencies = [ "anyhow", "inflections", "itertools", - "num_enum", "prost", "prost-build", "prost-reflect", @@ -2129,7 +2127,6 @@ dependencies = [ "camino", "clap 4.2.1", "glob", - "lazy_static", "plist", "serde", "serde_json", @@ -2144,7 +2141,6 @@ dependencies = [ "anyhow", "camino", "clap 4.2.1", - "glob", "tugger-windows-codesign", "walkdir", ] @@ -3319,7 +3315,6 @@ dependencies = [ "camino", "clap 4.2.1", "flate2", - "itertools", "junction", "reqwest", "sha2", diff --git a/Cargo.toml b/Cargo.toml index 1cd463eac..73a1e9ae4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -62,7 +62,6 @@ coarsetime = "0.1.23" convert_case = "0.6.0" criterion = { version = "0.4.0" } difflib = "0.4.0" -env_logger = "0.10.0" flate2 = "1.0.25" fluent = "0.16.0" fluent-bundle = "0.15.2" diff --git a/build/runner/Cargo.toml b/build/runner/Cargo.toml index e8f35ab5b..b51231850 100644 --- a/build/runner/Cargo.toml +++ b/build/runner/Cargo.toml @@ -13,7 +13,6 @@ anyhow.workspace = true camino.workspace = true clap.workspace = true flate2.workspace = true -itertools.workspace = true junction.workspace = true reqwest = { workspace = true, features = ["rustls-tls", "rustls-tls-native-roots"] } sha2.workspace = true diff --git a/cargo/licenses.json b/cargo/licenses.json index b738c5478..c922cbb3d 100644 --- a/cargo/licenses.json +++ b/cargo/licenses.json @@ -593,15 +593,6 @@ "license_file": null, "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", "version": "0.3.1", @@ -1061,15 +1052,6 @@ "license_file": null, "description": "HTTP date parsing and formatting" }, - { - "name": "humantime", - "version": "2.1.0", - "authors": "Paul Colomiets ", - "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", "version": "0.14.25", @@ -1205,15 +1187,6 @@ "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." }, - { - "name": "is-terminal", - "version": "0.4.6", - "authors": "softprops |Dan Gohman ", - "repository": "https://github.com/sunfishcode/is-terminal", - "license": "MIT", - "license_file": null, - "description": "Test whether a given stream is a terminal" - }, { "name": "itertools", "version": "0.10.5", diff --git a/qt/bundle/mac/Cargo.toml b/qt/bundle/mac/Cargo.toml index 372b7eb0b..a154b76f7 100644 --- a/qt/bundle/mac/Cargo.toml +++ b/qt/bundle/mac/Cargo.toml @@ -13,7 +13,6 @@ apple-bundles.workspace = true camino.workspace = true clap.workspace = true glob.workspace = true -lazy_static.workspace = true plist.workspace = true serde.workspace = true serde_json.workspace = true diff --git a/qt/bundle/win/Cargo.toml b/qt/bundle/win/Cargo.toml index ccf7cf32a..841a2a265 100644 --- a/qt/bundle/win/Cargo.toml +++ b/qt/bundle/win/Cargo.toml @@ -11,6 +11,5 @@ rust-version.workspace = true anyhow.workspace = true camino.workspace = true clap.workspace = true -glob.workspace = true tugger-windows-codesign.workspace = true walkdir.workspace = true diff --git a/rslib/Cargo.toml b/rslib/Cargo.toml index 61e6404cf..4f0641ed0 100644 --- a/rslib/Cargo.toml +++ b/rslib/Cargo.toml @@ -33,7 +33,6 @@ syn.workspace = true [dev-dependencies] async-stream.workspace = true -env_logger.workspace = true wiremock.workspace = true [dependencies] diff --git a/rslib/proto/Cargo.toml b/rslib/proto/Cargo.toml index dc5add6e2..4fc739a75 100644 --- a/rslib/proto/Cargo.toml +++ b/rslib/proto/Cargo.toml @@ -19,7 +19,6 @@ prost-reflect.workspace = true prost-types.workspace = true [dependencies] -num_enum.workspace = true prost.workspace = true serde.workspace = true snafu.workspace = true diff --git a/tools/unused-rust-deps b/tools/unused-rust-deps new file mode 100755 index 000000000..d37cdec40 --- /dev/null +++ b/tools/unused-rust-deps @@ -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