sokf-core 0.1.1

sokf-core holds the logic of the sokf command-line tool: it loads and validates Superdev Open Knowledge Format (SOKF) knowledge stores, and runs each sokf command.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! The `source` module loads files from the repository. It records the line
//! ending of each file, computes the file key, the length, modification time,
//! and hash that identify a file's content for the cache, hashes text, and
//! splits the frontmatter from the body.

mod hash;
mod text;

pub use hash::{Fnv, fnv1a64};
pub use text::{FileKey, LineEnding, Source, Stat, load, load_text, split};
pub(crate) use text::{create_parent, read_optional};