From 24bf1b3657734e061c26eff3a8058c711dc7912e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Wed, 4 Mar 2026 11:22:07 +0100 Subject: [PATCH] fix: `tcp-user-timeouts` requires `socket2` `all` feature socket2's `set_tcp_user_timeout` is gated behind the "all" feature: https://github.com/rust-lang/socket2/blob/c8146aa5bb839004208bfd89267ec61a7774386e/src/sys/unix.rs#L2605-L2608 In the fred.rs repository, the "all" feature is enabled by a different dependency (at least `monoio`, maybe others, I didn't check everything). But user projects might fail to compile if they don't happen to have a different dependency that enables it ^^ --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 72a3f9bc..d71d62cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -65,7 +65,7 @@ trust-dns-resolver = ["dep:trust-dns-resolver"] unix-sockets = [] credential-provider = [] dynamic-pool = ["metrics"] -tcp-user-timeouts = [] +tcp-user-timeouts = ["socket2/all"] # Enable experimental support for the Glommio runtime. glommio = ["dep:glommio", "futures-io", "pin-project", "fred-macros/enabled", "oneshot", "futures-lite"]