[package]
edition = "2021"
rust-version = "1.91"
name = "rvoip-codec-core"
version = "0.3.7"
authors = ["RVOIP AUTHORS"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "G.711 and optional G.729/Opus audio codec implementations for RVOIP"
homepage = "https://github.com/eisenzopf/rvoip"
documentation = "https://docs.rs/rvoip"
readme = "README.md"
keywords = [
"sip",
"voip",
"rtp",
"communication",
"telephony",
]
categories = [
"network-programming",
"multimedia",
"web-programming",
]
license = "MIT"
repository = "https://github.com/eisenzopf/rvoip"
[features]
all-codecs = [
"g711",
"g729",
"opus",
]
default = ["g711"]
g711 = []
g729 = []
opus = ["dep:opus"]
opus-sim = ["opus"]
[lib]
name = "codec_core"
path = "src/lib.rs"
[[bench]]
name = "g711_codec"
path = "benches/g711_codec.rs"
harness = false
required-features = ["g711"]
[dependencies.opus]
version = "0.3"
optional = true
[dependencies.thiserror]
version = "1.0"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.tokio]
version = "1.36"
features = ["full"]
[lints.clippy]
absurd_extreme_comparisons = "allow"
approx_constant = "allow"
assertions_on_constants = "allow"
bool_assert_comparison = "allow"
bool_comparison = "allow"
cast_abs_to_unsigned = "allow"
collapsible_else_if = "allow"
comparison_to_empty = "allow"
empty_line_after_doc_comments = "allow"
expect_fun_call = "allow"
explicit_auto_deref = "allow"
items_after_test_module = "allow"
legacy_numeric_constants = "allow"
len_without_is_empty = "allow"
len_zero = "allow"
manual_find = "allow"
match_like_matches_macro = "allow"
module_inception = "allow"
multiple_bound_locations = "allow"
needless_borrows_for_generic_args = "allow"
needless_option_as_deref = "allow"
new_without_default = "allow"
option_as_ref_deref = "allow"
partialeq_to_none = "allow"
redundant_closure = "allow"
redundant_pattern_matching = "allow"
should_implement_trait = "allow"
single_match = "allow"
too_many_arguments = "allow"
unnecessary_filter_map = "allow"
unnecessary_get_then_check = "allow"
unnecessary_literal_unwrap = "allow"
useless_conversion = "allow"
useless_vec = "allow"
vec_init_then_push = "allow"
[lints.clippy.cargo]
level = "allow"
priority = -1
[lints.clippy.complexity]
level = "allow"
priority = -1
[lints.clippy.correctness]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "allow"
priority = -1
[lints.clippy.pedantic]
level = "allow"
priority = -1
[lints.clippy.perf]
level = "allow"
priority = -1
[lints.clippy.restriction]
level = "allow"
priority = -1
[lints.clippy.style]
level = "allow"
priority = -1
[lints.clippy.suspicious]
level = "warn"
priority = -1
[lints.rust]
ambiguous_glob_reexports = "warn"
async_fn_in_trait = "allow"
dead_code = "warn"
irrefutable_let_patterns = "allow"
mismatched_lifetime_syntaxes = "warn"
unexpected_cfgs = "warn"
unreachable_patterns = "allow"
unused_assignments = "warn"
unused_comparisons = "warn"
unused_imports = "warn"
unused_mut = "warn"
unused_variables = "warn"