diff --git a/.cargo/config.toml b/.cargo/config.toml index 9c902c53..fadf7180 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,5 +1,2 @@ -[env] -SQLX_OFFLINE = "true" - [registries.gitea] index = "sparse+https://git.gabrielkaszewski.dev/api/packages/GKaszewski/cargo/" diff --git a/.dockerignore b/.dockerignore index 77ff21c2..dc9cd0db 100644 --- a/.dockerignore +++ b/.dockerignore @@ -4,7 +4,7 @@ target/ *.db *.db-shm *.db-wal -# .cargo and .sqlx are needed at build time (SQLX_OFFLINE mode) +# .cargo is needed at build time (registry config) docs/ dev.db spa/node_modules/ diff --git a/Cargo.toml b/Cargo.toml index ba324135..b215600a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,10 +47,12 @@ async-trait = "0.1.92" uuid = { version = "1.23.0", features = ["v4", "v5", "serde"] } chrono = { version = "0.4", features = ["serde"] } chrono-tz = "0.10" -sqlx = { version = "0.8.6", features = [ +sqlx = { version = "0.8.6", default-features = false, features = [ "runtime-tokio", "sqlite", "uuid", + "derive", + "migrate", ] } rand = "0.9" tempfile = "3"