Cargo Features
[dependencies]
lazy-socket = { version = "0.3.0", default-features = false, features = ["safe_buffer_len"] }
- default = safe_buffer_len
-
The
safe_buffer_len
feature is set by default wheneverlazy-socket
is added without
somewhere in the dependency tree.default-features = false - safe_buffer_len default
-
Ensure that used buffers len will not overflow
cmp::min(buf.len(), i32::max_value() as usize)
Relevant only on windows as Unix uses usize for len of buffers.