Crates.io | simpleconfig |
lib.rs | simpleconfig |
version | 0.1.0 |
source | src |
created_at | 2023-08-15 11:42:51.490347 |
updated_at | 2023-08-15 11:42:51.490347 |
description | Simple config by string literal. Suitable for API config passing by string literal. Imagine you can pass `level=3;type=zstd` literally to compression algorithm library instead of Config::Builder::new().withLevel(3).withType(`zstd`).build? |
homepage | |
repository | |
max_upload_size | |
id | 944933 |
size | 7,199 |
This is designed for libraries to pass simple configs with just a String.
e.g.
Passing "compression_type=zstd;level=3" instead of Config::Builder::new()::with_level(3).with_type(CompressionType::ZSTD).build().unwrap()
?
Passing "bind=0.0.0.0;port=8080" to SocketServer instead of (Option<InetAddress>, Option<u32>)
tuple?
Your choice.