harn_vm/
stdlib_modules.rs1pub fn get_stdlib_source(module: &str) -> Option<&'static str> {
6 match module {
7 "text" => Some(include_str!("stdlib_text.harn")),
8 "collections" => Some(include_str!("stdlib_collections.harn")),
9 "math" => Some(include_str!("stdlib_math.harn")),
10 "path" => Some(include_str!("stdlib_path.harn")),
11 "json" => Some(include_str!("stdlib_json.harn")),
12 "async" => Some(include_str!("stdlib_async.harn")),
13 "checkpoint" => Some(include_str!("stdlib_checkpoint.harn")),
14 _ => None,
15 }
16}