Skip to content

Commit c640fcf

Browse files
authored
Remove unused dependencies using cargo-machete (#3787)
* remove unused log dependencies * remove unused fuzzer and utils dependencies * removed unused deps in crates * add cargo-machete allowlist
1 parent ed8dd73 commit c640fcf

File tree

67 files changed

+6
-82
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+6
-82
lines changed

crates/libafl_asan/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ nostd-musl = { version = "0.1.6", default-features = false, features = [
7676
] }
7777
nostd-printf = { version = "0.1.4", default-features = false }
7878

79-
readonly = { version = "0.2.12", default-features = false }
8079
rustix = { version = "1.1.3", default-features = false, features = [
8180
"fs",
8281
"mm",

crates/libafl_asan/libafl_asan_fuzz/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ publish = false
99
cargo-fuzz = true
1010

1111
[dependencies]
12-
arbitrary = { version = "1.4.1" }
1312
libafl_asan = { path = "../", default-features = false, features = [
1413
"dlmalloc",
1514
"guest",

crates/libafl_bolts/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ serde_anymap = { workspace = true, optional = true }
167167
shmem_providers = { workspace = true }
168168
static_assertions = { workspace = true }
169169
tuple_list_ex = { workspace = true, features = ["serde"] }
170-
typeid = { workspace = true }
171170

172171
ahash = { workspace = true, optional = true } # The hash function already used in hashbrown
173172
backtrace = { workspace = true, default-features = true, optional = true } # Used to get the stacktrace in StacktraceObserver
@@ -188,7 +187,6 @@ serde = { workspace = true, default-features = false, features = [
188187
"derive",
189188
] } # serialization lib
190189
postcard = { workspace = true, optional = true } # no_std compatible serde serialization format
191-
num_enum = { workspace = true, default-features = false }
192190

193191
ctor = { optional = true, version = "0.10.0" }
194192
miniz_oxide = { version = "0.9.0", optional = true }
@@ -208,7 +206,6 @@ serial_test = { workspace = true, optional = true, default-features = false, fea
208206
"logging",
209207
] }
210208

211-
rustversion = { workspace = true }
212209
# optional stable simd
213210
wide = { version = "1.1.1", optional = true }
214211

crates/libafl_libfuzzer/runtime/Cargo.toml.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ libafl_targets = { path = "../libafl_targets", features = [
6868
"sanitizer_interfaces",
6969
] }
7070

71-
ahash = { version = "0.8.11", default-features = false }
7271
libc = "0.2.159"
7372
log = { version = "0.4.22", features = ["release_max_level_info"] }
7473
mimalloc = { version = "0.1.43", default-features = false }

crates/libafl_qemu/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ enum-map = "2.7.3"
146146
serde_yaml = { workspace = true, optional = true } # For parsing the injections yaml file
147147
toml = { workspace = true, optional = true } # For parsing the injections toml file
148148
pyo3 = { workspace = true, optional = true, features = ["multiple-pymethods"] }
149-
bytes-utils = "0.1.4"
150149
typed-builder = { workspace = true }
151150
getset = "0.1.6"
152151
libvharness_sys = { workspace = true }

crates/libafl_qemu/libafl_qemu_sys/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,6 @@ rustversion = { workspace = true }
7878

7979
[lints]
8080
workspace = true
81+
82+
[package.metadata.cargo-machete]
83+
ignored = ["strum"]

crates/serde_anymap/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ serde_json = { workspace = true, features = ["std"] }
4343
# Document all features of this crate (for `cargo doc`)
4444
document-features = { workspace = true, optional = true }
4545

46-
ahash = { workspace = true }
4746
ctor = { workspace = true, optional = true }
4847
erased-serde = { workspace = true, default-features = false, features = [
4948
"alloc",

fuzzers/baby/baby_fuzzer_minimizing/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ debug = true
2626
[dependencies]
2727
libafl = { path = "../../../crates/libafl", features = ["prelude"] }
2828
libafl_bolts = { path = "../../../crates/libafl_bolts", features = ["prelude"] }
29-
log = { version = "0.4.22", features = ["release_max_level_info"] }

fuzzers/baby/baby_fuzzer_swap_differential/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ libafl_targets = { path = "../../../crates/libafl_targets", features = [
3333
"sancov_cmplog",
3434
"pointer_maps",
3535
] }
36-
log = { version = "0.4.22", features = ["release_max_level_info"] }
3736
mimalloc = { version = "0.1.43", default-features = false }
3837

3938
libafl_cc = { path = "../../../crates/libafl_cc" }

fuzzers/baby/baby_fuzzer_unicode/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ libafl = { path = "../../../crates/libafl", features = [
2929
"tui_monitor",
3030
] }
3131
libafl_bolts = { path = "../../../crates/libafl_bolts" }
32-
log = { version = "0.4.22", features = ["release_max_level_info"] }

0 commit comments

Comments
 (0)