From d3bfdf7b7e3ae0ed83005b70a6cda5de9aaee6ba Mon Sep 17 00:00:00 2001 From: Rh4096 Date: Tue, 11 Jun 2024 20:35:17 +0700 Subject: [PATCH] feat: add version show --- terraps/src/game/shop.rs | 2 +- terraps/src/main.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/terraps/src/game/shop.rs b/terraps/src/game/shop.rs index 80f8354..7cb8869 100644 --- a/terraps/src/game/shop.rs +++ b/terraps/src/game/shop.rs @@ -14,4 +14,4 @@ pub async fn pay_get_unconfirmed_order_id_list() -> JSON { } // FOR LATER USE -pub async fn _template_shop() {} +pub async fn __template_shop() {} diff --git a/terraps/src/main.rs b/terraps/src/main.rs index 45e7f45..1a0ff2c 100644 --- a/terraps/src/main.rs +++ b/terraps/src/main.rs @@ -7,6 +7,7 @@ mod utils; use anyhow::Result; use routes::app; +use tracing_log::log::info; use utils::{ server::{get_server_address, Server}, upgrade, @@ -14,7 +15,9 @@ use utils::{ #[tokio::main] async fn main() -> Result<()> { + let version = env!("CARGO_PKG_VERSION"); upgrade().await?; + info!("TerraPS v{} is starting...", version); let (server_address, server_port) = get_server_address(); let server = Server::new(server_address, server_port); server.serve(app()).await