-
Notifications
You must be signed in to change notification settings - Fork 212
/
Copy pathlib.rs
39 lines (34 loc) · 1.12 KB
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! [Docs.rs](https://docs.rs) (formerly cratesfyi) is an open source project to host
//! documentation of crates for the Rust Programming Language.
#![allow(clippy::cognitive_complexity)]
pub use self::docbuilder::options::DocBuilderOptions;
pub use self::docbuilder::DocBuilder;
pub use self::docbuilder::{Limits, RustwideBuilder};
pub use self::web::Server;
pub mod db;
mod docbuilder;
mod error;
mod index;
pub mod storage;
#[cfg(test)]
mod test;
pub mod utils;
mod web;
use web::page::GlobalAlert;
// Warning message shown in the navigation bar of every page. Set to `None` to hide it.
pub(crate) static GLOBAL_ALERT: Option<GlobalAlert> = None;
/*
pub(crate) static GLOBAL_ALERT: Option<GlobalAlert> = Some(GlobalAlert {
url: "https://blog.rust-lang.org/2019/09/18/upcoming-docsrs-changes.html",
text: "Upcoming docs.rs breaking changes!",
css_class: "error",
fa_icon: "warning",
});
*/
/// Version string generated at build time contains last git
/// commit hash and build date
pub const BUILD_VERSION: &str = concat!(
env!("CARGO_PKG_VERSION"),
" ",
include_str!(concat!(env!("OUT_DIR"), "/git_version"))
);