74 lines
2.0 KiB
TOML
74 lines
2.0 KiB
TOML
[package]
|
|
name = "birthday_calendar"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
leptos = "0.8"
|
|
leptos_meta = "0.8"
|
|
leptos_router = "0.8"
|
|
serde = { version = "1", features = ["derive"] }
|
|
|
|
# Client (WASM)
|
|
console_error_panic_hook = { version = "0.1", optional = true }
|
|
wasm-bindgen = { version = "0.2.106", optional = true }
|
|
|
|
# Serveur uniquement
|
|
axum = { version = "0.8", optional = true }
|
|
leptos_axum = { version = "0.8", optional = true }
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros"], optional = true }
|
|
sqlx = { version = "0.8", default-features = false, features = ["runtime-tokio", "sqlite", "migrate", "macros"], optional = true }
|
|
tower-sessions = { version = "0.14", optional = true }
|
|
tower-sessions-sqlx-store = { version = "0.15", features = ["sqlite"], optional = true }
|
|
argon2 = { version = "0.5", optional = true }
|
|
time = { version = "0.3", optional = true }
|
|
|
|
[features]
|
|
hydrate = [
|
|
"leptos/hydrate",
|
|
"dep:console_error_panic_hook",
|
|
"dep:wasm-bindgen",
|
|
]
|
|
ssr = [
|
|
"dep:axum",
|
|
"dep:tokio",
|
|
"dep:leptos_axum",
|
|
"dep:sqlx",
|
|
"dep:tower-sessions",
|
|
"dep:tower-sessions-sqlx-store",
|
|
"dep:argon2",
|
|
"dep:time",
|
|
"leptos/ssr",
|
|
"leptos_meta/ssr",
|
|
"leptos_router/ssr",
|
|
]
|
|
|
|
# Profil optimisé en taille pour le bundle WASM en release
|
|
[profile.wasm-release]
|
|
inherits = "release"
|
|
opt-level = 'z'
|
|
lto = true
|
|
codegen-units = 1
|
|
panic = "abort"
|
|
|
|
[package.metadata.leptos]
|
|
output-name = "birthday_calendar"
|
|
site-root = "target/site"
|
|
site-pkg-dir = "pkg"
|
|
tailwind-input-file = "style/tailwind.css"
|
|
# Fichiers copiés tels quels à la racine du site (favicon, images…)
|
|
assets-dir = "public"
|
|
site-addr = "127.0.0.1:3000"
|
|
reload-port = 3001
|
|
browserquery = "defaults"
|
|
# Passer à "PROD" en production : active notamment le cookie de session `Secure`
|
|
env = "DEV"
|
|
bin-features = ["ssr"]
|
|
bin-default-features = false
|
|
lib-features = ["hydrate"]
|
|
lib-default-features = false
|
|
lib-profile-release = "wasm-release"
|