Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
bytecodealliance
GitHub Repository: bytecodealliance/wasmtime
Path: blob/main/crates/test-programs/src/bin/config_get.rs
3069 views
1
use test_programs::wasi::config::store;
2
3
fn main() {
4
let v = store::get("hello").unwrap().unwrap();
5
assert_eq!(v, "world");
6
let config = store::get_all().unwrap();
7
assert_eq!(config, [("hello".to_string(), "world".to_string())])
8
}
9
10