#string-literal #literals #pass #config #zstd #suitable #builder

simpleconfig

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?

1 unstable release

0.1.0 Aug 15, 2023

#630 in Compression

Apache-2.0

8KB
93 lines

Simple config object by String literal.

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.

Dependencies

~16KB