Crate sara_core

Crate sara_core 

Source
Expand description

Sara Core - Requirements Knowledge Graph Library

This library provides the core functionality for managing architecture documents and requirements as a unified interconnected knowledge graph.

Re-exports§

pub use config::Config;
pub use diff::DiffError;
pub use diff::DiffOptions;
pub use diff::DiffResult;
pub use diff::DiffService;
pub use edit::EditOptions as CoreEditOptions;
pub use edit::EditResult as CoreEditResult;
pub use edit::EditService;
pub use edit::EditedValues;
pub use edit::ItemContext;
pub use error::EditError;
pub use error::ParseError;
pub use error::Result;
pub use error::SaraError;
pub use error::ValidationError;
pub use graph::GraphBuilder;
pub use graph::GraphDiff;
pub use graph::GraphStats;
pub use graph::KnowledgeGraph;
pub use graph::TraversalOptions;
pub use graph::TraversalResult;
pub use graph::traverse_downstream;
pub use graph::traverse_upstream;
pub use init::InitError;
pub use init::InitOptions;
pub use init::InitResult;
pub use init::InitService;
pub use init::parse_item_type;
pub use model::EditSummary;
pub use model::EditUpdates;
pub use model::FieldChange;
pub use model::FieldName;
pub use model::Item;
pub use model::ItemId;
pub use model::ItemType;
pub use model::RelationshipType;
pub use model::SourceLocation;
pub use model::TraceabilityConfig;
pub use model::UpstreamRefs;
pub use parser::extract_body;
pub use parser::parse_document;
pub use parser::parse_markdown_file;
pub use parser::update_frontmatter;
pub use query::LookupResult;
pub use query::MissingParentError;
pub use query::QueryEngine;
pub use query::check_parent_exists;
pub use query::find_similar_ids;
pub use query::lookup_item_or_suggest;
pub use report::CoverageReport;
pub use report::TraceabilityMatrix;
pub use repository::parse_directory;
pub use repository::parse_repositories;
pub use template::GeneratorOptions;
pub use template::extract_name_from_content;
pub use template::generate_document;
pub use template::generate_frontmatter;
pub use template::generate_id;
pub use template::suggest_next_id;
pub use validation::ValidationReport;
pub use validation::Validator;
pub use validation::validate;

Modules§

config
Configuration handling for sara.
diff
Diff service for comparing knowledge graphs.
edit
Edit service for modifying existing document metadata.
error
Error types for the sara-core library.
graph
Knowledge graph operations.
init
Item initialization service.
model
Domain model entities for the knowledge graph.
parser
Markdown and metadata parsing.
query
Query operations for the knowledge graph.
report
Report generation modules.
repository
Repository scanning and file operations.
template
Template generation for frontmatter and documents.
validation
Validation engine and rules for the knowledge graph.