60 lines
1.2 KiB
Rust
60 lines
1.2 KiB
Rust
#![deny(clippy::all)]
|
|
#![deny(unused_must_use)]
|
|
|
|
#[macro_use]
|
|
extern crate alloc;
|
|
|
|
mod api_logger;
|
|
mod attachment_manager;
|
|
mod callback_state_machine;
|
|
mod connection_manager;
|
|
mod connection_table;
|
|
mod dht;
|
|
mod intf;
|
|
mod lease_manager;
|
|
mod network_connection;
|
|
mod network_manager;
|
|
mod receipt_manager;
|
|
mod routing_table;
|
|
mod rpc_processor;
|
|
mod veilid_api;
|
|
mod veilid_config;
|
|
mod veilid_core;
|
|
mod veilid_rng;
|
|
|
|
#[macro_use]
|
|
pub mod xx;
|
|
|
|
pub use self::attachment_manager::AttachmentState;
|
|
pub use self::veilid_api::*;
|
|
pub use self::veilid_config::*;
|
|
pub use self::veilid_core::{VeilidCore, VeilidCoreSetup};
|
|
|
|
pub mod veilid_capnp {
|
|
include!(concat!(env!("OUT_DIR"), "/proto/veilid_capnp.rs"));
|
|
}
|
|
|
|
pub mod tests;
|
|
|
|
pub fn veilid_version_string() -> String {
|
|
env!("CARGO_PKG_VERSION").to_owned()
|
|
}
|
|
pub fn veilid_version() -> (u32, u32, u32) {
|
|
(
|
|
u32::from_str(env!("CARGO_PKG_VERSION_MAJOR")).unwrap(),
|
|
u32::from_str(env!("CARGO_PKG_VERSION_MINOR")).unwrap(),
|
|
u32::from_str(env!("CARGO_PKG_VERSION_PATCH")).unwrap(),
|
|
)
|
|
}
|
|
|
|
pub static DEFAULT_LOG_IGNORE_LIST: [&'static str; 8] = [
|
|
"async_std",
|
|
"async_io",
|
|
"polling",
|
|
"rustls",
|
|
"async_tungstenite",
|
|
"tungstenite",
|
|
"netlink_proto",
|
|
"netlink_sys",
|
|
];
|