# 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 = "2018" name = "riptun" version = "0.1.4" authors = ["Christian Saide"] exclude = [".github/*", "dist/*", ".dockerignore", ".devcontainer.json", "codecov.yaml"] description = "riptun is a cross platform library for creating, managing, and leveraging both sync and async TUN/TAP devices." license = "MIT" repository = "https://github.com/csaide/riptun" [[example]] name = "sync" path = "examples/sync.rs" required-features = [] [[example]] name = "mio" path = "examples/mio.rs" required-features = ["mio-impl"] [[example]] name = "smol" path = "examples/smol.rs" required-features = ["smol-example"] [[example]] name = "std" path = "examples/std.rs" required-features = ["async-std-example"] [[example]] name = "tokio" path = "examples/tokio.rs" required-features = ["tokio-example"] [dependencies.async-io] version = "1.0.1" optional = true [dependencies.async-std] version = "1.10.0" optional = true [dependencies.cfg-if] version = "1.0.0" [dependencies.futures-io] version = "0.3.17" optional = true [dependencies.futures-util] version = "0.3.17" optional = true [dependencies.mio] version = "0.7" features = ["os-ext"] optional = true default-features = false [dependencies.nix] version = "0.23.0" [dependencies.smol] version = "1.2.5" optional = true [dependencies.thiserror] version = "1.0.28" [dependencies.tokio] version = "1.12.0" features = ["net"] optional = true default-features = false [features] async-std-example = ["async-std/attributes", "async-std/default", "async-std-impl"] async-std-impl = ["async-io", "futures-util", "futures-io"] default = ["mio-impl", "async-std-impl", "tokio-impl"] mio-impl = ["mio"] smol-example = ["smol", "async-std-impl"] tokio-example = ["tokio/rt", "tokio/rt-multi-thread", "tokio/macros", "tokio-impl"] tokio-impl = ["tokio", "futures-util", "futures-io"]