diff --git a/crates/nu-std/src/lib.rs b/crates/nu-std/src/lib.rs index 7c847cb499..996683e91b 100644 --- a/crates/nu-std/src/lib.rs +++ b/crates/nu-std/src/lib.rs @@ -66,11 +66,16 @@ pub fn load_standard_library( let name = "std".to_string(); let content = include_str!("../lib/mod.nu"); + // these modules are loaded in the order they appear in this list + #[rustfmt::skip] let submodules = vec![ + // helper modules that could be used in other parts of the library + ("log", include_str!("../lib/log.nu")), ("assert", include_str!("../lib/assert.nu")), + + // the rest of the library ("dirs", include_str!("../lib/dirs.nu")), ("help", include_str!("../lib/help.nu")), - ("log", include_str!("../lib/log.nu")), ("xml", include_str!("../lib/xml.nu")), ];