Cargo Features

[dependencies]
socks2 = { version = "0.4.0", default-features = false, features = ["client", "bind", "udp"] }
default = bind, client, udp

These default features are set whenever socks2 is added without default-features = false somewhere in the dependency tree.

client default bind udp

Affects v4::client, v5::client

bind default = client

Affects v4::bind, v5::bind

udp default = client, libc, windows-sys

Affects v5::udp

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

libc unix udp
windows-sys win udp