mirror of
https://github.com/leptos-rs/leptos.git
synced 2025-12-27 09:54:41 -05:00
61 lines
1.7 KiB
TOML
61 lines
1.7 KiB
TOML
[package]
|
|
name = "leptos_tauri_from_scratch"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[[bin]]
|
|
name = "leptos_tauri_from_scratch_bin"
|
|
path = "./src/main.rs"
|
|
|
|
[dependencies]
|
|
axum = { version = "0.8.4", optional = true }
|
|
axum-macros = { version = "0.5.0", optional = true }
|
|
console_error_panic_hook = { version = "0.1.7", optional = true }
|
|
leptos = { git = "https://github.com/leptos-rs/leptos.git", rev = "v0.8.2" }
|
|
leptos_axum = { git = "https://github.com/leptos-rs/leptos.git", rev = "v0.8.2", optional = true }
|
|
leptos_meta = { git = "https://github.com/leptos-rs/leptos.git", rev = "v0.8.2", optional = true }
|
|
server_fn = { git = "https://github.com/leptos-rs/leptos.git", rev = "v0.8.2", optional = true }
|
|
tokio = { version = "1.45.1", features = ["rt-multi-thread"], optional = true }
|
|
tower = { version = "0.5.2", optional = true }
|
|
tower-http = { version = "0.5.2", features = ["fs", "cors"], optional = true }
|
|
wasm-bindgen = { version = "=0.2.100", optional = true }
|
|
|
|
[features]
|
|
csr = ["leptos/csr", "dep:server_fn"]
|
|
hydrate = [
|
|
"leptos/hydrate",
|
|
"dep:leptos_meta",
|
|
"dep:console_error_panic_hook",
|
|
"dep:wasm-bindgen"
|
|
]
|
|
ssr = [
|
|
"dep:axum",
|
|
"dep:axum-macros",
|
|
"leptos/ssr",
|
|
"dep:leptos_axum",
|
|
"dep:leptos_meta",
|
|
"leptos_meta/ssr",
|
|
"dep:tower-http",
|
|
"dep:tower",
|
|
"dep:tokio",
|
|
]
|
|
|
|
[package.metadata.leptos]
|
|
bin-exe-name = "leptos_tauri_from_scratch_bin"
|
|
output-name = "leptos_tauri_from_scratch"
|
|
assets-dir = "../public"
|
|
site-pkg-dir = "pkg"
|
|
site-root = "target/site"
|
|
site-addr = "0.0.0.0:3000"
|
|
reload-port = 3001
|
|
browserquery = "defaults"
|
|
watch = false
|
|
env = "DEV"
|
|
bin-features = ["ssr"]
|
|
bin-default-features = false
|
|
lib-features = ["hydrate"]
|
|
lib-default-features = false
|