Compare commits

..

1 commit

Author SHA1 Message Date
65dd4f889c
feat: Add user resource w/database as storage 2025-01-09 21:26:15 +01:00
4 changed files with 1 additions and 9 deletions

View file

@ -16,7 +16,7 @@ serde.workspace = true
slog-async.workspace = true
slog.workspace = true
sqlx = { version = "0.8.3", default-features = false, features = [
"macros", "migrate", "postgres", "runtime-tokio", "tls-rustls", "time", "uuid"
"macros", "postgres", "runtime-tokio", "tls-rustls", "time", "uuid"
] }
tokio.workspace = true
trace-request = { path = "../trace-request" }

View file

@ -1,5 +0,0 @@
// generated by `sqlx migrate build-script`
fn main() {
// trigger recompilation when a new migration is added
println!("cargo:rerun-if-changed=migrations");
}

View file

@ -74,8 +74,6 @@ async fn main() -> Result<()> {
let pg = PgPool::connect(&database_url).await?;
sqlx::migrate!().run(&pg).await?;
let ctx = ControllerContext::new(pg);
let api = api::api()?;
ServerBuilder::new(api, Arc::new(ctx), logger)

View file

@ -3,4 +3,3 @@ pub mod context;
mod user;
mod version;