Skip to content
Snippets Groups Projects
Commit d7d874f8 authored by Jason Volk's avatar Jason Volk
Browse files

start core info module; move version to info


Signed-off-by: default avatarJason Volk <jason@zemos.net>
parent ee864bcd
No related branches found
No related tags found
1 merge request!530de-global services
//! Information about the project. This module contains version, build, system,
//! etc information which can be queried by admins or used by developers.
pub mod version;
/// one true function for returning the conduwuit version with the necessary //! one true function for returning the conduwuit version with the necessary
/// CONDUWUIT_VERSION_EXTRA env variables used if specified //! CONDUWUIT_VERSION_EXTRA env variables used if specified
/// //!
/// Set the environment variable `CONDUWUIT_VERSION_EXTRA` to any UTF-8 string //! Set the environment variable `CONDUWUIT_VERSION_EXTRA` to any UTF-8 string
/// to include it in parenthesis after the SemVer version. A common value are //! to include it in parenthesis after the SemVer version. A common value are
/// git commit hashes. //! git commit hashes.
use std::sync::OnceLock; use std::sync::OnceLock;
static BRANDING: &str = "Conduwuit"; static BRANDING: &str = "Conduwuit";
......
...@@ -2,19 +2,19 @@ ...@@ -2,19 +2,19 @@
pub mod config; pub mod config;
pub mod debug; pub mod debug;
pub mod error; pub mod error;
pub mod info;
pub mod log; pub mod log;
pub mod metrics; pub mod metrics;
pub mod mods; pub mod mods;
pub mod pdu; pub mod pdu;
pub mod server; pub mod server;
pub mod utils; pub mod utils;
pub mod version;
pub use config::Config; pub use config::Config;
pub use error::Error; pub use error::Error;
pub use info::{version, version::version};
pub use pdu::{PduBuilder, PduCount, PduEvent}; pub use pdu::{PduBuilder, PduCount, PduEvent};
pub use server::Server; pub use server::Server;
pub use version::version;
pub type Result<T, E = Error> = std::result::Result<T, E>; pub type Result<T, E = Error> = std::result::Result<T, E>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment