Skip to main content

tuwunel_core/info/
mod.rs

1//! Information about the project. This module contains version, build, system,
2//! etc information which can be queried by admins or used by developers.
3
4pub mod cargo;
5pub mod rustc;
6pub mod version;
7
8pub use tuwunel_macros::rustc_flags_capture;
9
10/// Names the root crate containing this module.
11///
12/// The value is derived at compile time from `module_path!`. It includes the
13/// full crate name before any Rust module separator.
14pub const MODULE_ROOT: &str = const_str::split!(std::module_path!(), "::")[0];
15
16/// Names the workspace crate-family prefix.
17///
18/// The value is the portion of [`MODULE_ROOT`] before its first underscore. It
19/// is shared by crates following the workspace naming convention.
20pub const CRATE_PREFIX: &str = const_str::split!(MODULE_ROOT, '_')[0];