1 unstable release
0.6.0 | Jul 19, 2022 |
---|
#796 in Configuration
12KB
283 lines
This crate provides Config
, which can be used to with any serde
deserializer.
Its main purpose is to read an Enarx.toml
configuration file.
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
:
Configuration for a WASI application in an Enarx Keep
Dependencies
~2–3MB
~56K SLoC