Skip to main content

Crate ucifer

Crate ucifer 

Source
Expand description

§Ucifer

Latest Release pipeline status coverage report

OpenWrt’s UCI (Unified Configuration Interface) implementation in Rust.

This implementation differs from libuci that:

  • It is thread-safe
  • Simpler, document-oriented API
  • Proper documentation
  • No staging directory in filesystem, no context. All configuration is imported into in-memory document, which then can be queried, modified and exported.
  • Can differentiate configurations (remember to turn on the diff feature)

Implementation is not fully complete, see syntax notice.

Re-exports§

pub use document::ConfigOption;
pub use document::Document;
pub use syntax::Directive;

Modules§

diff
Utilities for lazy UCI documents differentiation and merging
document
Represents model of the configuration in a structured manner.
syntax
Syntax unit Directive definition and parsing facilities for the UCI configuration file format