nix
nix copied to clipboard
Improve the efficiency of cmsg_space!
Compute the required space at compile time rather than at runtime.
So apparently stable compilers don't support this yet. https://github.com/rust-lang/rust/issues/64926 .
Rust and libc have advanced to the point where this PR could be completed. However, as that isn't possible. As explained in #2282 , there are cases where we can't compute cmsg_space at compile time, because of subtleties involving generics. Closing this PR.