audio-codec 0.4.0

A collection of VoIP audio codecs in pure Rust, including G.711, G.722, G.729, and Opus.
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"
name = "audio-codec"
version = "0.4.0"
authors = ["jinti<shenjindi@fourz.cn>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A collection of VoIP audio codecs in pure Rust, including G.711, G.722, G.729, and Opus."
readme = "README.md"
keywords = [
    "sip",
    "voip",
    "telephony",
    "webrtc",
    "no_std",
]
categories = [
    "multimedia",
    "no-std",
]
license = "MIT"
repository = "https://github.com/restsend/audio-codec"

[features]
default = ["std"]
opus = [
    "dep:opus-rs",
    "std",
]
std = [
    "dep:anyhow",
    "g729-sys/std",
]

[lib]
name = "audio_codec"
crate-type = ["rlib"]
path = "src/lib.rs"

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

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

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

[dependencies.g729-sys]
version = "0.2"
default-features = false

[dependencies.libm]
version = "0.2"
default-features = false

[dependencies.opus-rs]
version = "0.1.26"
optional = true

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

[dev-dependencies.opusic-sys]
version = "0.7.3"