node-token 0.1.0

KeyCompute node-token client for personal PC nodes
//! 运行时模块
//!
//! 包含节点的核心运行逻辑:
//! - 注册(register)
//! - 心跳(heartbeat)
//! - 轮询(poll)
//! - 任务执行(executor)

pub mod executor;
pub mod heartbeat;
pub mod poll;
pub mod register;

// 重新导出主要类型和函数,方便外部使用
#[allow(unused_imports)] // 在阶段五使用
pub use executor::TaskExecutor;
#[allow(unused_imports)] // 在阶段五使用
pub use heartbeat::heartbeat_loop;
#[allow(unused_imports)] // 在阶段五使用
pub use poll::poll_loop;
#[allow(unused_imports)] // 在阶段五使用
pub use register::{register_node, try_load_session};