DOCUMENTATION_CACHE

Static DOCUMENTATION_CACHE 

Source
static DOCUMENTATION_CACHE: OnceLock<&'static [u8]>
Expand description

Cached documentation bytes to prevent repeated memory leaks in debug builds.

In debug builds, rust-embed reads files from disk and returns Cow::Owned, requiring us to leak the data to get a ’static reference. This cache ensures the leak only happens once.