nexus-web 0.8.0

Low-latency WebSocket, HTTP/1.1, and REST primitives. Sans-IO, zero-copy, SIMD-accelerated.
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.94"
name = "nexus-web"
version = "0.8.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Low-latency WebSocket, HTTP/1.1, and REST primitives. Sans-IO, zero-copy, SIMD-accelerated."
readme = "README.md"
keywords = [
    "lock-free",
    "concurrent",
    "data-structures",
    "trading",
]
categories = [
    "concurrency",
    "data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Abso1ut3Zer0/nexus"
resolver = "2"

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

[features]
bytes = [
    "dep:bytes",
    "nexus-net/bytes",
]
default = []
full = [
    "tls",
    "socket-opts",
    "bytes",
]
socket-opts = ["dep:socket2"]
tls = ["nexus-net/tls"]

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

[[example]]
name = "bench_loopback_rest"
path = "examples/bench_loopback_rest.rs"

[[example]]
name = "perf_body_writer"
path = "examples/perf_body_writer.rs"

[[example]]
name = "perf_rest"
path = "examples/perf_rest.rs"

[[example]]
name = "perf_throughput"
path = "examples/perf_throughput.rs"
required-features = ["tls"]

[[example]]
name = "perf_tls"
path = "examples/perf_tls.rs"
required-features = ["tls"]

[[example]]
name = "perf_vs_tungstenite"
path = "examples/perf_vs_tungstenite.rs"

[[example]]
name = "perf_ws"
path = "examples/perf_ws.rs"

[[example]]
name = "throughput_rest"
path = "examples/throughput_rest.rs"

[[test]]
name = "autobahn"
path = "tests/autobahn.rs"

[[test]]
name = "httpbin"
path = "tests/httpbin.rs"

[[test]]
name = "wss_echo"
path = "tests/wss_echo.rs"

[[bench]]
name = "frame_reader"
path = "benches/frame_reader.rs"
harness = false

[[bench]]
name = "frame_writer"
path = "benches/frame_writer.rs"
harness = false

[[bench]]
name = "rest"
path = "benches/rest.rs"
harness = false

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

[dependencies.getrandom]
version = "0.3"

[dependencies.httparse]
version = "1"

[dependencies.nexus-net]
version = "1.0.0"

[dependencies.rand_chacha]
version = "0.9"
default-features = false

[dependencies.rand_core]
version = "0.9"
default-features = false

[dependencies.sha1]
version = "0.10"

[dependencies.simdutf8]
version = "0.1"

[dependencies.socket2]
version = "0.5"
optional = true

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.futures-util]
version = "0.3"

[dev-dependencies.hdrhistogram]
version = "7.5"

[dev-dependencies.rcgen]
version = "0.13"

[dev-dependencies.reqwest]
version = "0.12"
features = [
    "blocking",
    "json",
]

[dev-dependencies.rustls]
version = "0.23"
features = [
    "std",
    "tls12",
    "aws_lc_rs",
]

[dev-dependencies.rustls-pemfile]
version = "2"

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

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.sonic-rs]
version = "0.3"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "net",
    "io-util",
    "time",
    "macros",
]

[dev-dependencies.tokio-tungstenite]
version = "0.26"

[dev-dependencies.tungstenite]
version = "0.29"
features = ["rustls-tls-native-roots"]

[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_ptr_alignment = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "allow"
doc_markdown = "allow"
float_cmp = "allow"
future_not_send = "allow"
ignore_without_reason = "allow"
inline_always = "allow"
items_after_statements = "allow"
manual_range_contains = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_range_loop = "allow"
ptr_as_ptr = "allow"
redundant_locals = "allow"
redundant_pub_crate = "allow"
ref_as_ptr = "allow"
ref_option = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
use_self = "allow"
used_underscore_binding = "allow"
wildcard_imports = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_op_in_unsafe_fn = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(loom)"]