5 releases

0.6.3 Aug 8, 2022
0.6.2 Jul 28, 2022
0.6.1 Jul 20, 2022
0.6.0 Jul 6, 2022
0.1.0 Jul 5, 2022

#774 in Configuration

Download history 20/week @ 2024-02-25 1/week @ 2024-03-03 5/week @ 2024-03-10 89/week @ 2024-03-31

94 downloads per month
Used in enarx-exec-wasmtime

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.8–2.7MB
~83K SLoC