Attempt to get basic leptos site working in devshell and nix package
This commit is contained in:
parent
0ff2b12fb0
commit
af3c61d75c
19 changed files with 3051 additions and 2 deletions
54
mx-aliases/Cargo.toml
Normal file
54
mx-aliases/Cargo.toml
Normal file
|
@ -0,0 +1,54 @@
|
|||
[package]
|
||||
name = "mx-aliases"
|
||||
edition = "2024"
|
||||
version = "1.0.0"
|
||||
metadata.crane.name = "mx-aliases"
|
||||
|
||||
[package.metadata.leptos]
|
||||
output-name = "mx-aliases"
|
||||
site-root = "target/mx-aliases"
|
||||
site-pkg-dir = "assets"
|
||||
style-file = "styles/main.scss"
|
||||
assets-dir = "public"
|
||||
site-addr = "127.0.0.1:3000"
|
||||
reload-port = 3001
|
||||
bin-features = ["server"]
|
||||
bin-default-features = false
|
||||
lib-features = ["client"]
|
||||
lib-default-features = false
|
||||
lib-profile-release = "wasm-release"
|
||||
|
||||
[profile.wasm-release]
|
||||
inherits = "release"
|
||||
opt-level = 'z'
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
panic = "abort"
|
||||
|
||||
|
||||
[lib]
|
||||
crate-type = ["cdylib", "rlib"]
|
||||
|
||||
[features]
|
||||
default = ["server", "client"]
|
||||
server = ["ssr"]
|
||||
client = ["hydrate"]
|
||||
hydrate = ["leptos/hydrate", "dep:console_error_panic_hook", "dep:wasm-bindgen"]
|
||||
ssr = [
|
||||
"dep:axum",
|
||||
"dep:tokio",
|
||||
"dep:leptos_axum",
|
||||
"leptos/ssr",
|
||||
"leptos_meta/ssr",
|
||||
"leptos_router/ssr",
|
||||
]
|
||||
|
||||
[dependencies]
|
||||
axum = { version = "0.8.0", optional = true }
|
||||
console_error_panic_hook = { version = "0.1.7", optional = true }
|
||||
leptos = { version = "0.8.6" }
|
||||
leptos_axum = { version = "0.8.0", optional = true }
|
||||
leptos_meta = { version = "0.8.0" }
|
||||
leptos_router = { version = "0.8.0" }
|
||||
tokio = { version = "1", features = ["rt-multi-thread"], optional = true }
|
||||
wasm-bindgen = { version = "=0.2.100", optional = true }
|
Loading…
Add table
Add a link
Reference in a new issue