opus1 0.3.0

Pure-Rust implementation of the Opus audio codec (RFC 6716), following libopus 1.x
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.98"
name = "opus1"
version = "0.3.0"
authors = [
    "jinti <shenjindi@fourz.cn>",
    "gaojiangjie <gaojiangjie@live.com>",
]
build = false
exclude = [
    "opus-1.6.1/",
    "fuzz/",
    "fixtures/",
    "corpus/",
    "/tests/",
    "/scripts/",
    "/bench_quick.sh",
    "/docs/opus-explained/",
    "/.github/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust implementation of the Opus audio codec (RFC 6716), following libopus 1.x"
homepage = "https://github.com/RealEffect/opus1"
documentation = "https://docs.rs/opus1"
readme = "README.md"
keywords = [
    "opus",
    "audio",
    "codec",
    "no_std",
]
categories = [
    "multimedia::audio",
    "multimedia::encoding",
    "no-std",
    "embedded",
]
license = "BSD-3-Clause"
repository = "https://github.com/RealEffect/opus1"

[package.metadata.docs.rs]
features = [
    "dred",
    "osce-bwe",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
__internals = []
alloc = []
analysis = []
deep-plc = ["dnn"]
default = [
    "std",
    "heap",
    "analysis",
]
dnn = []
dred = ["deep-plc"]
heap = ["alloc"]
libm = ["dep:libm"]
osce = ["deep-plc"]
osce-bwe = ["osce"]
portable-atomic = ["dep:portable-atomic"]
std = ["alloc"]
test-libopus-dnn = []

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

[[example]]
name = "eval"
path = "examples/eval/main.rs"
required-features = ["__internals"]

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

[[example]]
name = "opus_compare"
path = "examples/opus_compare.rs"
required-features = ["__internals"]

[[example]]
name = "opus_demo_data"
path = "examples/opus_demo_data.rs"
required-features = ["__internals"]

[[example]]
name = "perf_harness"
path = "examples/perf_harness.rs"
required-features = ["__internals"]

[[example]]
name = "wav_test"
path = "examples/wav_test.rs"
required-features = ["__internals"]

[[bench]]
name = "deep_plc_bench"
path = "benches/deep_plc_bench.rs"
harness = false
required-features = [
    "deep-plc",
    "__internals",
]

[[bench]]
name = "dnn_bench"
path = "benches/dnn_bench.rs"
harness = false
required-features = [
    "dnn",
    "__internals",
]

[[bench]]
name = "opus_bench"
path = "benches/opus_bench.rs"
harness = false
required-features = ["__internals"]

[dependencies.libm]
version = "0.2.6"
optional = true
default-features = false

[dependencies.portable-atomic]
version = "1"
optional = true
default-features = false

[dev-dependencies.audiopus_sys]
version = "0.2"

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

[dev-dependencies.opus]
version = "0.3"
default-features = false

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