mirror of
https://github.com/4cuck/nitter-status.git
synced 2026-10-27 00:57:39 +00:00
template time, package version
This commit is contained in:
1 parent
e0a497b3f2
commit
fae1360b9d
4 files changed
+15
-2
No files matched your search
@@ -10,6 +10,13 @@ use std::sync::Arc;
|
||||
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
|
||||
|
||||
fn main() -> miette::Result<()> {
|
||||
#[cfg(debug_assertions)]
|
||||
let build_mode = "debug mode";
|
||||
#[cfg(not(debug_assertions))]
|
||||
let build_mode = "release mode";
|
||||
println!("Starting {} {} licensed under {}, {build_mode}",
|
||||
env!("CARGO_PKG_NAME"),env!("CARGO_PKG_VERSION"),
|
||||
env!("CARGO_PKG_LICENSE"));
|
||||
dotenvy::dotenv()
|
||||
.into_diagnostic()
|
||||
.wrap_err_with(|| "Failed to load .env file!")?;
|
||||
|
||||
Reference in new issue
Block a user