[package]
edition = "2024"
rust-version = "1.85"
name = "arcbox-net"
version = "0.4.10"
authors = [
"ArcBox Labs <team@arcbox.dev>",
"AprilNEA <dev@aprilnea.me> (https://aprilnea.me)",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance network stack for ArcBox"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/arcboxlabs/arcbox"
[features]
default = []
vmnet = ["arcbox-vmnet/vmnet"]
[lib]
name = "arcbox_net"
path = "src/lib.rs"
[[example]]
name = "tun_proxy"
path = "examples/tun_proxy.rs"
[[test]]
name = "datapath_test"
path = "tests/datapath_test.rs"
[[test]]
name = "dns_shared_table"
path = "tests/dns_shared_table.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[dependencies.arcbox-conntrack]
version = "0.4.10"
[dependencies.arcbox-datapath]
version = "0.4.10"
[dependencies.arcbox-dhcp]
version = "0.4.10"
[dependencies.arcbox-dns]
version = "0.4.10"
[dependencies.arcbox-error]
version = "0.4.10"
[dependencies.arcbox-fakeip]
version = "0.4.10"
[dependencies.arcbox-packet]
version = "0.4.10"
[dependencies.arcbox-proxy]
version = "0.4.10"
[dependencies.bytes]
version = "1"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.crossbeam-channel]
version = "0.5"
[dependencies.crossbeam-utils]
version = "0.8"
[dependencies.ipnetwork]
version = "0.20"
[dependencies.libc]
version = "0.2"
[dependencies.nix]
version = "0.29"
features = [
"fs",
"net",
"process",
"socket",
"ioctl",
"mman",
"term",
"signal",
"user",
]
[dependencies.serde]
version = "1"
features = [
"derive",
"derive",
]
[dependencies.serde_json]
version = "1"
features = ["preserve_order"]
[dependencies.socket2]
version = "0.5"
features = ["all"]
[dependencies.splicetcp]
version = "0.4.10"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"full",
"tracing",
]
[dependencies.tokio-util]
version = "0.7"
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1"
features = [
"v4",
"serde",
]
[dev-dependencies.anyhow]
version = "1"
[dev-dependencies.arcbox-route]
version = "0.4.10"
[dev-dependencies.clap]
version = "4"
features = ["derive"]
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"tracing",
"test-util",
]
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
"tracing-log",
]
[target.'cfg(target_os = "macos")'.dependencies.arcbox-vmnet]
version = "0.4.10"
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
default_trait_access = "allow"
derive_partial_eq_without_eq = "allow"
doc_markdown = "allow"
if_not_else = "allow"
items_after_statements = "allow"
manual_let_else = "allow"
match_same_arms = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
redundant_closure_for_method_calls = "allow"
redundant_else = "allow"
return_self_not_must_use = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unreadable_literal = "allow"
unused_async = "allow"
unused_self = "allow"
wildcard_imports = "allow"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]