[package]
edition = "2024"
rust-version = "1.85"
name = "rtp-engine"
version = "0.1.0"
authors = ["5060 Solutions <josh@5060solutions.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A pure Rust RTP media engine with codecs, SRTP, and audio device abstraction"
documentation = "https://docs.rs/rtp-engine"
readme = "README.md"
keywords = [
"rtp",
"rtcp",
"voip",
"audio",
"srtp",
]
categories = [
"multimedia::audio",
"network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/5060-Solutions/rtp-engine"
[features]
default = [
"g711",
"opus",
"srtp",
"device",
]
device = ["dep:cpal"]
g711 = []
opus = ["dep:audiopus"]
srtp = [
"dep:aes",
"dep:ctr",
"dep:hmac",
"dep:sha1",
]
[lib]
name = "rtp_engine"
path = "src/lib.rs"
[dependencies.aes]
version = "0.8"
optional = true
[dependencies.audiopus]
version = "0.3.0-rc.0"
optional = true
[dependencies.base64]
version = "0.22"
[dependencies.cpal]
version = "0.17"
optional = true
[dependencies.ctr]
version = "0.9"
optional = true
[dependencies.hmac]
version = "0.12"
optional = true
[dependencies.log]
version = "0.4"
[dependencies.rand]
version = "0.10"
[dependencies.sha1]
version = "0.10"
optional = true
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1"
features = [
"net",
"time",
"rt",
"sync",
]
[dev-dependencies.env_logger]
version = "0.11"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"macros",
]
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
cognitive_complexity = "allow"
default_numeric_fallback = "allow"
doc_markdown = "allow"
else_if_without_else = "allow"
large_enum_variant = "allow"
manual_let_else = "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_pass_by_value = "allow"
option_if_let_else = "allow"
redundant_closure = "allow"
return_self_not_must_use = "allow"
significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
similar_names = "allow"
struct_field_names = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
uninlined_format_args = "allow"
unnecessary_wraps = "allow"
unreadable_literal = "allow"
used_underscore_binding = "allow"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"
warnings = "deny"