Skip to main content

Crate stoa_core

Crate stoa_core 

Source
Expand description

Stoa core types: frontmatter, ids, schema, validation.

M2 — Wiki + CLI core. The concrete API consumed by stoa-cli and the frontmatter property tests lives here.

Spec source: [ARCHITECTURE.md §2 Wiki data model] + [§3 Schema] + [§5 KG].

Re-exports§

pub use error::Error;
pub use error::Result;
pub use error::ValidationError;
pub use frontmatter::Frontmatter;
pub use id::Id;
pub use id::PageDir;
pub use id::SessionId;
pub use kind::Kind;
pub use kind::Status;
pub use relationship::EntityType;
pub use relationship::Relationship;
pub use relationship::RelationshipType;
pub use schema::Schema;
pub use validate::validate_page;

Modules§

error
Error types for stoa-core.
frontmatter
YAML frontmatter — the in-memory shape of a wiki page’s metadata block.
id
Page-id parsing + routing (ARCHITECTURE §2).
kind
Enums for page kind and status (ARCHITECTURE §2).
relationship
Typed relationships + entity-type vocabulary (ARCHITECTURE §5).
schema
In-memory model of the workspace STOA.md schema (ARCHITECTURE §3).
validate
Schema validation for parsed wiki frontmatter.