2021-11-22 11:28:30 -05:00
|
|
|
#![forbid(unsafe_code)]
|
2021-12-07 22:09:45 -05:00
|
|
|
#![deny(clippy::all)]
|
2021-12-09 16:11:52 -05:00
|
|
|
#![deny(unused_must_use)]
|
2021-11-22 11:28:30 -05:00
|
|
|
|
|
|
|
mod client_api;
|
2021-12-10 20:14:33 -05:00
|
|
|
mod client_log_channel;
|
2021-11-22 11:28:30 -05:00
|
|
|
mod settings;
|
|
|
|
|
2021-11-28 20:08:50 -05:00
|
|
|
#[allow(clippy::all)]
|
2021-11-22 11:28:30 -05:00
|
|
|
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())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|