pub fn embedded_themes() -> impl Iterator<Item = (&'static str, &'static str)>Expand description
The themes this crate ships, as (id, toml_source) pairs.
This is the path-free way to reach the bundled set, for consumers that
cannot rely on a directory existing at runtime: a crate pulled from
crates.io lives in a registry checkout whose location is not knowable at
compile time, so include_dir! and asset-bundling globs in the depending
crate have nothing stable to point at. Embedding here and re-exporting the
contents gives them one source of truth without a path.
Ordering follows the embedded directory and is not guaranteed; collect and sort by id where a stable order matters (a theme picker, say).