From 14ab0b7f7cf9e0286de6d48bad1b48766416c9ae Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 27 Oct 2026 18:11:56 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=A7=B9=20refactor=20register=5Fsys=20?= =?UTF-8?q?function=20in=20stdlib=20sys=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com> --- stdlib/src/sys.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/stdlib/src/sys.rs b/stdlib/src/sys.rs index 00a45f14..adef338b 100644 --- a/stdlib/src/sys.rs +++ b/stdlib/src/sys.rs @@ -84,6 +84,11 @@ fn sys_sleep( impl StdlibRegistry { pub fn register_sys(&mut self) { + self.register_sys_fs(); + self.register_sys_time(); + } + + fn register_sys_fs(&mut self) { let mut exports: HashMap> = HashMap::new(); @@ -119,11 +124,13 @@ impl StdlibRegistry { StdlibModule { name: "std.fs".to_string(), version: "1.0.0".to_string(), - exports: exports.clone(), + exports, required_capabilities: vec![Capability::FileSystem], }, ); + } + fn register_sys_time(&mut self) { let mut time_exports: HashMap> = HashMap::new(); time_exports.insert( From 393ba9b72755746a22bf54d22b8012323a9c3520 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Tue, 27 Oct 2026 19:11:33 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A7=B9=20refactor=20register=5Fsys=20?= =?UTF-8?q?function=20in=20stdlib=20sys=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Tcode-Motion <188012755+Tcode-Motion@users.noreply.github.com>