net-wire 0.1.0

Allocation-free no_std wire views and codecs for network protocols.
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"
rust-version = "1.91"
name = "net-wire"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Allocation-free no_std wire views and codecs for network protocols."
homepage = "https://github.com/SilentBless/net-wire-rs"
documentation = "https://docs.rs/net-wire"
readme = "README.md"
keywords = [
    "network",
    "protocol",
    "no-std",
    "zero-copy",
    "wire",
]
categories = [
    "network-programming",
    "no-std",
    "parser-implementations",
    "encoding",
]
license = "MIT"
repository = "https://github.com/SilentBless/net-wire-rs"

[package.metadata.docs.rs]
all-features = true

[features]
arp = []
default = []
ethernet = []
http1 = []
http2 = []
http3 = [
    "quic",
    "qpack",
]
icmpv4 = []
icmpv6 = []
ipv4 = []
ipv6 = []
kcp = []
qpack = []
quic = []
tcp = []
tls = []
udp = []

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

[[example]]
name = "dns-query"
path = "examples/dns-query/main.rs"
required-features = [
    "ipv4",
    "udp",
]

[[example]]
name = "packet-inspector"
path = "examples/packet-inspector/main.rs"
required-features = [
    "ethernet",
    "ipv4",
    "ipv6",
    "udp",
    "tcp",
]

[[example]]
name = "tls-client-hello"
path = "examples/tls-client-hello/main.rs"
required-features = ["tls"]

[[test]]
name = "ethernet"
path = "tests/ethernet/main.rs"
required-features = ["ethernet"]

[[test]]
name = "arp"
path = "tests/arp/main.rs"
required-features = ["arp"]

[[test]]
name = "ipv4"
path = "tests/ipv4/main.rs"
required-features = ["ipv4"]

[[test]]
name = "ipv6"
path = "tests/ipv6/main.rs"
required-features = ["ipv6"]

[[test]]
name = "icmpv4"
path = "tests/icmpv4/main.rs"
required-features = ["icmpv4"]

[[test]]
name = "icmpv6"
path = "tests/icmpv6/main.rs"
required-features = ["icmpv6"]

[[test]]
name = "udp"
path = "tests/udp/main.rs"
required-features = ["udp"]

[[test]]
name = "kcp"
path = "tests/kcp/main.rs"
required-features = ["kcp"]

[[test]]
name = "tcp"
path = "tests/tcp/main.rs"
required-features = ["tcp"]

[[test]]
name = "tls"
path = "tests/tls/main.rs"
required-features = ["tls"]

[[test]]
name = "http1"
path = "tests/http1/main.rs"
required-features = ["http1"]

[[test]]
name = "http2"
path = "tests/http2/main.rs"
required-features = ["http2"]

[[test]]
name = "quic"
path = "tests/quic/main.rs"
required-features = ["quic"]

[[test]]
name = "quic_tls"
path = "tests/quic/integrations/tls.rs"
required-features = [
    "quic",
    "tls",
]

[[test]]
name = "qpack"
path = "tests/qpack/main.rs"
required-features = ["qpack"]

[[test]]
name = "http3"
path = "tests/http3/main.rs"
required-features = ["http3"]

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

[lints.rust]
unsafe_code = "deny"