#enarx #applications #wasi #keep #file #toml

enarx-config-86d3ad9

Configuration for a WASI application in an Enarx Keep

1 unstable release

0.6.0 Jul 19, 2022

#714 in Configuration

Apache-2.0

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

~1.4–2.2MB
~58K SLoC