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 requests;
21pub mod resource_trace;
22pub mod runtime_config;
23pub mod sampling;
24
25// Re-export commonly used types
26pub use auto_config::*;
27pub use config::*;
28pub use devices::*;
29pub use errors::*;
30pub use execution_policy::*;
31pub use harmony::*;
32pub use ids::*;
33pub use metrics::*;
34pub use models::*;
35pub use native_operator::*;
36pub use observability_profile::*;
37pub use process_memory::*;
38pub use reasoning::*;
39pub use requests::*;
40pub use resource_trace::*;
41pub use runtime_config::*;
42pub use sampling::*;
43
44/// Result type used throughout Ferrum
45pub type Result<T> = std::result::Result<T, FerrumError>;
46
47/// Block identifier type  
48pub type BlockId = u32;