Skip to main content

fabryk_core/
lib.rs

1//! Fabryk Core — shared types, traits, errors, and utilities.
2//!
3//! This crate provides the foundational types used across all Fabryk crates.
4//! It has no internal Fabryk dependencies (dependency level 0).
5//!
6//! # Modules
7//!
8//! - [`error`]: Error types and Result alias
9//! - [`state`]: Generic application state container
10//! - [`traits`]: Core traits for domain abstraction
11//! - [`util`]: File, path, and ID utilities
12
13#![doc = include_str!("../README.md")]
14
15pub mod error;
16pub mod service;
17pub mod state;
18pub mod traits;
19pub mod util;
20
21// Re-export key types at crate root for convenience
22pub use error::{Error, Result};
23pub use service::{ServiceHandle, ServiceState};
24pub use state::AppState;
25pub use traits::ConfigManager;
26pub use traits::ConfigProvider;
27
28// Convenience re-exports from util
29pub use util::ids::{id_from_path, normalize_id};
30pub use util::resolver::PathResolver;