Skip to main content

ferrum_types/
lib.rs

1//! Core type definitions for the Ferrum inference framework
2//!
3//! This crate contains all the fundamental types, IDs, configurations, and error definitions
4//! that are shared across the entire Ferrum ecosystem. It is designed to be lightweight
5//! and dependency-free to avoid circular dependencies.
6
7pub mod auto_config;
8pub mod config;
9pub mod devices;
10pub mod errors;
11pub mod execution_policy;
12pub mod harmony;
13pub mod ids;
14pub mod metrics;
15pub mod models;
16pub mod native_operator;
17pub mod observability_profile;
18pub mod process_memory;
19pub mod reasoning;
20pub mod reasoning_controls;
21pub mod requests;
22pub mod resource_trace;
23pub mod runtime_config;
24pub mod sampling;
25
26// Re-export commonly used types
27pub use auto_config::*;
28pub use config::*;
29pub use devices::*;
30pub use errors::*;
31pub use execution_policy::*;
32pub use harmony::*;
33pub use ids::*;
34pub use metrics::*;
35pub use models::*;
36pub use native_operator::*;
37pub use observability_profile::*;
38pub use process_memory::*;
39pub use reasoning::*;
40pub use reasoning_controls::*;
41pub use requests::*;
42pub use resource_trace::*;
43pub use runtime_config::*;
44pub use sampling::*;
45
46/// Result type used throughout Ferrum
47pub type Result<T> = std::result::Result<T, FerrumError>;
48
49/// Block identifier type  
50pub type BlockId = u32;