PR: add libfuzzer-sys back, test_syntax-fuzz to ws

This commit is contained in:
shua 2024-11-26 23:03:54 +01:00
parent 621bd177e6
commit fc10883c47
No known key found for this signature in database
3 changed files with 41 additions and 6 deletions

37
Cargo.lock generated
View file

@ -131,6 +131,12 @@ dependencies = [
"windows-sys 0.48.0", "windows-sys 0.48.0",
] ]
[[package]]
name = "arbitrary"
version = "1.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dde20b3d026af13f561bdd0f15edf01fc734f0dafcedbaf42bba506a9517f223"
[[package]] [[package]]
name = "arrayref" name = "arrayref"
version = "0.3.7" version = "0.3.7"
@ -388,6 +394,8 @@ version = "1.1.15"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57b6a275aa2903740dc87da01c62040406b8812552e97129a63ea8850a17c6e6" checksum = "57b6a275aa2903740dc87da01c62040406b8812552e97129a63ea8850a17c6e6"
dependencies = [ dependencies = [
"jobserver",
"libc",
"shlex", "shlex",
] ]
@ -1374,6 +1382,15 @@ version = "1.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
[[package]]
name = "jobserver"
version = "0.1.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "48d1dbcbbeb6a7fec7e059840aa538bd62aaccf972c7346c4d9d2059312853d0"
dependencies = [
"libc",
]
[[package]] [[package]]
name = "js-sys" name = "js-sys"
version = "0.3.64" version = "0.3.64"
@ -1405,6 +1422,16 @@ version = "0.2.158"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439" checksum = "d8adc4bb1803a324070e64a98ae98f38934d91957a99cfb3a43dcbc01bc56439"
[[package]]
name = "libfuzzer-sys"
version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b9569d2f74e257076d8c6bfa73fb505b46b851e51ddaecc825944aa3bed17fa"
dependencies = [
"arbitrary",
"cc",
]
[[package]] [[package]]
name = "libloading" name = "libloading"
version = "0.7.4" version = "0.7.4"
@ -3916,6 +3943,16 @@ dependencies = [
"walkdir", "walkdir",
] ]
[[package]]
name = "test_syntax-fuzz"
version = "0.0.0"
dependencies = [
"bumpalo",
"libfuzzer-sys",
"roc_parse",
"test_syntax",
]
[[package]] [[package]]
name = "textwrap" name = "textwrap"
version = "0.11.0" version = "0.11.0"

View file

@ -31,6 +31,7 @@ members = [
"crates/wasm_interp", "crates/wasm_interp",
"crates/language_server", "crates/language_server",
"crates/roc_std_heap", "crates/roc_std_heap",
"crates/compiler/test_syntax/fuzz",
] ]
exclude = [ exclude = [
@ -125,6 +126,7 @@ insta = "1.28.0"
js-sys = "0.3.61" js-sys = "0.3.61"
lazy_static = "1.4.0" lazy_static = "1.4.0"
libc = "0.2.139" # update roc_std/Cargo.toml on change libc = "0.2.139" # update roc_std/Cargo.toml on change
libfuzzer-sys = "0.4"
libloading = "0.7.4" libloading = "0.7.4"
libtest-mimic = "0.6.0" libtest-mimic = "0.6.0"
log = "0.4.17" log = "0.4.17"

View file

@ -13,12 +13,8 @@ cargo-fuzz = true
test_syntax = { path = "../../test_syntax" } test_syntax = { path = "../../test_syntax" }
roc_parse = { path = "../../parse" } roc_parse = { path = "../../parse" }
bumpalo = { version = "3.12.0", features = ["collections"] } bumpalo.workspace = true
libfuzzer-sys = "0.4" libfuzzer-sys.workspace = true
# Prevent this from interfering with workspaces
[workspace]
members = ["."]
[[bin]] [[bin]]
name = "fuzz_expr" name = "fuzz_expr"