Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 18 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 1 addition & 13 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ description = "Rust client for WhatsApp Web"
[workspace]
members = [
".",
"examples/voip-cli",
"http_clients/ureq-client",
"storages/sqlite-storage",
"tests/bench-integration",
Expand Down Expand Up @@ -76,7 +77,6 @@ itoa = "1"
log = "0.4"
metrics = "0.24"
portable-atomic = { version = "1", default-features = false, features = ["fallback"] }
postcard = { version = "1", default-features = false, features = ["use-std"] }
prost = { version = "0.14.4", default-features = false, features = ["std"] }
prost-build = { version = "0.14.4", default-features = false }
prost-types = { version = "0.14.4", default-features = false, features = ["std"] }
Expand Down Expand Up @@ -202,19 +202,11 @@ getrandom = { workspace = true, features = ["wasm_js"] }
aes = { workspace = true }
async-trait = { workspace = true }
cbc = { workspace = true, features = ["block-padding"] }
# Cross-platform audio I/O for the `voip` example only. A dev-dependency, so it
# never reaches consumers of the published lib (and only compiles when an example
# that uses it is built). Needs libasound2-dev (ALSA) on Linux.
cpal = "0.18"
env_logger = { workspace = true }
flate2 = { workspace = true }
hkdf = { workspace = true }
hmac = { workspace = true }
metrics-exporter-prometheus = "0.18"
# Lock-free SPSC ring to hand samples from the async drain task to cpal's
# realtime output callback without locking or per-callback allocation. voip
# example only (dev-dependency).
ringbuf = "0.5"
sha2 = { workspace = true }
tokio = { workspace = true, features = ["full"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
Expand Down Expand Up @@ -244,10 +236,6 @@ required-features = ["tracing"]
name = "metrics"
required-features = ["metrics"]

[[example]]
name = "voip"
required-features = ["voip", "sqlite-storage", "tokio-transport", "ureq-client", "tokio-native"]

[profile.release]
opt-level = 3
debug = false
Expand Down
34 changes: 34 additions & 0 deletions examples/voip-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Standalone crate for the VoIP audio demo. Lives outside the root package so its
# audio stack (cpal -> alsa-sys, needs ALSA/pkg-config on Linux) never enters the
# dependency closure of `cargo build --example demo`, which the Docker image runs.
# A workspace member but not a default-member: plain `cargo build` skips it; build
# it explicitly with `cargo run -p whatsapp-rust-voip-cli`.
[package]
name = "whatsapp-rust-voip-cli"
version = "0.6.0"
edition = "2024"
license = "MIT"
publish = false

[dependencies]
anyhow = { workspace = true }
async-channel = { workspace = true }
cpal = "0.18"
env_logger = { workspace = true }
hex = { workspace = true }
log = { workspace = true }
portable-atomic = { workspace = true }
rand = { workspace = true }
ringbuf = "0.5"
tokio = { workspace = true, features = ["full"] }
wacore = { path = "../../wacore", features = ["voip"] }
whatsapp-rust = { path = "../..", features = [
"voip",
"sqlite-storage",
"tokio-transport",
"ureq-client",
"tokio-native",
] }

[lints]
workspace = true
File renamed without changes.
1 change: 0 additions & 1 deletion tests/e2e/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ whatsapp-rust-ureq-http-client = { path = "../../http_clients/ureq-client", feat
env_logger = { workspace = true }
hex = { workspace = true }
log = { workspace = true }
prost = { workspace = true }

[lints]
workspace = true
Loading