68 lines
1.7 KiB
TOML
68 lines
1.7 KiB
TOML
[package]
|
|
name = "leptos-axum-sabry"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
leptos = { version = "0.7.0-gamma3" }
|
|
leptos_axum = { version = "0.7.0-gamma3", optional = true }
|
|
leptos_meta = { version = "0.7.0-gamma3" }
|
|
leptos_router = { version = "0.7.0-gamma3" }
|
|
axum = { version = "0.7", optional = true }
|
|
console_error_panic_hook = "0.1"
|
|
tokio = { version = "1", features = ["rt-multi-thread"], optional = true }
|
|
tower = { version = "0.4", optional = true }
|
|
tower-http = { version = "0.5", features = ["fs"], optional = true }
|
|
wasm-bindgen = "=0.2.93"
|
|
thiserror = "1"
|
|
tracing = { version = "0.1", optional = true }
|
|
http = "1"
|
|
|
|
# sabry with sass
|
|
sabry = {path = "../../", features = ["lepty-scoping"]}
|
|
|
|
[build-dependencies]
|
|
# sabry for build with sass
|
|
sabry = {path = "../../", features = ["build", "lepty-scoping"]}
|
|
# lets depend on our styles
|
|
define-styles = {path = "../define-styles"}
|
|
|
|
[features]
|
|
hydrate = ["leptos/hydrate"]
|
|
ssr = [
|
|
"dep:axum",
|
|
"dep:tokio",
|
|
"dep:tower",
|
|
"dep:tower-http",
|
|
"dep:leptos_axum",
|
|
"leptos/ssr",
|
|
"leptos_meta/ssr",
|
|
"leptos_router/ssr",
|
|
"dep:tracing",
|
|
]
|
|
|
|
[package.metadata.sabry]
|
|
css.minify = true
|
|
# We'll use bundle for leptos
|
|
css.bundle = "target/.sabry/target/bundle.css"
|
|
|
|
[package.metadata.leptos]
|
|
# Sabry-specific quality of life config
|
|
style-file = "target/.sabry/target/bundle.css"
|
|
|
|
output-name = "leptos-axum"
|
|
site-root = "target/site"
|
|
site-pkg-dir = "pkg"
|
|
assets-dir = "public"
|
|
site-addr = "127.0.0.1:3000"
|
|
reload-port = 3001
|
|
browserquery = "defaults"
|
|
env = "DEV"
|
|
bin-features = ["ssr"]
|
|
bin-default-features = false
|
|
lib-features = ["hydrate"]
|
|
lib-default-features = false
|