veilid/veilid-server/src/main.rs
John Smith 6127ffb970 lints
2021-11-27 21:34:08 -05:00

27 lines
494 B
Rust

#![forbid(unsafe_code)]
#![warn(clippy::all)]
mod client_api;
mod settings;
pub mod veilid_client_capnp {
include!(concat!(env!("OUT_DIR"), "/proto/veilid_client_capnp.rs"));
}
cfg_if::cfg_if! {
if #[cfg(windows)] {
mod windows;
fn main() -> windows_service::Result<(), String> {
windows::main()
}
}
else {
mod unix;
fn main() -> Result<(), String> {
async_std::task::block_on(unix::main())
}
}
}