-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
122 lines (113 loc) · 3.06 KB
/
Cargo.toml
File metadata and controls
122 lines (113 loc) · 3.06 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# SPDX-FileCopyrightText: 2026 Sephyi <me@sephy.io>
#
# SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0
[package]
name = "commitbee-web"
version = "0.1.0"
edition = "2024"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
leptos = { version = "0.8" }
leptos_meta = { version = "0.8" }
leptos_router = { version = "0.8" }
leptos_axum = { version = "0.8", optional = true }
axum = { version = "0.8", optional = true }
tokio = { version = "1", features = ["full"], optional = true }
tower = { version = "0.5", optional = true }
tower-http = { version = "0.6", features = [
"fs",
"compression-gzip",
], optional = true }
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1" }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
web-sys = { version = "0.3", features = [
"Storage",
"Window",
"Document",
"Element",
"DomTokenList",
"HtmlElement",
"HtmlInputElement",
"HtmlCanvasElement",
"NodeList",
"IntersectionObserver",
"IntersectionObserverEntry",
"IntersectionObserverInit",
"Clipboard",
"Navigator",
"MediaQueryList",
"KeyboardEvent",
"Response",
"Headers",
"CanvasRenderingContext2d",
"WebGl2RenderingContext",
"WebGlShader",
"WebGlProgram",
"WebGlUniformLocation",
"WebGlBuffer",
"WebGlVertexArrayObject",
"DomRect",
] }
console_error_panic_hook = { version = "0.1", optional = true }
sublime_fuzzy = "0.7"
[build-dependencies]
pulldown-cmark = { version = "0.13", features = ["html"] }
syntect = { version = "5", default-features = false, features = [
"default-fancy",
] }
serde = { version = "1", features = ["derive"] }
serde_yaml = "0.9"
serde_json = "1"
walkdir = "2"
slug = "0.1"
ammonia = "4"
[dev-dependencies]
serde_yaml = "0.9"
walkdir = "2"
[features]
default = []
hydrate = ["leptos/hydrate", "leptos/islands", "dep:console_error_panic_hook"]
ssr = [
"leptos/ssr",
"leptos/islands",
"leptos_meta/ssr",
"leptos_router/ssr",
"dep:leptos_axum",
"dep:axum",
"dep:tokio",
"dep:tower",
"dep:tower-http",
]
[package.metadata.leptos]
bin-target = "commitbee-web"
output-name = "commitbee-web"
site-root = "target/site"
site-pkg-dir = "pkg"
tailwind-input-file = "style/tailwind.css"
assets-dir = "public"
site-addr = "127.0.0.1:3000"
reload-port = 3001
bin-features = ["ssr"]
bin-default-features = false
lib-features = ["hydrate"]
lib-default-features = false
# Disabled: hash-files produces per-build hashed filenames (e.g.
# commitbee-web.<hash>.css) and bakes them into the SSR binary via compile-time
# env vars. That works locally with `cargo leptos watch` but breaks the static
# prerender + GitHub Pages deploy pipeline: the prerender step emits HTML with
# unhashed filenames while the pkg/ directory contains hashed ones, so every
# asset 404s. Deterministic filenames are fine for a static deploy — GitHub
# Pages handles cache headers.
hash-files = false
[[bin]]
name = "prerender"
path = "src/bin/prerender.rs"
required-features = ["ssr"]
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1