diff options
author | Vika <vika@fireburn.ru> | 2023-06-22 20:18:30 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2023-06-22 20:18:30 +0300 |
commit | 8b1f39e5b30b5a3bad0f95d92a5909992139aca2 (patch) | |
tree | 70486888c96a76b77f084c37e1ef0d22148e4ee9 /kittybox-rs/Cargo.toml | |
parent | 775693f36d96c304ff1cb76e0dea78d61d82903e (diff) | |
download | kittybox-8b1f39e5b30b5a3bad0f95d92a5909992139aca2.tar.zst |
[wip] Postgres backend
Diffstat (limited to 'kittybox-rs/Cargo.toml')
-rw-r--r-- | kittybox-rs/Cargo.toml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/kittybox-rs/Cargo.toml b/kittybox-rs/Cargo.toml index 16b617e..8c1497d 100644 --- a/kittybox-rs/Cargo.toml +++ b/kittybox-rs/Cargo.toml @@ -7,13 +7,14 @@ default-run = "kittybox" autobins = false [features] -default = ["rustls"] +default = ["rustls", "postgres"] #util = ["anyhow"] #migration = ["util"] webauthn = ["openssl", "dep:webauthn"] -openssl = ["reqwest/native-tls-vendored", "reqwest/native-tls-alpn"] -rustls = ["reqwest/rustls-tls-webpki-roots"] +openssl = ["reqwest/native-tls-crate", "reqwest/native-tls-alpn", "sqlx/runtime-tokio-native-tls"] +rustls = ["reqwest/rustls-tls-webpki-roots", "sqlx/runtime-tokio-rustls"] cli = ["clap"] +postgres = ["sqlx", "kittybox-util/sqlx"] [[bin]] name = "kittybox" @@ -139,3 +140,7 @@ features = ["derive"] optional = true [dependencies.thiserror] version = "1.0.35" +[dependencies.sqlx] +version = "0.6" +features = ["uuid", "chrono", "json", "postgres"] +optional = true \ No newline at end of file |