repositories / smith
smith
There are many coding harnesses - but this one is fast
owned by admin
plugins/coding-tools/build.rs
Raw//! Fixed Wasm limits required by `SMH-SPEC-WASM0001`.
fn main() {
if std::env::var_os("CARGO_CFG_TARGET_ARCH").as_deref() != Some("wasm32".as_ref()) {
return;
}
println!("cargo::rustc-link-arg=--initial-memory=2097152");
println!("cargo::rustc-link-arg=--max-memory=2097152");
}