Skip to main content

stoa_core/
lib.rs

1//! Stoa core types: frontmatter, ids, schema, validation.
2//!
3//! M2 — Wiki + CLI core. The concrete API consumed by `stoa-cli` and the
4//! frontmatter property tests lives here.
5//!
6//! Spec source: [ARCHITECTURE.md §2 Wiki data model] + [§3 Schema] + [§5 KG].
7
8pub mod error;
9pub mod frontmatter;
10pub mod id;
11pub mod kind;
12pub mod relationship;
13pub mod schema;
14pub mod validate;
15
16pub use error::{Error, Result, ValidationError};
17pub use frontmatter::Frontmatter;
18pub use id::{Id, PageDir, SessionId};
19pub use kind::{Kind, Status};
20pub use relationship::{EntityType, Relationship, RelationshipType};
21pub use schema::Schema;
22pub use validate::validate_page;
23
24#[cfg(test)]
25mod tests {
26    #[test]
27    fn crate_version_is_not_empty() {
28        assert!(!env!("CARGO_PKG_VERSION").is_empty());
29    }
30}