veilid/veilid-core/src/lib.rs

60 lines
1.2 KiB
Rust
Raw Normal View History

2021-12-08 03:09:45 +00:00
#![deny(clippy::all)]
2021-12-09 21:11:52 +00:00
#![deny(unused_must_use)]
2021-11-22 16:28:30 +00:00
#[macro_use]
extern crate alloc;
2022-02-01 03:47:17 +00:00
mod api_logger;
2021-11-22 16:28:30 +00:00
mod attachment_manager;
mod callback_state_machine;
mod connection_manager;
2021-11-22 16:28:30 +00:00
mod connection_table;
mod dht;
mod intf;
mod lease_manager;
2022-01-04 04:58:26 +00:00
mod network_connection;
2021-11-22 16:28:30 +00:00
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};
2021-11-22 16:28:30 +00:00
pub mod veilid_capnp {
include!(concat!(env!("OUT_DIR"), "/proto/veilid_capnp.rs"));
}
pub mod tests;
2022-01-28 03:02:16 +00:00
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(),
)
}
2022-02-01 03:47:17 +00:00
pub static DEFAULT_LOG_IGNORE_LIST: [&'static str; 8] = [
"async_std",
"async_io",
"polling",
"rustls",
"async_tungstenite",
"tungstenite",
"netlink_proto",
"netlink_sys",
];