# 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 = "active-call"
version = "0.3.60"
authors = ["jinti<shenjindi@fourz.cn>"]
build = false
exclude = [
    "fixtures/**",
    "examples/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A SIP/WebRTC voice agent"
readme = "README.md"
keywords = [
    "sip",
    "voip",
    "telephony",
    "voice-agent",
    "webrtc",
]
categories = [
    "network-programming",
    "multimedia",
]
license = "MIT"
repository = "https://github.com/miuda-ai/active-call"

[features]
cross = [
    "opus",
    "offline",
    "aws-lc-rs/bindgen",
]
default = [
    "opus",
    "offline",
]
not_vad = []
offline = [
    "dep:knf-rs-sys",
    "dep:ort",
    "dep:hf-hub",
    "dep:ndarray",
]
opus = ["audio-codec/opus"]

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

[[bin]]
name = "active-call"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1"

[dependencies.arc-swap]
version = "1.9.1"

[dependencies.async-stream]
version = "0.3.6"

[dependencies.async-trait]
version = "0.1.88"

[dependencies.audio-codec]
version = "0.3.33"
features = ["opus"]

[dependencies.aws-lc-rs]
version = "1"

[dependencies.axum]
version = "0.8.9"
features = [
    "ws",
    "tokio",
    "multipart",
]

[dependencies.base64]
version = "0.22.1"

[dependencies.bytes]
version = "1"

[dependencies.chrono]
version = "0.4.44"
features = ["serde"]

[dependencies.clap]
version = "4.6.1"
features = ["derive"]

[dependencies.dotenvy]
version = "0.15.7"

[dependencies.futures]
version = "0.3.32"

[dependencies.get_if_addrs]
version = "0.5.3"

[dependencies.hex]
version = "0.4.3"

[dependencies.hf-hub]
version = "0.5.0"
features = [
    "rustls-tls",
    "tokio",
    "ureq",
]
optional = true
default-features = false

[dependencies.hound]
version = "3.5.1"

[dependencies.http]
version = "1.4.0"

[dependencies.humantime]
version = "2.1.0"

[dependencies.knf-rs-sys]
version = "0.3.2"
optional = true

[dependencies.libc]
version = "0.2"

[dependencies.lru]
version = "0.18.0"

[dependencies.md5]
version = "0.11.0"
package = "md-5"

[dependencies.minijinja]
version = "2.19.0"
features = [
    "loader",
    "json",
]

[dependencies.ndarray]
version = "0.16.1"
optional = true

[dependencies.nnnoiseless]
version = "0.5.2"

[dependencies.num-complex]
version = "0.4"

[dependencies.num_cpus]
version = "1.16"

[dependencies.object_store]
version = "0.13.2"
features = [
    "aws",
    "azure",
    "gcp",
]

[dependencies.ogg]
version = "0.9"

[dependencies.once_cell]
version = "1.21.4"

[dependencies.ort]
version = "=2.0.0-rc.11"
features = [
    "std",
    "ndarray",
    "tls-rustls",
    "load-dynamic",
]
optional = true
default-features = false

[dependencies.rand]
version = "0.10.1"

[dependencies.rand_distr]
version = "0.6.0"

[dependencies.realfft]
version = "3.3"

[dependencies.regex]
version = "1.12.3"

[dependencies.reqwest]
version = "0.13.3"
features = [
    "json",
    "stream",
    "rustls",
    "multipart",
    "form",
    "query",
    "gzip",
]

[dependencies.rsipstack]
version = "0.5.11"

[dependencies.rustfft]
version = "6.2"

[dependencies.rustls]
version = "0.23.40"

[dependencies.rustrtc]
version = "0.3.55"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.serde_with]
version = "3.18.0"

[dependencies.serde_yaml]
version = "0.9.33"

[dependencies.sha2]
version = "0.11.0"

[dependencies.socket2]
version = "0.6.3"
features = ["all"]

[dependencies.symphonia]
version = "0.5"
features = ["all"]

[dependencies.tempfile]
version = "3.27.0"

[dependencies.tokio]
version = "1.52.3"
features = [
    "full",
    "tracing",
]

[dependencies.tokio-stream]
version = "0.1.18"
features = [
    "net",
    "sync",
]

[dependencies.tokio-tungstenite]
version = "0.29.0"
features = ["rustls-tls-native-roots"]

[dependencies.tokio-util]
version = "0.7.18"

[dependencies.toml]
version = "1.1.2"

[dependencies.tower-http]
version = "0.6.10"
features = [
    "fs",
    "trace",
]

[dependencies.tracing]
version = "0.1.43"

[dependencies.tracing-appender]
version = "0.2.5"

[dependencies.tracing-subscriber]
version = "0.3.23"
features = ["env-filter"]

[dependencies.unic-emoji]
version = "0.9.0"

[dependencies.unicode-normalization]
version = "0.1"

[dependencies.url]
version = "2.5.8"

[dependencies.urlencoding]
version = "2.1.3"

[dependencies.uuid]
version = "1.23.1"
features = ["v4"]

[dev-dependencies.dotenvy]
version = "0.15.7"

[dev-dependencies.mockall]
version = "0.14.0"

[dev-dependencies.portpicker]
version = "0.1.1"

[dev-dependencies.tempfile]
version = "3.23.0"

[dev-dependencies.tokio-test]
version = "0.4.5"

[dev-dependencies.warp]
version = "0.4.1"
features = [
    "server",
    "websocket",
]

[dev-dependencies.wiremock]
version = "0.6"
