# 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.89.0"
name = "aselect"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Opinionated replacement for tokio::select!, avoiding certain pitfalls."
homepage = "https://github.com/avl/aselect/"
documentation = "https://docs.rs/aselect/"
readme = "README.md"
keywords = [
    "async",
    "no_std",
]
categories = [
    "asynchronous",
    "no-std",
    "no-std::no-alloc",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/avl/aselect/"

[features]
default = [
    "futures",
    "std",
]
std = []

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

[[example]]
name = "alternating_client_server"
path = "examples/alternating_client_server.rs"

[[example]]
name = "ctrl_c_or_tcp"
path = "examples/ctrl_c_or_tcp.rs"

[[example]]
name = "send_and_receive_tcp"
path = "examples/send_and_receive_tcp.rs"

[[example]]
name = "simple"
path = "examples/simple.rs"

[[example]]
name = "simple2"
path = "examples/simple2.rs"

[[example]]
name = "small"
path = "examples/small.rs"

[dependencies.futures]
version = "0.3.31"
optional = true

[dev-dependencies.tokio]
version = "1.48.0"
features = [
    "full",
    "test-util",
]
