mirror of
https://github.com/containers/youki
synced 2024-05-21 15:06:07 +02:00
Add wasm sample program
Signed-off-by: Thomas Schubart <24721048+Furisto@users.noreply.github.com>
This commit is contained in:
parent
138c671402
commit
16f51cf161
|
@ -1,5 +1,5 @@
|
||||||
[workspace]
|
[workspace]
|
||||||
members = ["tests/rust-integration-tests/*", "crates/*"]
|
members = ["tests/rust-integration-tests/*", "crates/*", "tools/*"]
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
|
|
|
@ -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]
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue