-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
62 lines (55 loc) · 1.45 KB
/
Cargo.toml
File metadata and controls
62 lines (55 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[package]
name = "my_ssr"
edition = "2024"
version = "0.1.1"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
axum = { version = "0.8", features = ["ws"], optional = true }
tokio = { version = "1.48", features = ["full"], optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1"
chrono = { version = "0.4", features = ["serde"] }
rand = "0.9"
log = "0.4"
console_error_panic_hook = "0.1"
console_log = "1.0"
leptos = "0.8"
leptos_axum = { version = "0.8", optional = true }
leptos-chartistry = "0.2"
leptos_meta = "0.8"
leptos_router.version = "0.8"
leptos-use = "0.18"
futures-util = "0.3"
tower = { version = "0.5", optional = true }
tower-http = { version = "0.6", features = ["fs"], optional = true }
wasm-bindgen = "0.2.108"
web-sys = { version = "0.3", features = ["console", "Window","MessageEvent", "WebSocket"] }
js-sys = "0.3"
getrandom = { version = "0.3",optional = true }
[features]
hydrate = ["leptos/hydrate", "getrandom/wasm_js"]
ssr = [
"dep:axum",
"dep:leptos_axum",
"dep:tower",
"dep:tower-http",
"dep:tokio",
"leptos/ssr",
"leptos_meta/ssr",
"leptos-use/ssr",
"leptos_router/ssr",
]
[package.metadata.leptos]
bin-features = ["ssr"]
lib-features = ["hydrate"]
[dev-dependencies]
axum = { version = "0.8", features = ["ws"] }
tokio = { version = "1.48", features = ["full"] }
tokio-tungstenite = "0.28"
futures-util = "0.3"
rand = "0.9"
env_logger = "0.11"
[[example]]
name = "server"
path = "examples/server.rs"