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 whenever lazy-socket is added without default-features = false somewhere in the dependency tree.

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.