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 env;
15mod error;
16mod middleware;
17mod response;
18mod router;
19mod server;
20mod websocket;
21
22pub use app::App;
23pub use error::{Error, Result};
24pub use server::{local, remote};
25
26pub const VERSION: &str = env!("CARGO_PKG_VERSION");