[package]
edition = "2021"
name = "dcsctp"
version = "0.1.10"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An SCTP implementation for WebRTC Data Channels"
readme = "README.md"
keywords = [
"webrtc",
"sctp",
]
categories = ["network-programming"]
license = "Apache-2.0"
repository = "https://github.com/webrtc/dcsctp"
[features]
cxx = [
"dep:cxx",
"dep:cxx-build",
]
fuzz-internals = []
[lib]
name = "dcsctp"
crate-type = [
"lib",
"staticlib",
]
path = "src/lib.rs"
[dependencies.cxx]
version = "1.0"
optional = true
[dependencies.fastrand]
version = "2.3"
[dependencies.log]
version = "0.4"
[dependencies.thiserror]
version = "2.0"
[dev-dependencies.itertools]
version = "0.14"
[build-dependencies.cxx-build]
version = "1.0"
optional = true
[lints.clippy]
explicit_iter_loop = "warn"
from_iter_instead_of_collect = "warn"
match_same_arms = "warn"
match_wildcard_for_single_variants = "warn"
semicolon_if_nothing_returned = "warn"
unnecessary_semicolon = "warn"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.cargo]
level = "deny"
priority = -1
[lints.rust]
dead-code = "allow"
edition-2024-expr-fragment-specifier = "allow"
rust-2018-idioms = "deny"
rust-2024-compatibility = "deny"
unsafe-code = "deny"
unused-macros = "allow"
warnings = "deny"