Wire in a database

This commit is contained in:
Thomas Gideon 2024-09-02 17:43:49 -04:00
parent 232a9877e6
commit c7e4983e46
7 changed files with 252 additions and 28 deletions

View file

@ -20,8 +20,14 @@ wasm-bindgen = "=0.2.93"
thiserror = "1"
tracing = { version = "0.1", optional = true }
http = "1"
sqlx = { version = "0.8.1", features = ["postgres", "runtime-tokio", "tls-rustls-ring"], optional = true }
sqlx = { version = "0.8.1", features = ["postgres", "runtime-tokio", "tls-rustls-ring", "uuid"], optional = true }
anyhow = "1.0.86"
log = { version = "0.4.22", optional = true }
env_logger = { version = "0.11.5", optional = true }
rust-embed = { version = "8.5.0", optional = true }
uuid = { version = "1.10.0", features = ["serde", "v4"] }
serde = { version = "1.0.209", features = ["derive"] }
tokio-stream = { version = "0.1.15", optional = true, features = ["full"] }
[features]
hydrate = ["leptos/hydrate", "leptos_meta/hydrate", "leptos_router/hydrate"]
@ -35,8 +41,16 @@ ssr = [
"leptos_meta/ssr",
"leptos_router/ssr",
"dep:tracing",
"dep:sqlx"
"dep:sqlx",
"dep:log",
"dep:env_logger",
"dep:rust-embed",
"dep:tokio-stream"
]
log = ["dep:log"]
env_logger = ["dep:env_logger"]
rust-embed = ["dep:rust-embed"]
tokio-stream = ["dep:tokio-stream"]
# Defines a size-optimized profile for the WASM bundle in release mode
[profile.wasm-release]