Expand description
Core initialization and utilities for xaeroflux.
This module provides:
- Global configuration loading and access (
load_config,CONF). - Initialization of global thread pools for dispatch and I/O.
- Serialization and deserialization helpers for rkyv.
- Application startup (
initialize) with logging and banner.
Re-exports§
pub use crate::config::Config;pub use crate::logs::init_logging;
Modules§
- config
- Application configuration definitions for xaeroflux-actors.
- date_
time - event
- Core event definitions for xaeroflux-core.
- hash
- keys
- logs
- merkle_
tree - pipe
- pool
- size
- Configuration of page and segment sizes for xaeroflux-actors.
- sys
- This file is part of the
sysmodule, which provides system-level functionality - system_
paths - vector_
clock - vector_
clock_ actor
Statics§
- CONF
- Global, singleton configuration instance.
- DISPATCHER_
POOL - Global thread pool for dispatching work to worker threads.
- IO_POOL
- Global thread pool for performing I/O-bound tasks.
- NEXT_ID
- P2P_
RUNTIME - Global runtime for peer-to-peer networking tasks.
- XAERO_
DISPATCHER_ POOL XaeroEventthread pool for dispatching work to worker threads.
Functions§
- init_
global_ dispatcher_ pool - Initializes the global dispatcher thread pool.
- init_
global_ io_ pool - Initializes the global I/O thread pool.
- init_
p2p_ runtime - Initializes the global P2P Tokio runtime.
- init_
xaero_ pool - initialize
- Perform global initialization of xaeroflux core.
- load_
config - Load or retrieve the global configuration.
- next_id
- Returns a unique, thread-safe
u64ID. - show_
banner - Display the ASCII art banner for xaeroflux startup.
- shutdown_
all_ pools