initial os release. I really expect SO much bugs, guys. good luck =)
This commit is contained in:
commit
d47557dc59
1 changed files with 7965 additions and 0 deletions
67
examples/leptos-axum/Cargo.toml
Normal file
67
examples/leptos-axum/Cargo.toml
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
[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 = ["sass"]}
|
||||
|
||||
[build-dependencies]
|
||||
# sabry for build with sass
|
||||
sabry = {path = "../../", features = ["build", "sass"]}
|
||||
# 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]
|
||||
output-name = "leptos-axum"
|
||||
site-root = "target/site"
|
||||
site-pkg-dir = "pkg"
|
||||
# Sabry-generated bundle for leptos
|
||||
style-file = "target/.sabry/target/bundle.css"
|
||||
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
|
||||
Loading…
Reference in a new issue