wasmer/tests/wasi_test_resources/quine.rs
2020-04-15 16:31:05 -07:00

15 lines
347 B
Rust

// WASI:
// dir: .
use std::fs;
use std::io::Read;
fn main() {
let mut this_file =
fs::File::open("tests/wasi_test_resources/quine.rs").expect("could not find src file");
let md = this_file.metadata().unwrap();
let mut in_str = String::new();
this_file.read_to_string(&mut in_str).unwrap();
println!("{}", in_str);
}