diff --git a/Cargo.toml b/Cargo.toml index 9949d7f4..0fc295d8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace] -members = ["tests/rust-integration-tests/*", "crates/*"] +members = ["tests/rust-integration-tests/*", "crates/*", "tools/*"] [profile.release] lto = true diff --git a/tools/wasm-sample/Cargo.toml b/tools/wasm-sample/Cargo.toml new file mode 100644 index 00000000..190638d8 --- /dev/null +++ b/tools/wasm-sample/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "wasm-sample" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/tools/wasm-sample/src/main.rs b/tools/wasm-sample/src/main.rs new file mode 100644 index 00000000..7b5953b7 --- /dev/null +++ b/tools/wasm-sample/src/main.rs @@ -0,0 +1,11 @@ +fn main() { + println!("Printing args"); + for arg in std::env::args().skip(1) { + println!("{}", arg); + } + + println!("Printing envs"); + for envs in std::env::vars() { + println!("{:?}", envs); + } +}