#enarx

enarx-config

Configuration for a WASI application in an Enarx Keep

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

#103 in Configuration

Download history 122/week @ 2022-11-29 108/week @ 2022-12-06 84/week @ 2022-12-13 123/week @ 2022-12-20 85/week @ 2022-12-27 86/week @ 2023-01-03 162/week @ 2023-01-10 104/week @ 2023-01-17 105/week @ 2023-01-24 70/week @ 2023-01-31 88/week @ 2023-02-07 94/week @ 2023-02-14 111/week @ 2023-02-21 119/week @ 2023-02-28 119/week @ 2023-03-07 138/week @ 2023-03-14

506 downloads per month
Used in enarx-exec-wasmtime

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

~2.2–3MB
~92K SLoC