mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-30 08:51:05 +00:00
This commit adds a test harness and the beginnings of a test suite for the crate that performs GC over a wasm module. This crate historically has had zero tests because it was thought that it would no longer be used once LLD landed with `--gc-sections`, but `wasm-bindgen` has come to rely more and more on `wasm-gc` for various purposes. The last release of `wasm-bindgen` was also released with a bug in the recently refactored support in the `wasm-gc` crate, providing a perfect time and motivation to start writing some tests! All tests added here are `*.wat` files which contain the expected output after the gc pass is executed. Tests are automatically updated with `BLESS_TESTS=1` in the environment, which is the expected way to generate the output for each test.
28 lines
577 B
TOML
28 lines
577 B
TOML
[package]
|
|
name = "wasm-bindgen-gc"
|
|
version = "0.2.27"
|
|
authors = ["The wasm-bindgen Developers"]
|
|
license = "MIT/Apache-2.0"
|
|
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/gc"
|
|
homepage = "https://rustwasm.github.io/wasm-bindgen/"
|
|
documentation = "https://docs.rs/wasm-bindgen-gc"
|
|
description = """
|
|
Support for removing unused items from a wasm executable
|
|
"""
|
|
|
|
[dependencies]
|
|
parity-wasm = "0.35.1"
|
|
log = "0.4"
|
|
rustc-demangle = "0.1.9"
|
|
|
|
[dev-dependencies]
|
|
rayon = "1.0.2"
|
|
tempfile = "3.0.4"
|
|
|
|
[lib]
|
|
doctest = false
|
|
|
|
[[test]]
|
|
name = 'all'
|
|
harness = false
|