nil_server/lib.rs
1// Copyright (C) Call of Nil contributors
2// SPDX-License-Identifier: AGPL-3.0-only
3
4#![cfg_attr(docsrs, feature(doc_cfg))]
5#![doc(html_favicon_url = "https://nil.dev.br/favicon.png")]
6#![feature(
7 duration_constructors,
8 try_blocks,
9 try_blocks_heterogeneous,
10 try_trait_v2
11)]
12
13mod app;
14mod error;
15mod middleware;
16mod response;
17mod router;
18mod server;
19mod websocket;
20
21pub use app::App;
22pub use error::{Error, Result};
23pub use server::{local, remote};
24
25pub const VERSION: &str = env!("CARGO_PKG_VERSION");