1[package]
2name = "socket2"
3version = "0.4.10"
4authors = [
5 "Alex Crichton <alex@alexcrichton.com>",
6 "Thomas de Zeeuw <thomasdezeeuw@gmail.com>"
7]
8license = "MIT OR Apache-2.0"
9readme = "README.md"
10repository = "https://github.com/rust-lang/socket2"
11homepage = "https://github.com/rust-lang/socket2"
12documentation = "https://docs.rs/socket2"
13description = """
14Utilities for handling networking sockets with a maximal amount of configuration
15possible intended.
16"""
17keywords = ["io", "socket", "network"]
18categories = ["api-bindings", "network-programming"]
19edition = "2018"
20include = [
21 "Cargo.toml",
22 "LICENSE-APACHE",
23 "LICENSE-MIT",
24 "README.md",
25 "src/**/*.rs",
26]
27
28[package.metadata.docs.rs]
29all-features = true
30rustdoc-args = ["--cfg", "docsrs"]
31
32[package.metadata.playground]
33features = ["all"]
34
35[target."cfg(unix)".dependencies]
36libc = "0.2.149"
37
38[target."cfg(windows)".dependencies]
39winapi = { version = "0.3.9", features = ["handleapi", "ws2ipdef", "ws2tcpip"] }
40
41[features]
42# Enable all API, even ones not available on all OSs.
43all = []
44