1个不稳定版本
| 0.6.0 | 2022年7月19日 | 
|---|
#676 in 配置
12KB
283 行
此crate提供了Config,它可以与任何serde反序列化器一起使用。其主要目的是读取Enarx.toml配置文件。
extern crate toml;
use enarx_config::Config;
const CONFIG: &str = r#"
[[files]]
name = "LISTEN"
kind = "listen"
prot = "tls"
port = 12345
"#;
let config: Config = toml::from_str(CONFIG).unwrap();
lib.rs:
Enarx Keep中的WASI应用程序配置
依赖项
~1.4–2.3MB
~71K SLoC