-
-
Notifications
You must be signed in to change notification settings - Fork 468
Expand file tree
/
Copy pathCargo.toml
More file actions
220 lines (203 loc) · 8.62 KB
/
Cargo.toml
File metadata and controls
220 lines (203 loc) · 8.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
[workspace]
resolver = "2"
members = [
"crates/build_id2",
"crates/core_affinity2",
"crates/exceptional",
"crates/fast_rands",
"crates/libafl_asan",
"crates/libafl_asan/libafl_asan_fuzz",
"crates/libafl_asan/libafl_asan_libc",
"crates/libafl_bolts",
"crates/libafl_build",
"crates/libafl_cc",
"crates/libafl_core",
"crates/libafl_derive",
"crates/libafl_frida",
"crates/libafl_intelpt",
"crates/libafl_libfuzzer",
"crates/libafl_nyx",
"crates/libafl_qemu",
"crates/libafl_qemu/libafl_qemu_build",
"crates/libafl_qemu/libafl_qemu_runner",
"crates/libafl_qemu/libafl_qemu_sys",
"crates/libafl_qemu/libvharness_sys",
"crates/libafl_sugar",
"crates/libafl_targets",
"crates/libafl_tinyinst",
"crates/libafl_unicorn",
"crates/libafl",
"crates/ll_mp",
"crates/minibsod",
"crates/no_std_time",
"crates/nonzero_macros",
"crates/ownedref",
"crates/serde_anymap",
"crates/shmem_providers",
"crates/tuple_list_ex",
"utils/build_and_test_fuzzers",
"utils/ci_runner",
"utils/ci_splitter",
"utils/deexit",
"utils/drcov_utils",
"utils/gramatron/construct_automata",
"utils/libafl_benches",
"utils/libafl_jumper",
"utils/find_llvm_config",
]
default-members = [
"crates/libafl_bolts",
"crates/libafl_cc",
"crates/libafl_derive",
"crates/libafl_targets",
"crates/libafl",
]
exclude = [
"bindings/pylibafl",
"crates/libafl_libfuzzer_runtime",
"docs",
"fuzzers",
"scripts",
"utils/gdb_qemu",
"utils/libafl_repo_tools",
"utils/multi_machine_generator",
"utils/noaslr",
]
[workspace.package]
version = "0.16.0"
license = "MIT OR Apache-2.0"
repository = "https://github.com/AFLplusplus/LibAFL/"
readme = "./README.md"
[workspace.dependencies]
# Internal deps
build_id2 = { path = "./crates/build_id2", version = "0.16.0", default-features = false }
core_affinity2 = { path = "./crates/core_affinity2", version = "0.16.0", default-features = false }
exceptional = { path = "./crates/exceptional", version = "0.16.0", default-features = false }
fast_rands = { path = "./crates/fast_rands", version = "0.16.0", default-features = false }
libafl = { path = "./crates/libafl", version = "0.16.0", default-features = false }
libafl_bolts = { path = "./crates/libafl_bolts", version = "0.16.0", default-features = false }
libafl_build = { path = "./crates/libafl_build", version = "0.16.0", default-features = false }
libafl_cc = { path = "./crates/libafl_cc", version = "0.16.0", default-features = false }
libafl_core = { path = "./crates/libafl_core", version = "0.16.0", default-features = false }
libafl_derive = { path = "./crates/libafl_derive", version = "0.16.0", default-features = false }
libafl_frida = { path = "./crates/libafl_frida", version = "0.16.0", default-features = false }
libafl_intelpt = { path = "./crates/libafl_intelpt", version = "0.16.0", default-features = false }
libafl_libfuzzer = { path = "./crates/libafl_libfuzzer", version = "0.16.0", default-features = false }
libafl_nyx = { path = "./crates/libafl_nyx", version = "0.16.0", default-features = false }
libafl_qemu = { path = "./crates/libafl_qemu", version = "0.16.0", default-features = false }
libafl_qemu_build = { path = "./crates/libafl_qemu/libafl_qemu_build", version = "0.16.0", default-features = false }
libafl_qemu_sys = { path = "./crates/libafl_qemu/libafl_qemu_sys", version = "0.16.0", default-features = false }
libafl_sugar = { path = "./crates/libafl_sugar", version = "0.16.0", default-features = false }
libafl_targets = { path = "./crates/libafl_targets", version = "0.16.0", default-features = false }
libafl_tinyinst = { path = "./crates/libafl_tinyinst", version = "0.16.0", default-features = false }
ll_mp = { path = "./crates/ll_mp", version = "0.16.0", default-features = false }
minibsod = { path = "./crates/minibsod", version = "0.16.0", default-features = false }
no_std_time = { path = "./crates/no_std_time", version = "0.16.0", default-features = false }
nonzero_macros = { path = "./crates/nonzero_macros", version = "0.16.0", default-features = false }
ownedref = { path = "./crates/ownedref", version = "0.16.0", default-features = false }
serde_anymap = { path = "./crates/serde_anymap", version = "0.16.0", default-features = false }
shmem_providers = { path = "./crates/shmem_providers", version = "0.16.0", default-features = false }
tuple_list_ex = { path = "./crates/tuple_list_ex", version = "0.16.0", default-features = false }
# Utils
build_and_test_fuzzers = { path = "./utils/build_and_test_fuzzers", version = "0.16.0", default-features = false }
construct_automata = { path = "./utils/gramatron/construct_automata", version = "0.16.0", default-features = false }
deexit = { path = "./utils/deexit", version = "0.16.0", default-features = false }
drcov_utils = { path = "./utils/drcov_utils", version = "0.16.0", default-features = false }
libafl_benches = { path = "./utils/libafl_benches", version = "0.16.0", default-features = false }
libafl_jumper = { path = "./utils/libafl_jumper", version = "0.16.0", default-features = false }
# External deps
ahash = { version = "0.8.12", default-features = false } # The hash function already used in hashbrown
arbitrary-int = "2.0.0" # arbitrary sized integers, useful in combination with bitfields (bitbybit crate)
backtrace = { version = "0.3.74", default-features = false } # Used to get the stacktrace in StacktraceObserver
bindgen = "0.72.1"
bitbybit = "2.0.0" # bitfields, use this for bit fields and bit enums
capstone = "0.14.0" # Disassembler used in libafl_unicorn to provide disassembly on crash
clap = "4.5.52"
cc = "1.2.53"
cmake = "0.1.57"
ctor = "0.10.0"
document-features = "0.2.11"
erased-serde = { version = "0.4.5", default-features = false } # erased serde
fastbloom = { version = "0.17.0", default-features = false }
fs2 = "0.4.3" # Used by OnDisk Corpus for file locking
glob = "0.3"
hashbrown = { version = "0.16.1", default-features = false } # A faster hashmap, nostd compatible
just = "1.46.0"
libc = "0.2.178" # For (*nix) libc
libipt = { version = "0.4.0", features = ["libipt_master"] }
libvharness_sys = { path = "./crates/libafl_qemu/libvharness_sys", version = "0.16.0", default-features = false }
log = "0.4.29"
meminterval = "0.4.2"
mimalloc = { version = "0.1.48", default-features = false }
nix = { version = "0.31.2", default-features = false }
num_enum = { version = "0.7.4", default-features = false }
num-traits = { version = "0.2.19", default-features = false }
paste = "1.0.15"
postcard = { version = "1.1.3", features = [
"alloc",
], default-features = false } # no_std compatible serde serialization format
pyo3 = { version = "0.28.3", features = ["auto-initialize"] }
pyo3-build-config = "0.28.3"
rangemap = "1.7.1"
regex = "1.12.2"
rustversion = "1.0.22"
serde = { version = "1.0.228", default-features = false } # serialization lib
serde_json = { version = "1.0.149", default-features = false }
serde_yaml = { version = "0.9.34" } # For parsing the injections yaml file
serial_test = { version = "3.2.0", default-features = false }
static_assertions = "1.1.0"
strum = "0.28.0"
strum_macros = "0.28.0"
tinyinst = "0.1.1"
toml = "0.9.10" # For parsing the injections toml file
tuple_list = { version = "0.1.3" }
typed-builder = "0.23.2" # Implement the builder pattern at compiletime
typeid = "1.0.3" # Safe type_eq that doesn't rely on std specialization
unicorn-engine = "2.0.1" # Used in libafl_unicorn
uuid = { version = "1.19.0", features = ["serde", "v4"] }
which = "8.0.0"
windows = "0.62.1"
windows-core = "0.62.1"
z3 = { version = "0.19.7", default-features = false }
[workspace.lints.rust]
# Deny
warnings = { level = "deny", priority = -1 }
# Forbid
unexpected_cfgs = "forbid"
# Allow
incomplete_features = "allow"
# ambiguous_glob_reexports = "allow"
[workspace.lints.clippy]
# Deny
all = { level = "deny", priority = -1 }
pedantic = { level = "deny", priority = -1 }
cargo_common_metadata = "deny"
alloc_instead_of_core = "deny"
std_instead_of_alloc = "deny"
std_instead_of_core = "deny"
# Warn
cargo = { level = "warn", priority = -1 }
# Allow
cast_possible_truncation = "allow"
comparison_chain = "allow" # This lint makes **ZERO** sense
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow" # TODO: turn into `warn` when working
negative_feature_names = "allow" # TODO: turn into 'warn' when working
ptr_as_ptr = "allow"
similar_names = "allow"
struct_field_names = "allow" # ????
too_many_lines = "allow"
type_repetition_in_bounds = "allow"
unreadable_literal = "allow"
unsafe_derive_deserialize = "allow"
used_underscore_binding = "allow"
[workspace.lints.rustdoc]
# Deny
broken_intra_doc_links = "deny"
[profile.release]
lto = true
codegen-units = 1
opt-level = 3
debug = true