feat: add a histrical wit-bindgen
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
[package]
|
||||
name = "wit-bindgen-gen-rust-wasm"
|
||||
version = "0.1.0"
|
||||
authors = ["Alex Crichton <alex@alexcrichton.com>"]
|
||||
edition = "2018"
|
||||
|
||||
[lib]
|
||||
test = false
|
||||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
wit-bindgen-gen-core = { path = '../gen-core', version = '0.1.0' }
|
||||
wit-bindgen-gen-rust = { path = '../gen-rust', version = '0.1.0' }
|
||||
heck = "0.3"
|
||||
structopt = { version = "0.3", default-features = false, optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
wit-bindgen-rust = { path = '../rust-wasm' }
|
||||
test-helpers = { path = '../test-helpers', features = ['wit-bindgen-gen-rust-wasm'] }
|
||||
@@ -0,0 +1,4 @@
|
||||
fn main() {
|
||||
println!("cargo:rerun-if-changed=build.rs");
|
||||
// this build script is currently only here so OUT_DIR is set for testing.
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,32 @@
|
||||
#![allow(dead_code, type_alias_bounds)]
|
||||
|
||||
#[test]
|
||||
fn ok() {}
|
||||
|
||||
#[rustfmt::skip]
|
||||
mod imports {
|
||||
test_helpers::codegen_rust_wasm_import!(
|
||||
"*.wit"
|
||||
|
||||
// If you want to exclude a specific test you can include it here with
|
||||
// gitignore glob syntax:
|
||||
//
|
||||
// "!wasm.wit"
|
||||
// "!host.wit"
|
||||
//
|
||||
//
|
||||
// Similarly you can also just remove the `*.wit` glob and list tests
|
||||
// individually if you're debugging.
|
||||
);
|
||||
}
|
||||
|
||||
mod exports {
|
||||
test_helpers::codegen_rust_wasm_export!(
|
||||
"*.wit"
|
||||
|
||||
// TODO: these use push/pull buffer which isn't implemented in the test
|
||||
// generator just yet
|
||||
"!wasi-next.wit"
|
||||
"!host.wit"
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user