# 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" name = "udp_sas_async" version = "0.2.0" authors = ["giang.ndm@gmail.com"] build = "build.rs" description = "Source address selection for UDP sockets" readme = "README.md" keywords = [ "udp", "IP_PKTINFO", "IPV6_RECVPKTINFO", ] categories = [ "network-programming", "os::unix-apis", ] license = "MIT" repository = "https://github.com/giangndm/udp_sas_async" [[example]] name = "tokio_udp_server" path = "examples/tokio_udp_server.rs" required-features = ["async_tokio"] [[example]] name = "async_std_udp_server" path = "examples/async_std_udp_server.rs" required-features = ["async_std"] [dependencies.async-io] version = "2.2.0" optional = true [dependencies.async-std] version = "1.12.0" optional = true [dependencies.libc] version = "0.2" [dependencies.os_socketaddr] version = "0.2.2" [dependencies.tokio] version = "1" features = ["net"] optional = true [dev-dependencies.tokio] version = "1" features = ["full"] [build-dependencies.cc] version = "1.0" [features] async_std = [ "async-std", "async-io", ] async_tokio = ["tokio"]