Expand description
Serving content-hashed files out of the embedded dist directory.
Functions§
- asset
- Load a text asset from the embedded dist directory. Panics if missing.
- asset_
bytes - Load raw bytes from the embedded dist directory. Returns None if missing.
- load_
manifest Deprecated - Load and parse the asset manifest from embedded assets.
- serve_
asset - Axum handler: serve a static asset with content negotiation (brotli, gzip).
- try_
asset - Fallible
asset— use this anywhere a request can influencename. - try_
load_ manifest - Fallible
load_manifest. - try_
load_ module_ preloads - Each route’s
modulepreloadlist from the embeddedmanifest.json, forRenderCtx::with_module_preloadsCall it at start, besidetry_load_manifest.