Set version to 0.1.1-dev and print version on startup

This commit is contained in:
Simon Goller 2024-06-25 18:01:15 +02:00
parent bf31ab7209
commit ef897bc80f
3 changed files with 4 additions and 2 deletions

2
Cargo.lock generated
View file

@ -59,7 +59,7 @@ checksum = "8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc"
[[package]]
name = "app"
version = "0.1.0"
version = "0.1.1-dev"
dependencies = [
"dao",
"dao_impl",

View file

@ -1,6 +1,6 @@
[package]
name = "app"
version = "0.1.0"
version = "0.1.1-dev"
edition = "2021"
resolver = "2"

View file

@ -211,6 +211,8 @@ async fn create_dev_admin_user(pool: Arc<SqlitePool>) {
#[tokio::main]
async fn main() {
let version = env!("CARGO_PKG_VERSION");
println!("Shifty backend version: {}", version);
dotenvy::dotenv().ok();
let pool = Arc::new(
SqlitePool::connect("sqlite:./localdb.sqlite3")