Skip to main content

Crate xaeroflux_core

Crate xaeroflux_core 

Source
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 sys module, 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
XaeroEvent thread 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 u64 ID.
show_banner
Display the ASCII art banner for xaeroflux startup.
shutdown_all_pools