- build.rs: generate .gz and .br compressed variants at build time, embed both into the FRONTEND constant - dist.rs: content-type for SPA fallback uses index.html path explicitly, explicit extension mapping for Vite content-hashed filenames - frontend lib: get_frontend_asset_compressed returns (data, encoding, etag)
14 lines
251 B
TOML
14 lines
251 B
TOML
[package]
|
|
name = "frontend"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
|
|
[dependencies]
|
|
lazy_static.workspace = true
|
|
|
|
[build-dependencies]
|
|
walkdir.workspace = true
|
|
md5.workspace = true
|
|
brotli = { workspace = true }
|
|
flate2 = { workspace = true }
|