Crates.io | enarx-config-86d3ad9 |
lib.rs | enarx-config-86d3ad9 |
version | 0.6.0 |
source | src |
created_at | 2022-07-19 18:08:24.894355 |
updated_at | 2022-07-19 18:08:24.894355 |
description | Configuration for a WASI application in an Enarx Keep |
homepage | https://enarx.dev/ |
repository | https://github.com/enarx/enarx |
max_upload_size | |
id | 628464 |
size | 26,238 |
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();