Skip to content

Commit 9347e2c

Browse files
committed
add fuzz to workspace list
Now that we aren't using hongfuzz, we have reasonably well-behaved deps in the fuzz list. So we can add this to the workspace, so that our fuzztests are being tested and linted.
1 parent c9c7e7e commit 9347e2c

2 files changed

Lines changed: 37 additions & 2 deletions

File tree

Cargo-recent.lock

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ version = "1.0.98"
88
source = "registry+https://github.com/rust-lang/crates.io-index"
99
checksum = "e16d2d3311acee920a9eb8d33b8cbc1787ce4a264e85f964c2404b969bdcd487"
1010

11+
[[package]]
12+
name = "arbitrary"
13+
version = "1.4.2"
14+
source = "registry+https://github.com/rust-lang/crates.io-index"
15+
checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
16+
1117
[[package]]
1218
name = "arrayvec"
1319
version = "0.7.6"
@@ -173,6 +179,8 @@ version = "1.2.27"
173179
source = "registry+https://github.com/rust-lang/crates.io-index"
174180
checksum = "d487aa071b5f64da6f19a3e848e3578944b726ee5a4854b82172f02aa876bfdc"
175181
dependencies = [
182+
"jobserver",
183+
"libc",
176184
"shlex",
177185
]
178186

@@ -206,6 +214,14 @@ dependencies = [
206214
"serde_test",
207215
]
208216

217+
[[package]]
218+
name = "elements-fuzz"
219+
version = "0.0.1"
220+
dependencies = [
221+
"elements",
222+
"libfuzzer-sys",
223+
]
224+
209225
[[package]]
210226
name = "elementsd"
211227
version = "0.11.0"
@@ -293,6 +309,16 @@ version = "1.0.15"
293309
source = "registry+https://github.com/rust-lang/crates.io-index"
294310
checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
295311

312+
[[package]]
313+
name = "jobserver"
314+
version = "0.1.34"
315+
source = "registry+https://github.com/rust-lang/crates.io-index"
316+
checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"
317+
dependencies = [
318+
"getrandom 0.3.3",
319+
"libc",
320+
]
321+
296322
[[package]]
297323
name = "js-sys"
298324
version = "0.3.77"
@@ -321,6 +347,16 @@ version = "0.2.174"
321347
source = "registry+https://github.com/rust-lang/crates.io-index"
322348
checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776"
323349

350+
[[package]]
351+
name = "libfuzzer-sys"
352+
version = "0.4.12"
353+
source = "registry+https://github.com/rust-lang/crates.io-index"
354+
checksum = "f12a681b7dd8ce12bff52488013ba614b869148d54dd79836ab85aafdd53f08d"
355+
dependencies = [
356+
"arbitrary",
357+
"cc",
358+
]
359+
324360
[[package]]
325361
name = "linux-raw-sys"
326362
version = "0.9.4"

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ name = "raw_blind"
6161
name = "tx"
6262

6363
[workspace]
64-
members = ["elementsd-tests"]
65-
exclude = ["fuzz"]
64+
members = ["elementsd-tests", "fuzz"]
6665

6766
[lints.clippy]
6867
# Exclude lints we don't think are valuable.

0 commit comments

Comments
 (0)