okf 0.2.4

The Open Knowledge Format (OKF) v0.2 in pure Rust: the `okf` CLI (validate, lint, inspect, index, graph, format, diff) plus the full okf-core library API re-exported, with zero dependencies.
Documentation
//! # okf: the Open Knowledge Format, in pure Rust
//!
//! A dependency-free implementation of the [Open Knowledge Format (OKF)
//! v0.2][spec], Google's open, human- and agent-friendly format for
//! representing knowledge as a directory of markdown files with YAML
//! frontmatter.
//!
//! This crate is the user-facing entry point of the OKF workspace. It ships
//! the `okf` command-line tool (`cargo install okf`) and re-exports the entire
//! API of the [`okf-core`](https://docs.rs/okf-core) crate, where the
//! specification is implemented, so as a dependency it is used exactly like a
//! plain library:
//!
//! ```no_run
//! use okf::{Bundle, validate_bundle};
//!
//! let bundle = Bundle::load("./my_bundle")?;
//! println!("{} concepts", bundle.len());
//!
//! let report = validate_bundle(&bundle);
//! if report.is_conformant() {
//!     println!("conformant OKF v0.2 bundle");
//! }
//! # Ok::<(), okf::BundleError>(())
//! ```
//!
//! See the okf-core documentation for the full model: [`Bundle`], [`Document`],
//! [`Frontmatter`], [`ConceptId`], the provenance/trust/attestation families,
//! and the [`validate_bundle`] conformance checker.
//!
//! [spec]: https://github.com/GoogleCloudPlatform/open-knowledge-format/blob/main/SPEC.md

#![forbid(unsafe_code)]
#![warn(missing_docs)]
#![warn(clippy::pedantic, clippy::nursery)]

/// Compiles and runs the `README.md` examples as doctests.
///
/// `cfg(doctest)` means this item exists only while `cargo test` collects
/// doctests, so it never reaches the public API or the rendered documentation.
/// Without it the README's Rust blocks would be prose that nothing checks.
#[cfg(doctest)]
#[doc = include_str!("../../../README.md")]
pub struct ReadmeExamples;

// Hidden from the documented API: the CLI implementation is exposed only so
// the okf binary and the cargo-okf subcommand can share it, and carries no
// stability promise for library consumers.
#[cfg(feature = "validator")]
#[doc(hidden)]
pub mod cli;

pub use okf_core::*;
#[cfg(feature = "validator")]
pub use okf_validator::*;