Files
rutster/Cargo.toml
Aaron D. Lee 3ad10f9255
Some checks failed
CI / fmt (pull_request) Successful in 1m28s
CI / clippy (pull_request) Successful in 4m53s
CI / test (1.85) (pull_request) Successful in 10m1s
CI / test (stable) (pull_request) Successful in 9m49s
CI / deny (pull_request) Failing after 1m21s
CI / sim-bench (stable) (pull_request) Successful in 15m10s
CI / twilio-live (manual only) (pull_request) Has been skipped
fix: pin transitive deps for Rust 1.85 MSRV compatibility
rcgen 0.14.8, time 0.3.53, icu_* 2.2.0, and idna_adapter 1.2.2 all
bumped their MSRV past Rust 1.85 (to 1.86 or 1.88). These are
transitive deps via dimpl → str0m 0.21 → rutster-media (rcgen/time)
and via url → idna → icu_* (the url/icu chain). Pinned Cargo.lock
to the last 1.85-compatible versions:
  - rcgen 0.14.7 (not 0.14.8)
  - time 0.3.41, time-core 0.1.4, time-macros 0.2.22
  - icu_* 2.1.0 (not 2.2.0)
  - idna_adapter 1.1.0 (not 1.2.2)

These are Cargo.lock-only pins (not workspace.dependencies) because
the deps are transitive, not direct. Cargo.toml documents the
rcgen pin rationale. When rust-toolchain.toml bumps past 1.88,
these pins can be dropped with a single cargo update.

Signed-off-by: Aaron D. Lee <himself@adlee.work>
2026-07-05 13:03:44 -04:00

81 lines
3.7 KiB
TOML

# Cargo.toml — rutster workspace root.
# Spec ref: slice-1 §2. The workspace pins shared dep versions here so
# member crates can't drift (§2.1). Each member references with
# `dep.workspace = true`.
[workspace]
resolver = "2"
members = [
"crates/rutster",
"crates/rutster-brain-realtime",
"crates/rutster-call-model",
"crates/rutster-media",
"crates/rutster-sim",
"crates/rutster-spend",
"crates/rutster-tap",
"crates/rutster-tap-echo",
"crates/rutster-trunk",
]
[workspace.package]
license = "GPL-3.0-or-later"
edition = "2024"
repository = "https://git.adlee.work/alee/rutster"
# Pinned versions for all member crates. References are `foo.workspace = true`
# in the member manifest. Keeps the dep tree unified (§2.1).
[workspace.dependencies]
# str0m 0.21: sans-IO WebRTC. Frame API (Event::MediaData + Writer::write).
str0m = "0.21"
# opus 0.3.1: libopus FFI (system libopus required — see README).
opus = "0.3"
# axum 0.7: HTTP signaling surface.
axum = { version = "0.7", features = ["macros"] }
# tokio 1: runtime driving the str0m poll loop (slice-1 deviation per §3.4).
tokio = { version = "1", features = ["full"] }
# dashmap 6: in-process session store.
dashmap = "6"
# uuid 1: ChannelId newtype backing.
uuid = { version = "1", features = ["v4"] }
thiserror = "1"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# tower: used by the binary crate's integration tests (ServiceExt::oneshot
# on the axum Router). Axum re-exports parts of tower but the integration test
# uses `tower::ServiceExt` directly, so it needs to be a workspace dep.
tower = { version = "0.5", features = ["util"] }
# tokio-tungstenite 0.24: WS client + server (slice-2 tap transport).
tokio-tungstenite = { version = "0.24", features = ["connect"] }
# futures-util 0.3: Sink/Stream traits for WebSocketStream.
futures-util = "0.3"
# url 2: tap URL parsing + host validation (spec §4.4).
url = "2"
# base64 0.22: PCM <-> base64 codec for the v1 wire format (spec §3).
base64 = "0.22"
# async-trait 0.1: async fns in trait objects (Tool trait, slice-3 spec §6.1).
async-trait = "0.1"
# http 1: Request/Response builders for the OpenAI WS handshake (slice-3
# spec §5.3). Task 9's main.rs builds the http::Request<...> the tungstenite
# client sends before WS upgrade; `openai_client::openai_headers` produces
# the header pairs the caller stuffs into it.
http = "1"
# reqwest 0.12: HTTP client for the green-zone Twilio REST call-control
# client (slice-5 T6, feature-gated behind `twilio-live`). `rustls-tls`
# (not native-tls/OpenSSL) keeps the TLS stack pure-Rust + consistent with
# str0m's existing aws-lc-rs crypto provider (ADR-0001 "memory-safe by
# construction"). `default-features = false` drops the default
# native-tls/OpenSSL backend. `json` for the Calls.json response parsing.
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
# toml 0.8: TOML deserialization for the slice-4½ sim-crate's Scenario files
# (crates/rutster-sim/scenarios/*.toml). The first consumer of `toml` in
# the workspace; declared here so future members share the version pin.
toml = "0.8"
# rcgen NOTE: rcgen 0.14.8 bumped MSRV to Rust 1.88, breaking the 1.85
# toolchain matrix. rcgen is a transitive dep via dimpl → str0m 0.21 →
# rutster-media. Cargo.lock pins it to 0.14.7 (the minimum satisfying
# dimpl's ^0.14.7 constraint) to keep the 1.85 MSRV safety net. If a
# `cargo update` bumps it past 0.14.7, the 1.85 CI job will fail — re-pin
# with `cargo update -p rcgen --precise 0.14.7`. When the project bumps
# rust-toolchain.toml past 1.88, this pin can be dropped.