MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / bundled_module_source

Function bundled_module_source

crates/os-runtime/tests/boot.rs:15–17  ·  view source on GitHub ↗
(name: &str)

Source from the content-addressed store, hash-verified

13static STDLIB_OBJS: OnceLock<Vec<(String, AssembledOutput)>> = OnceLock::new();
14
15fn bundled_module_source(name: &str) -> Option<&'static str> {
16 os_runtime::module_source(name).or_else(|| {
17 get_stdlib_modules_for_mode(TargetMode::Kernel)
18 .into_iter()
19 .find_map(|(module_name, source)| (module_name == name).then_some(source))
20 })

Calls

no outgoing calls

Tested by

no test coverage detected