ucifer 0.3.0

OpenWrt UCI Parser and Exporter
Documentation
/* Copyright © 2025 CZ.NIC z.s.p.o. (http://www.nic.cz/)
 *
 * This file is part of the ucifer library
 *
 * Ucifer is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free
 * Software Foundation, either version 3 of the License, or (at your option)
 * any later version.
 *
 * Ucifer is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * For more information, see /LICENSE.txt
 */

#![doc = include_str!("../README.md")]
//!
//! Implementation is not fully complete, see [`syntax`] notice.

#![allow(unexpected_cfgs)]
#![cfg_attr(not(any(coverage, coverage_nightly)), no_std)]

extern crate alloc;

pub mod document;
pub mod syntax;

pub use {
	document::{ConfigOption, Document},
	syntax::Directive,
};

/// Shorthand for [`std::borrow::Cow<'_, str>`] as it's used commonly across the
/// crate
type CowStr<'a> = alloc::borrow::Cow<'a, str>;