Build secmon with bundled jerbuild dependencies

ober

03e317adf1a229e8d190011668462a728f6e9f07

diff --git a/.jerbuild b/.jerbuild
index 96dd7f2..a553708 100644
--- a/.jerbuild
+++ b/.jerbuild
@@ -3,6 +3,7 @@
 (entry "bin/agent.ss")
 (output "secmon-agent")
 (requires "cc" "cargo")
-(notes "Uses the repo-local patched jerboa-native-rs crate. That crate has no DuckDB feature.")
-(libdirs ".")
-(rust-crates "patches/jerboa-native-rs/Cargo.toml")
+(notes "Uses the jerbuild-bundled jerboa-native-rs crate with crypto and SQLite enabled.")
+(libdirs "lib")
+(rust-crates
+  ("@bundle/jerboa-native-rs/Cargo.toml" features: "crypto,sqlite"))
diff --git a/lib/secmon/platform/freebsd.sls b/lib/secmon/platform/freebsd.sls
index 73f6376..9ff945b 100644
--- a/lib/secmon/platform/freebsd.sls
+++ b/lib/secmon/platform/freebsd.sls
@@ -3,7 +3,7 @@
     create-freebsd-process-provider
     create-freebsd-network-provider)
   (import
-    (chezscheme)
+    (except (chezscheme) bytevector-slice)
     (jerboa prelude clean)
     (secmon platform provider))
 
diff --git a/lib/secmon/platform/linux.sls b/lib/secmon/platform/linux.sls
index c025dc5..7e66cb4 100644
--- a/lib/secmon/platform/linux.sls
+++ b/lib/secmon/platform/linux.sls
@@ -3,7 +3,7 @@
     create-linux-process-provider
     create-linux-network-provider)
   (import
-    (chezscheme)
+    (except (chezscheme) bytevector-slice)
     (jerboa prelude clean)
     (secmon platform provider))
 
diff --git a/lib/secmon/stealth/anti-debug.sls b/lib/secmon/stealth/anti-debug.sls
index 8626caa..0859a5c 100644
--- a/lib/secmon/stealth/anti-debug.sls
+++ b/lib/secmon/stealth/anti-debug.sls
@@ -2,7 +2,7 @@
 (library (secmon stealth anti-debug)
   (export is-debugged? start-debug-watchdog!)
   (import
-    (chezscheme)
+    (except (chezscheme) bytevector-slice)
     (jerboa prelude clean)
     (secmon stealth obfuscate))
 
diff --git a/lib/secmon/stealth/integrity.sls b/lib/secmon/stealth/integrity.sls
index 201173e..fad392c 100644
--- a/lib/secmon/stealth/integrity.sls
+++ b/lib/secmon/stealth/integrity.sls
@@ -1,7 +1,7 @@
 (library (secmon stealth integrity)
   (export init-integrity-check! start-integrity-watchdog!)
   (import
-    (chezscheme)
+    (except (chezscheme) bytevector-slice)
     (jerboa prelude clean)
     (std crypto native-rust)
     (secmon stealth obfuscate))