From 7e38d18470fb7e0f8587535b8ade8db3bcd143bf Mon Sep 17 00:00:00 2001 From: Peter Bower <37089506+pbower@users.noreply.github.com> Date: Thu, 30 Jul 2026 16:45:03 +0100 Subject: [PATCH] Correct libc dependency gating to be optional --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index bc8a4f0..8774bfc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,7 +61,7 @@ criterion = { version = "0.8.2", features = ["html_reports"] } cc = { version = "1", optional = true } [target.'cfg(target_os = "linux")'.dependencies] -libc = "0.2" +libc = { version = "0.2", optional = true } [features] @@ -283,7 +283,7 @@ select = [] # Enables memfd-backed buffers for zero-copy cross-process sharing (Linux only). # Use `MemfdBuffer::new()` to create a buffer, then pass the fd to child processes. # Children call `MemfdBuffer::reopen()` to access the same physical memory. -memfd = [] +memfd = ["dep:libc"] # Consider enabling this for improved Vec64 performance on Linux. #