# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.71"
name = "mio"
version = "1.2.1"
authors = [
    "Carl Lerche <me@carllerche.com>",
    "Thomas de Zeeuw <thomasdezeeuw@gmail.com>",
    "Tokio Contributors <team@tokio.rs>",
]
build = false
include = [
    "Cargo.toml",
    "LICENSE",
    "README.md",
    "CHANGELOG.md",
    "src/**/*.rs",
    "examples/**/*.rs",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight non-blocking I/O."
homepage = "https://github.com/tokio-rs/mio"
readme = "README.md"
keywords = [
    "io",
    "async",
    "non-blocking",
]
categories = ["asynchronous"]
license = "MIT"
repository = "https://github.com/tokio-rs/mio"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
    "--generate-link-to-definition",
]
targets = [
    "aarch64-apple-ios",
    "aarch64-linux-android",
    "wasm32-wasip1",
    "x86_64-apple-darwin",
    "x86_64-pc-windows-gnu",
    "x86_64-pc-windows-msvc",
    "x86_64-unknown-dragonfly",
    "x86_64-unknown-freebsd",
    "x86_64-unknown-illumos",
    "x86_64-unknown-linux-gnu",
    "x86_64-unknown-netbsd",
    "x86_64-unknown-openbsd",
    "x86_64-unknown-hermit",
]

[package.metadata.playground]
features = [
    "os-poll",
    "os-ext",
    "net",
]

[features]
default = ["log"]
net = []
os-ext = [
    "os-poll",
    "windows-sys/Win32_System_Pipes",
    "windows-sys/Win32_Security",
]
os-poll = []

[lib]
name = "mio"
path = "src/lib.rs"

[[example]]
name = "tcp_listenfd_server"
path = "examples/tcp_listenfd_server.rs"
required-features = [
    "os-poll",
    "net",
]

[[example]]
name = "tcp_server"
path = "examples/tcp_server.rs"
required-features = [
    "os-poll",
    "net",
]

[[example]]
name = "udp_server"
path = "examples/udp_server.rs"
required-features = [
    "os-poll",
    "net",
]

[dependencies.log]
version = "0.4.8"
optional = true

[dev-dependencies.env_logger]
version = "0.11"
default-features = false

[dev-dependencies.rand]
version = "0.9"

[target.'cfg(any(unix, target_os = "hermit", target_os = "wasi"))'.dependencies.libc]
version = "0.2.183"

[target.'cfg(target_os = "wasi")'.dependencies.wasi]
version = "0.11.0"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
    "Wdk_Foundation",
    "Wdk_Storage_FileSystem",
    "Wdk_System_IO",
    "Win32_Foundation",
    "Win32_Networking_WinSock",
    "Win32_Storage_FileSystem",
    "Win32_Security",
    "Win32_System_IO",
    "Win32_System_WindowsProgramming",
]

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(mio_unsupported_force_poll_poll)",
    "cfg(mio_unsupported_force_waker_pipe)",
]
