Crates.io | wasm-testsuite |
lib.rs | wasm-testsuite |
version | |
source | src |
created_at | 2023-12-10 13:27:19.902314 |
updated_at | 2024-12-08 23:01:05.043797 |
description | Generic test harness for WebAssembly Runtimes |
homepage | |
repository | https://github.com/explodingcamera/tinywasm |
max_upload_size | |
id | 1064213 |
Cargo.toml error: | TOML parse error at line 23, column 1 | 23 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
wasm-testsuite
wasm-testsuite
used to be part oftinywasm
and was extracted into its own crate. Currently it only includes the test data and not a test runner.
This crate contains the the WebAssembly Test Suite for all versions of the WebAssembly spec and new proposals that are not yet part of the spec. Tests cases can change between minor versions of this crate as new tests are added or existing tests are modified.
use wasm_testsuite::data::{Proposal, SpecVersion, proposal, spec};
fn main() -> eyre::Result<()> {
for test in spec(&SpecVersion::V2) {
let name = test.name();
let raw = test.raw();
let wast_directives = test.wast()?.directives();
}
for p in Proposal::all() {
for test in proposal(p) {
let name = test.name();
let raw = test.raw();
let wast_directives = test.wast()?.directives();
}
}
Ok(())
}
This crate is licensed under the Apache License, Version 2.0.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in wasm-testsuite
by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.
Note: The tests contained in data/
are from the WebAssembly Test Suite and are licensed under the Apache License, Version 2.0 as well.