This is a parser and serializer library for the CNI configuration format, compatible with version 0.1.0. It also provides the recommended API functions.
This crate is dependency-free (except for testing).
The recommended API and serializer can be en-/disabled with the feature flags api
or serializer
respectively. Only the API is enabled by default to speed up compilation.
You can find the core library source code in the lib/src
directory.
ini
and all ext
elements have a feature flag by the same name. Note that nothing outside of core
is enabled by default, but can be enabled by the respective feature flags.
core
: 29/29ini
: fully compliantext
: more-keys
The root directory contains the unpublished crate cni_format_utils, which contains a utility for files in the CNI configuration format such as a formatter and linter. This part is still a work in progress. Please check back later.