1
0
Fork 0
mirror of https://github.com/containers/youki synced 2024-04-23 18:35:24 +02:00

Add wasm sample program

Signed-off-by: Thomas Schubart <24721048+Furisto@users.noreply.github.com>
This commit is contained in:
Thomas Schubart 2022-12-11 00:23:03 +01:00
parent 138c671402
commit 16f51cf161
3 changed files with 20 additions and 1 deletions

View File

@ -1,5 +1,5 @@
[workspace]
members = ["tests/rust-integration-tests/*", "crates/*"]
members = ["tests/rust-integration-tests/*", "crates/*", "tools/*"]
[profile.release]
lto = true

View File

@ -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]

View File

@ -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);
}
}