add initial crates and apps
This commit is contained in:
parent
5c87ba3519
commit
1ca300098f
113 changed files with 28169 additions and 0 deletions
90
apps/chattyness-app/Cargo.toml
Normal file
90
apps/chattyness-app/Cargo.toml
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
[package]
|
||||
name = "chattyness-app"
|
||||
version.workspace = true
|
||||
edition.workspace = true
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib", "rlib"]
|
||||
|
||||
[[bin]]
|
||||
name = "chattyness-app"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
chattyness-admin-ui.workspace = true
|
||||
chattyness-user-ui.workspace = true
|
||||
chattyness-db.workspace = true
|
||||
chattyness-error.workspace = true
|
||||
leptos.workspace = true
|
||||
leptos_meta.workspace = true
|
||||
leptos_router.workspace = true
|
||||
leptos_axum = { workspace = true, optional = true }
|
||||
axum = { workspace = true, optional = true }
|
||||
tower = { workspace = true, optional = true }
|
||||
tower-http = { workspace = true, optional = true }
|
||||
tower-sessions = { workspace = true, optional = true }
|
||||
tower-sessions-sqlx-store = { workspace = true, optional = true }
|
||||
sqlx = { workspace = true, optional = true }
|
||||
clap = { workspace = true, optional = true }
|
||||
tokio = { workspace = true, optional = true }
|
||||
dotenvy = { workspace = true, optional = true }
|
||||
tracing = { workspace = true, optional = true }
|
||||
tracing-subscriber = { workspace = true, optional = true }
|
||||
serde.workspace = true
|
||||
uuid.workspace = true
|
||||
|
||||
# WASM dependencies
|
||||
console_error_panic_hook = { workspace = true, optional = true }
|
||||
wasm-bindgen = { workspace = true, optional = true }
|
||||
|
||||
[features]
|
||||
default = ["ssr"]
|
||||
ssr = [
|
||||
"leptos/ssr",
|
||||
"leptos_axum",
|
||||
"axum",
|
||||
"tower",
|
||||
"tower-http",
|
||||
"tower-sessions",
|
||||
"tower-sessions-sqlx-store",
|
||||
"sqlx",
|
||||
"clap",
|
||||
"tokio",
|
||||
"dotenvy",
|
||||
"tracing",
|
||||
"tracing-subscriber",
|
||||
"chattyness-admin-ui/ssr",
|
||||
"chattyness-user-ui/ssr",
|
||||
"chattyness-db/ssr",
|
||||
"chattyness-error/ssr",
|
||||
]
|
||||
# Unified hydrate feature - admin routes are lazy-loaded via #[lazy] macro
|
||||
hydrate = [
|
||||
"leptos/hydrate",
|
||||
"chattyness-user-ui/hydrate",
|
||||
"chattyness-admin-ui/hydrate",
|
||||
"console_error_panic_hook",
|
||||
"wasm-bindgen",
|
||||
]
|
||||
|
||||
[package.metadata.leptos]
|
||||
# Project name used for output artifacts
|
||||
output-name = "chattyness-app"
|
||||
|
||||
# Site configuration (paths relative to workspace root)
|
||||
site-root = "target/site"
|
||||
site-pkg-dir = "pkg"
|
||||
site-addr = "127.0.0.1:3000"
|
||||
reload-port = 3003
|
||||
|
||||
# Tailwind CSS (path relative to this Cargo.toml)
|
||||
tailwind-input-file = "style/tailwind.css"
|
||||
|
||||
# Build settings
|
||||
bin-features = ["ssr"]
|
||||
bin-default-features = false
|
||||
lib-features = ["hydrate"]
|
||||
lib-default-features = false
|
||||
|
||||
# Environment
|
||||
env = "DEV"
|
||||
Loading…
Add table
Add a link
Reference in a new issue