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

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")