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 ids;
12pub mod metrics;
13pub mod models;
14pub mod requests;
15pub mod runtime_config;
16pub mod sampling;
17
18// Re-export commonly used types
19pub use auto_config::*;
20pub use config::*;
21pub use devices::*;
22pub use errors::*;
23pub use ids::*;
24pub use metrics::*;
25pub use models::*;
26pub use requests::*;
27pub use runtime_config::*;
28pub use sampling::*;
29
30/// Result type used throughout Ferrum
31pub type Result<T> = std::result::Result<T, FerrumError>;
32
33/// Block identifier type  
34pub type BlockId = u32;