Crates.io | wasm-testsuite |
lib.rs | wasm-testsuite |
version | 0.2.2 |
source | src |
created_at | 2023-12-10 13:27:19.902314 |
updated_at | 2024-03-01 15:11:49.457736 |
description | Mirror of the WebAssembly core testsuite for use in testing WebAssembly implementations |
homepage | |
repository | https://github.com/explodingcamera/tinywasm |
max_upload_size | |
id | 1064213 |
size | 12,148,023 |
wasm-testsuite
This crate embeds the latest version of the WebAssembly Test Suite. It is currently mainly used for testing the tinywasm-parser
crate. Check out the documentation for more information.
use wasm_testsuite::{MVP_TESTS, get_test_wast};
MVP_TESTS.iter().for_each(|test| {
let wast_bytes = get_test_wast(test).expect("Failed to get wast bytes");
let wast = std::str::from_utf8(&wast_bytes).expect("failed to convert wast to utf8");
// Do something with the wast (e.g. parse it using the `wast` crate)
});
This crate is licensed under the Apache License, Version 2.0.