kasesiki-netstack 0.2.0

A netstack for the special purpose of turning packets from/to a TUN interface into TCP streams and UDP packets. It uses smoltcp-rs as the backend netstack.
Documentation
# 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 = "2024"
name = "kasesiki-netstack"
version = "0.2.0"
authors = ["kasesiki <shizheqwq@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A netstack for the special purpose of turning packets from/to a TUN interface into TCP streams and UDP packets. It uses smoltcp-rs as the backend netstack."
homepage = "https://github.com/Kasesiki/kasesiki-netstack"
documentation = "https://docs.rs/kasesiki-netstack"
readme = "README.md"
keywords = [
    "netstack",
    "smoltcp",
    "network",
    "ip",
    "tun",
]
categories = ["network-programming"]
license = "Apache-2.0"
repository = "https://github.com/Kasesiki/kasesiki-netstack"

[features]
default = []
tokio = ["dep:tokio"]

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

[[example]]
name = "minimal"
path = "examples/minimal.rs"
required-features = ["tokio"]

[dependencies.bytes]
version = "1.12.1"

[dependencies.etherparse]
version = "0.21.1"

[dependencies.futures]
version = "0.3.34"
features = [
    "alloc",
    "std",
]
default-features = false

[dependencies.ringbuf]
version = "0.5.3"

[dependencies.smoltcp]
version = "0.14"
features = [
    "std",
    "log",
    "medium-ip",
    "proto-ipv4",
    "proto-ipv6",
    "socket-tcp",
]
default-features = false

[dependencies.tokio]
version = "1.53"
optional = true
default-features = false

[dev-dependencies.socket2]
version = "0.6.5"

[dev-dependencies.tokio]
version = "1.53.3"
features = [
    "rt-multi-thread",
    "macros",
    "time",
]

[dev-dependencies.tun2]
version = "3"
features = ["async"]