├── .editorconfig ├── .github ├── CODEOWNERS └── workflows │ └── check.yml ├── .gitignore ├── .gitmodules ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── examples ├── bench-decoder.rs ├── build.rs ├── data.rs ├── exports.rs ├── info.rs ├── inject.rs ├── roundtrip.rs └── show.rs ├── fuzz ├── .gitignore ├── Cargo.toml └── fuzz_targets │ └── deserialize.rs ├── justfile ├── res └── cases │ └── v1 │ ├── accumulate_u8.wasm │ ├── clang.wasm │ ├── const.wasm │ ├── err-int-too-long.wasm │ ├── err-leb-i32-too-long-2.wasm │ ├── err-leb-i32-too-long.wasm │ ├── err-leb-i64-too-long.wasm │ ├── err-leb-u32-too-long.wasm │ ├── err-return-type.wasm │ ├── err-sections-after-custom.wasm │ ├── global_section.wasm │ ├── hello.wasm │ ├── ifelse.wasm │ ├── inc_i32.wasm │ ├── names.wasm │ ├── names_with_imports.wasm │ ├── offset.wasm │ ├── payload_len.wasm │ ├── peek_sample.wasm │ ├── relocatable.wasm │ ├── start_add.wasm │ ├── start_add_custom.wasm │ ├── start_mut.wasm │ ├── test.wasm │ ├── test2.wasm │ ├── test3.wasm │ ├── test4.wasm │ ├── test5.rs │ ├── test5.wasm │ ├── test6.rs │ ├── test6.wasm │ ├── two-mems.wasm │ ├── varuint1_1.wasm │ └── with_names.wasm ├── rustfmt.toml ├── src ├── builder │ ├── code.rs │ ├── data.rs │ ├── export.rs │ ├── global.rs │ ├── import.rs │ ├── invoke.rs │ ├── memory.rs │ ├── misc.rs │ ├── mod.rs │ ├── module.rs │ └── table.rs ├── elements │ ├── export_entry.rs │ ├── func.rs │ ├── global_entry.rs │ ├── import_entry.rs │ ├── index_map.rs │ ├── mod.rs │ ├── module.rs │ ├── name_section.rs │ ├── ops.rs │ ├── primitives.rs │ ├── reloc_section.rs │ ├── section.rs │ ├── segment.rs │ └── types.rs ├── io.rs └── lib.rs └── testsuite ├── Cargo.toml └── src ├── lib.rs └── run.rs /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/workflows/check.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/.github/workflows/check.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | Cargo.lock 3 | .vscode 4 | **/.DS_Store 5 | rls 6 | .idea 7 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/.gitmodules -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/README.md -------------------------------------------------------------------------------- /examples/bench-decoder.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/examples/bench-decoder.rs -------------------------------------------------------------------------------- /examples/build.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/examples/build.rs -------------------------------------------------------------------------------- /examples/data.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/examples/data.rs -------------------------------------------------------------------------------- /examples/exports.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/examples/exports.rs -------------------------------------------------------------------------------- /examples/info.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/examples/info.rs -------------------------------------------------------------------------------- /examples/inject.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/examples/inject.rs -------------------------------------------------------------------------------- /examples/roundtrip.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/examples/roundtrip.rs -------------------------------------------------------------------------------- /examples/show.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/examples/show.rs -------------------------------------------------------------------------------- /fuzz/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | target 3 | corpus 4 | artifacts 5 | -------------------------------------------------------------------------------- /fuzz/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/fuzz/Cargo.toml -------------------------------------------------------------------------------- /fuzz/fuzz_targets/deserialize.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/fuzz/fuzz_targets/deserialize.rs -------------------------------------------------------------------------------- /justfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/justfile -------------------------------------------------------------------------------- /res/cases/v1/accumulate_u8.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/accumulate_u8.wasm -------------------------------------------------------------------------------- /res/cases/v1/clang.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/clang.wasm -------------------------------------------------------------------------------- /res/cases/v1/const.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/const.wasm -------------------------------------------------------------------------------- /res/cases/v1/err-int-too-long.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/err-int-too-long.wasm -------------------------------------------------------------------------------- /res/cases/v1/err-leb-i32-too-long-2.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/err-leb-i32-too-long-2.wasm -------------------------------------------------------------------------------- /res/cases/v1/err-leb-i32-too-long.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/err-leb-i32-too-long.wasm -------------------------------------------------------------------------------- /res/cases/v1/err-leb-i64-too-long.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/err-leb-i64-too-long.wasm -------------------------------------------------------------------------------- /res/cases/v1/err-leb-u32-too-long.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/err-leb-u32-too-long.wasm -------------------------------------------------------------------------------- /res/cases/v1/err-return-type.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/err-return-type.wasm -------------------------------------------------------------------------------- /res/cases/v1/err-sections-after-custom.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/err-sections-after-custom.wasm -------------------------------------------------------------------------------- /res/cases/v1/global_section.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/global_section.wasm -------------------------------------------------------------------------------- /res/cases/v1/hello.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/hello.wasm -------------------------------------------------------------------------------- /res/cases/v1/ifelse.wasm: -------------------------------------------------------------------------------- 1 | asm` 2 | A!AAA !  -------------------------------------------------------------------------------- /res/cases/v1/inc_i32.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/inc_i32.wasm -------------------------------------------------------------------------------- /res/cases/v1/names.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/names.wasm -------------------------------------------------------------------------------- /res/cases/v1/names_with_imports.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/names_with_imports.wasm -------------------------------------------------------------------------------- /res/cases/v1/offset.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/offset.wasm -------------------------------------------------------------------------------- /res/cases/v1/payload_len.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/payload_len.wasm -------------------------------------------------------------------------------- /res/cases/v1/peek_sample.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/peek_sample.wasm -------------------------------------------------------------------------------- /res/cases/v1/relocatable.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/relocatable.wasm -------------------------------------------------------------------------------- /res/cases/v1/start_add.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/start_add.wasm -------------------------------------------------------------------------------- /res/cases/v1/start_add_custom.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/start_add_custom.wasm -------------------------------------------------------------------------------- /res/cases/v1/start_mut.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/start_mut.wasm -------------------------------------------------------------------------------- /res/cases/v1/test.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/test.wasm -------------------------------------------------------------------------------- /res/cases/v1/test2.wasm: -------------------------------------------------------------------------------- 1 | asm `` envabort -------------------------------------------------------------------------------- /res/cases/v1/test3.wasm: -------------------------------------------------------------------------------- 1 | asm`A 2 | #!# j$#AjApq$  -------------------------------------------------------------------------------- /res/cases/v1/test4.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/test4.wasm -------------------------------------------------------------------------------- /res/cases/v1/test5.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/test5.rs -------------------------------------------------------------------------------- /res/cases/v1/test5.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/test5.wasm -------------------------------------------------------------------------------- /res/cases/v1/test6.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/test6.rs -------------------------------------------------------------------------------- /res/cases/v1/test6.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/test6.wasm -------------------------------------------------------------------------------- /res/cases/v1/two-mems.wasm: -------------------------------------------------------------------------------- 1 | asm -------------------------------------------------------------------------------- /res/cases/v1/varuint1_1.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/varuint1_1.wasm -------------------------------------------------------------------------------- /res/cases/v1/with_names.wasm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/res/cases/v1/with_names.wasm -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/rustfmt.toml -------------------------------------------------------------------------------- /src/builder/code.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/builder/code.rs -------------------------------------------------------------------------------- /src/builder/data.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/builder/data.rs -------------------------------------------------------------------------------- /src/builder/export.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/builder/export.rs -------------------------------------------------------------------------------- /src/builder/global.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/builder/global.rs -------------------------------------------------------------------------------- /src/builder/import.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/builder/import.rs -------------------------------------------------------------------------------- /src/builder/invoke.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/builder/invoke.rs -------------------------------------------------------------------------------- /src/builder/memory.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/builder/memory.rs -------------------------------------------------------------------------------- /src/builder/misc.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/builder/misc.rs -------------------------------------------------------------------------------- /src/builder/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/builder/mod.rs -------------------------------------------------------------------------------- /src/builder/module.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/builder/module.rs -------------------------------------------------------------------------------- /src/builder/table.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/builder/table.rs -------------------------------------------------------------------------------- /src/elements/export_entry.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/elements/export_entry.rs -------------------------------------------------------------------------------- /src/elements/func.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/elements/func.rs -------------------------------------------------------------------------------- /src/elements/global_entry.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/elements/global_entry.rs -------------------------------------------------------------------------------- /src/elements/import_entry.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/elements/import_entry.rs -------------------------------------------------------------------------------- /src/elements/index_map.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/elements/index_map.rs -------------------------------------------------------------------------------- /src/elements/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/elements/mod.rs -------------------------------------------------------------------------------- /src/elements/module.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/elements/module.rs -------------------------------------------------------------------------------- /src/elements/name_section.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/elements/name_section.rs -------------------------------------------------------------------------------- /src/elements/ops.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/elements/ops.rs -------------------------------------------------------------------------------- /src/elements/primitives.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/elements/primitives.rs -------------------------------------------------------------------------------- /src/elements/reloc_section.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/elements/reloc_section.rs -------------------------------------------------------------------------------- /src/elements/section.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/elements/section.rs -------------------------------------------------------------------------------- /src/elements/segment.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/elements/segment.rs -------------------------------------------------------------------------------- /src/elements/types.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/elements/types.rs -------------------------------------------------------------------------------- /src/io.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/io.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/src/lib.rs -------------------------------------------------------------------------------- /testsuite/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/testsuite/Cargo.toml -------------------------------------------------------------------------------- /testsuite/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/testsuite/src/lib.rs -------------------------------------------------------------------------------- /testsuite/src/run.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paritytech/parity-wasm/HEAD/testsuite/src/run.rs --------------------------------------------------------------------------------