Expand description
Bundled Swagger UI assets served by the documentation controller.
The files under doc/static/ are compiled into the binary via
include_bytes!, so the documentation UI resolves regardless of the
process working directory. Filesystem lookup under FS_DIR is kept as a
fallback so locally edited assets are picked up without a rebuild.
Use lookup to resolve an asset name to its content type and bytes, or
FS_DIR when reading the same files from disk.
Constants§
- FS_DIR
- Filesystem directory (relative to the crate root) holding the same assets. Used as a fallback when the process runs with the crate root as cwd.
Functions§
- lookup
- Returns
(content_type, bytes)for a bundled asset, orNoneif unknown.