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