virtual-net 0.700.0

Wasmer Virtual Networking
# 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"
rust-version = "1.91"
name = "virtual-net"
version = "0.700.0"
authors = ["Wasmer Engineering Team <engineering@wasmer.io>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Wasmer Virtual Networking"
homepage = "https://wasmer.io/"
readme = false
license = "MIT"
repository = "https://github.com/wasmerio/wasmer"
resolver = "2"

[package.metadata.docs.rs]
features = [
    "host-net",
    "remote",
]
rustc-args = [
    "--cfg",
    "docsrs",
]

[features]
cbor = ["tokio-serde/cbor"]
default = [
    "host-net",
    "remote",
    "json",
    "messagepack",
    "cbor",
    "hyper",
    "tokio-tungstenite",
]
host-net = [
    "libc",
    "tokio/io-util",
    "virtual-mio/sys",
    "tokio/net",
    "tokio/rt",
    "socket2",
    "mio",
]
hyper = [
    "hyper-tungstenite",
    "hyper-util",
    "dep:hyper",
]
json = ["tokio-serde/json"]
messagepack = ["tokio-serde/messagepack"]
remote = [
    "libc",
    "tokio/io-util",
    "tokio/sync",
    "tokio-serde",
    "tokio-util",
]
rkyv = [
    "dep:rkyv",
    "dep:bytecheck",
]
tokio = []
tokio-tungstenite = ["dep:tokio-tungstenite"]

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

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1.68"

[dependencies.base64]
version = "0.22.1"

[dependencies.bincode]
version = "2.0.1"
features = ["serde"]

[dependencies.bytecheck]
version = "0.8.2"
optional = true

[dependencies.bytes]
version = "1"

[dependencies.derive_more]
version = "2.0.1"
features = [
    "debug",
    "display",
]

[dependencies.futures-util]
version = "0.3.31"

[dependencies.hyper]
version = "1.8.1"
optional = true

[dependencies.hyper-tungstenite]
version = "0.19"
optional = true

[dependencies.hyper-util]
version = "0.1.5"
features = ["tokio"]
optional = true

[dependencies.ipnet]
version = "2.10.1"

[dependencies.iprange]
version = "0.6.7"

[dependencies.libc]
version = "0.2.178"
optional = true
default-features = false

[dependencies.mio]
version = "1"
optional = true

[dependencies.pin-project-lite]
version = "0.2.10"

[dependencies.rkyv]
version = "0.8.13"
features = [
    "indexmap-2",
    "bytes-1",
]
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]
default-features = false

[dependencies.smoltcp]
version = "0.12.0"
features = [
    "proto-ipv4",
    "std",
    "alloc",
]
default-features = false

[dependencies.socket2]
version = "0.6.1"
features = ["all"]
optional = true

[dependencies.thiserror]
version = "2.0.17"

[dependencies.tokio]
version = "1.39.0"
features = ["io-util"]
default-features = false

[dependencies.tokio-serde]
version = "0.9"
features = ["bincode"]
optional = true

[dependencies.tokio-tungstenite]
version = "0.28.0"
optional = true

[dependencies.tokio-util]
version = "0.7.8"
features = ["codec"]
optional = true

[dependencies.tracing]
version = "0.1"
default-features = false

[dependencies.virtual-mio]
version = "0.700.0"
default-features = false

[dev-dependencies.serial_test]
version = "3.2.0"
default-features = false

[dev-dependencies.tokio]
version = "1.39.0"
features = [
    "macros",
    "rt-multi-thread",
]
default-features = false

[dev-dependencies.tracing-test]
version = "0.2"