Skip to content

Commit

Permalink
feat(fuzzing): Generate exports for wasm-smith
Browse files Browse the repository at this point in the history
  • Loading branch information
venkkatesh-sekar committed Feb 20, 2024
1 parent c2fd7b9 commit 50483cb
Show file tree
Hide file tree
Showing 13 changed files with 483 additions and 387 deletions.
106 changes: 61 additions & 45 deletions Cargo.Bazel.Fuzzing.json.lock
@@ -1,5 +1,5 @@
{
"checksum": "06540a7683db2578025cb31ce9807a9fee69bdb151049238e855e2874f08012b",
"checksum": "2e6dd631446f29468708df393b8e43a519cc338d285a461b44eeb87500cbe6dd",
"crates": {
"abnf 0.12.0": {
"name": "abnf",
Expand Down Expand Up @@ -16294,12 +16294,7 @@
"target": "wasm_encoder"
},
{
"id": "wasm-encoder 0.38.1",
"target": "wasm_encoder",
"alias": "wasm_encoder_for_ws"
},
{
"id": "wasm-smith 0.13.1",
"id": "wasm-smith 0.200.0",
"target": "wasm_smith"
},
{
Expand Down Expand Up @@ -60376,13 +60371,16 @@
},
"license": "MIT/Apache-2.0"
},
"wasm-encoder 0.23.0": {
"wasm-encoder 0.200.0": {
"name": "wasm-encoder",
"version": "0.23.0",
"version": "0.200.0",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/wasm-encoder/0.23.0/download",
"sha256": "1c3e4bc09095436c8e7584d86d33e6c3ee67045af8fb262cbb9cc321de553428"
"Git": {
"remote": "https://github.com/bytecodealliance/wasm-tools",
"commitish": {
"Rev": "4eaf9fbbc4527ecf9e7b6005b360fb82ba84cc4e"
},
"strip_prefix": "crates/wasm-encoder"
}
},
"targets": [
Expand All @@ -60401,27 +60399,37 @@
"compile_data_glob": [
"**"
],
"crate_features": {
"common": [
"wasmparser"
],
"selects": {}
},
"deps": {
"common": [
{
"id": "leb128 0.2.5",
"target": "leb128"
},
{
"id": "wasmparser 0.200.0",
"target": "wasmparser"
}
],
"selects": {}
},
"edition": "2021",
"version": "0.23.0"
"version": "0.200.0"
},
"license": "Apache-2.0 WITH LLVM-exception"
},
"wasm-encoder 0.29.0": {
"wasm-encoder 0.23.0": {
"name": "wasm-encoder",
"version": "0.29.0",
"version": "0.23.0",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/wasm-encoder/0.29.0/download",
"sha256": "18c41dbd92eaebf3612a39be316540b8377c871cb9bde6b064af962984912881"
"url": "https://crates.io/api/v1/crates/wasm-encoder/0.23.0/download",
"sha256": "1c3e4bc09095436c8e7584d86d33e6c3ee67045af8fb262cbb9cc321de553428"
}
},
"targets": [
Expand Down Expand Up @@ -60450,17 +60458,17 @@
"selects": {}
},
"edition": "2021",
"version": "0.29.0"
"version": "0.23.0"
},
"license": "Apache-2.0 WITH LLVM-exception"
},
"wasm-encoder 0.35.0": {
"wasm-encoder 0.29.0": {
"name": "wasm-encoder",
"version": "0.35.0",
"version": "0.29.0",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/wasm-encoder/0.35.0/download",
"sha256": "9ca90ba1b5b0a70d3d49473c5579951f3bddc78d47b59256d2f9d4922b150aca"
"url": "https://crates.io/api/v1/crates/wasm-encoder/0.29.0/download",
"sha256": "18c41dbd92eaebf3612a39be316540b8377c871cb9bde6b064af962984912881"
}
},
"targets": [
Expand Down Expand Up @@ -60489,17 +60497,17 @@
"selects": {}
},
"edition": "2021",
"version": "0.35.0"
"version": "0.29.0"
},
"license": "Apache-2.0 WITH LLVM-exception"
},
"wasm-encoder 0.36.2": {
"wasm-encoder 0.35.0": {
"name": "wasm-encoder",
"version": "0.36.2",
"version": "0.35.0",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/wasm-encoder/0.36.2/download",
"sha256": "822b645bf4f2446b949776ffca47e2af60b167209ffb70814ef8779d299cd421"
"url": "https://crates.io/api/v1/crates/wasm-encoder/0.35.0/download",
"sha256": "9ca90ba1b5b0a70d3d49473c5579951f3bddc78d47b59256d2f9d4922b150aca"
}
},
"targets": [
Expand Down Expand Up @@ -60528,17 +60536,17 @@
"selects": {}
},
"edition": "2021",
"version": "0.36.2"
"version": "0.35.0"
},
"license": "Apache-2.0 WITH LLVM-exception"
},
"wasm-encoder 0.38.1": {
"wasm-encoder 0.36.2": {
"name": "wasm-encoder",
"version": "0.38.1",
"version": "0.36.2",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/wasm-encoder/0.38.1/download",
"sha256": "0ad2b51884de9c7f4fe2fd1043fccb8dcad4b1e29558146ee57a144d15779f3f"
"url": "https://crates.io/api/v1/crates/wasm-encoder/0.36.2/download",
"sha256": "822b645bf4f2446b949776ffca47e2af60b167209ffb70814ef8779d299cd421"
}
},
"targets": [
Expand Down Expand Up @@ -60567,18 +60575,18 @@
"selects": {}
},
"edition": "2021",
"version": "0.38.1"
"version": "0.36.2"
},
"license": "Apache-2.0 WITH LLVM-exception"
},
"wasm-smith 0.13.1": {
"wasm-smith 0.200.0": {
"name": "wasm-smith",
"version": "0.13.1",
"version": "0.200.0",
"repository": {
"Git": {
"remote": "https://github.com/dfinity/wasm-tools",
"remote": "https://github.com/bytecodealliance/wasm-tools",
"commitish": {
"Rev": "50c1a9a155745214c7f09d713ed56ff99188725a"
"Rev": "4eaf9fbbc4527ecf9e7b6005b360fb82ba84cc4e"
},
"strip_prefix": "crates/wasm-smith"
}
Expand Down Expand Up @@ -60607,6 +60615,10 @@
},
"deps": {
"common": [
{
"id": "anyhow 1.0.75",
"target": "anyhow"
},
{
"id": "arbitrary 1.3.1",
"target": "arbitrary"
Expand All @@ -60624,18 +60636,18 @@
"target": "leb128"
},
{
"id": "wasm-encoder 0.38.1",
"id": "wasm-encoder 0.200.0",
"target": "wasm_encoder"
},
{
"id": "wasmparser 0.118.1",
"id": "wasmparser 0.200.0",
"target": "wasmparser"
}
],
"selects": {}
},
"edition": "2021",
"version": "0.13.1"
"version": "0.200.0"
},
"license": "Apache-2.0 WITH LLVM-exception"
},
Expand Down Expand Up @@ -60780,14 +60792,14 @@
},
"license": "Apache-2.0 WITH LLVM-exception"
},
"wasmparser 0.118.1": {
"wasmparser 0.200.0": {
"name": "wasmparser",
"version": "0.118.1",
"version": "0.200.0",
"repository": {
"Git": {
"remote": "https://github.com/dfinity/wasm-tools",
"remote": "https://github.com/bytecodealliance/wasm-tools",
"commitish": {
"Rev": "50c1a9a155745214c7f09d713ed56ff99188725a"
"Rev": "4eaf9fbbc4527ecf9e7b6005b360fb82ba84cc4e"
},
"strip_prefix": "crates/wasmparser"
}
Expand All @@ -60810,6 +60822,10 @@
],
"deps": {
"common": [
{
"id": "bitflags 2.4.1",
"target": "bitflags"
},
{
"id": "indexmap 2.1.0",
"target": "indexmap"
Expand All @@ -60822,7 +60838,7 @@
"selects": {}
},
"edition": "2021",
"version": "0.118.1"
"version": "0.200.0"
},
"license": "Apache-2.0 WITH LLVM-exception"
},
Expand Down
29 changes: 11 additions & 18 deletions Cargo.Bazel.Fuzzing.toml.lock
Expand Up @@ -3280,7 +3280,6 @@ dependencies = [
"warp",
"wasm-bindgen",
"wasm-encoder 0.36.2",
"wasm-encoder 0.38.1",
"wasm-smith",
"wasmparser 0.116.1",
"wasmprinter",
Expand Down Expand Up @@ -11748,32 +11747,25 @@ dependencies = [

[[package]]
name = "wasm-encoder"
version = "0.38.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ad2b51884de9c7f4fe2fd1043fccb8dcad4b1e29558146ee57a144d15779f3f"
dependencies = [
"leb128",
]

[[package]]
name = "wasm-encoder"
version = "0.38.1"
source = "git+https://github.com/dfinity/wasm-tools?rev=50c1a9a155745214c7f09d713ed56ff99188725a#50c1a9a155745214c7f09d713ed56ff99188725a"
version = "0.200.0"
source = "git+https://github.com/bytecodealliance/wasm-tools?rev=4eaf9fbbc4527ecf9e7b6005b360fb82ba84cc4e#4eaf9fbbc4527ecf9e7b6005b360fb82ba84cc4e"
dependencies = [
"leb128",
"wasmparser 0.200.0",
]

[[package]]
name = "wasm-smith"
version = "0.13.1"
source = "git+https://github.com/dfinity/wasm-tools?rev=50c1a9a155745214c7f09d713ed56ff99188725a#50c1a9a155745214c7f09d713ed56ff99188725a"
version = "0.200.0"
source = "git+https://github.com/bytecodealliance/wasm-tools?rev=4eaf9fbbc4527ecf9e7b6005b360fb82ba84cc4e#4eaf9fbbc4527ecf9e7b6005b360fb82ba84cc4e"
dependencies = [
"anyhow",
"arbitrary",
"flagset",
"indexmap 2.1.0",
"leb128",
"wasm-encoder 0.38.1",
"wasmparser 0.118.1",
"wasm-encoder 0.200.0",
"wasmparser 0.200.0",
]

[[package]]
Expand Down Expand Up @@ -11823,9 +11815,10 @@ dependencies = [

[[package]]
name = "wasmparser"
version = "0.118.1"
source = "git+https://github.com/dfinity/wasm-tools?rev=50c1a9a155745214c7f09d713ed56ff99188725a#50c1a9a155745214c7f09d713ed56ff99188725a"
version = "0.200.0"
source = "git+https://github.com/bytecodealliance/wasm-tools?rev=4eaf9fbbc4527ecf9e7b6005b360fb82ba84cc4e#4eaf9fbbc4527ecf9e7b6005b360fb82ba84cc4e"
dependencies = [
"bitflags 2.4.1",
"indexmap 2.1.0",
"semver",
]
Expand Down

0 comments on commit 50483cb

Please sign in to comment.