| Crates.io | enarx-config |
| lib.rs | enarx-config |
| version | 0.6.3 |
| created_at | 2022-07-05 15:25:20.419458+00 |
| updated_at | 2022-08-08 21:40:57.151533+00 |
| description | Configuration for a WASI application in an Enarx Keep |
| homepage | https://enarx.dev/ |
| repository | https://github.com/enarx/enarx |
| max_upload_size | |
| id | 619766 |
| size | 26,209 |
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();