mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-12-30 09:46:27 -05:00
30 lines
566 B
Rust
30 lines
566 B
Rust
#![forbid(unsafe_code)]
|
|
#![deny(clippy::all)]
|
|
#![deny(unused_must_use)]
|
|
|
|
mod client_api;
|
|
mod client_log_channel;
|
|
mod settings;
|
|
|
|
#[allow(clippy::all)]
|
|
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())
|
|
}
|
|
}
|
|
}
|