mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 13:36:59 +00:00
Move versioning to source.
This commit is contained in:
@@ -15,6 +15,7 @@ extern crate ctrlc;
|
||||
|
||||
pub mod database;
|
||||
pub mod notifications;
|
||||
pub mod version;
|
||||
pub mod routes;
|
||||
pub mod util;
|
||||
|
||||
@@ -39,7 +40,7 @@ async fn main() {
|
||||
dotenv::dotenv().ok();
|
||||
env_logger::init_from_env(env_logger::Env::default().filter_or("RUST_LOG", "info"));
|
||||
|
||||
info!("Starting REVOLT server.");
|
||||
info!("Starting REVOLT server [version {}].", crate::version::VERSION);
|
||||
|
||||
util::variables::preflight_checks();
|
||||
database::connect().await;
|
||||
|
||||
@@ -9,7 +9,7 @@ use rocket_contrib::json::JsonValue;
|
||||
#[get("/")]
|
||||
pub async fn root() -> JsonValue {
|
||||
json!({
|
||||
"revolt": "0.4.1-alpha.4",
|
||||
"revolt": crate::version::VERSION,
|
||||
"features": {
|
||||
"registration": !*DISABLE_REGISTRATION,
|
||||
"captcha": {
|
||||
|
||||
1
src/version.rs
Normal file
1
src/version.rs
Normal file
@@ -0,0 +1 @@
|
||||
pub const VERSION: &str = "0.4.1-alpha.6";
|
||||
Reference in New Issue
Block a user