#enarx

enarx-config

Configuration for a WASI application in an Enarx Keep

5 releases

Uses new Rust 2021

new 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

#48 in Configuration

Download history 82/week @ 2022-07-02 122/week @ 2022-07-09 398/week @ 2022-07-16 542/week @ 2022-07-23 500/week @ 2022-07-30 330/week @ 2022-08-06

1,790 downloads per month
Used in 2 crates

Apache-2.0

11KB
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.7–2.6MB
~81K SLoC