From 68df3223773a9553ea458fc10b4b939915986aad Mon Sep 17 00:00:00 2001 From: DeFiDude <59237470+DeFiDude@users.noreply.github.com> Date: Mon, 17 Aug 2026 11:55:12 -0600 Subject: [PATCH] api: qualify experimental telephony service seam --- .github/workflows/ci.yml | 12 + .gitignore | 1 + API_STABILITY.md | 19 + CHANGELOG.md | 4 + README.md | 5 + TELEPHONY_API.md | 27 + api-baseline/manifest-contract.json | 323 +++++ api-fixtures/Cargo.lock | 1368 +++++++++++++++++++++ api-fixtures/Cargo.toml | 13 + api-fixtures/src/lib.rs | 28 + api-reviews/wave-c-telephony-service.json | 33 + api-stability.json | 9 + crates/lxst-telephony/examples/service.rs | 17 + tools/check-api-baseline.py | 48 + tools/check-api-compatibility.py | 63 + tools/check-api-manifest.py | 169 +++ 16 files changed, 2139 insertions(+) create mode 100644 TELEPHONY_API.md create mode 100644 api-baseline/manifest-contract.json create mode 100644 api-fixtures/Cargo.lock create mode 100644 api-fixtures/Cargo.toml create mode 100644 api-fixtures/src/lib.rs create mode 100644 api-reviews/wave-c-telephony-service.json create mode 100644 crates/lxst-telephony/examples/service.rs create mode 100644 tools/check-api-compatibility.py create mode 100644 tools/check-api-manifest.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f2d702..28c7608 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,6 +41,15 @@ jobs: - name: Check reviewed public API baseline run: python3 tools/check-api-baseline.py working-directory: rsLXST + - name: Check manifest and feature contract + run: python3 tools/check-api-manifest.py + working-directory: rsLXST + - name: Check additions-only compatibility floor + run: python3 tools/check-api-compatibility.py + working-directory: rsLXST + - name: Check canonical and retained external consumers + run: cargo check --manifest-path api-fixtures/Cargo.toml --locked + working-directory: rsLXST lint: name: Lint and Docs @@ -80,6 +89,9 @@ jobs: working-directory: rsLXST - run: cargo clippy --workspace --all-targets --all-features --locked -- -D warnings working-directory: rsLXST + - name: Build embedding examples + run: cargo build -p lxst-telephony --examples --locked + working-directory: rsLXST - run: cargo doc --workspace --no-deps --locked working-directory: rsLXST env: diff --git a/.gitignore b/.gitignore index 1c6ea77..8503c07 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ .DS_Store target/ +api-fixtures/target/ # Runtime data and local identities .reticulum/ diff --git a/API_STABILITY.md b/API_STABILITY.md index ab668ec..43be8f4 100644 --- a/API_STABILITY.md +++ b/API_STABILITY.md @@ -15,6 +15,15 @@ version, changelog, and interop reasoning. - `lxst-telephony` currently exposes both useful service controls and extensive runtime/state-machine machinery. +[`TelephonyService`](TELEPHONY_API.md), constructed with `registered` or +`registered_with_config`, is the selected canonical **experimental** embedding +boundary. `TelephonyServiceParts`, `TelephonyControl`, and +`TelephonyServiceEvent` retain their exact existing ownership, bounded-channel, +backpressure, cancellation, event-order, and shutdown behavior. Manual +`TelephonyRnsEndpoint`/`TelephonyRuntimeCore` assembly remains available for +compatibility but is experimental SPI, not a second recommended application +path. + All three are classified **experimental**. Future work may promote a small facade while hiding orchestration internals, but this checkpoint does not move, rename, hide, or change anything. Ratspeak voice integration and the Python @@ -30,6 +39,16 @@ gates rather than treated as stable Rust API by this host snapshot. cargo install cargo-public-api --version 0.52.0 --locked rustup toolchain install nightly-2026-08-01 --profile minimal python3 tools/check-api-baseline.py +python3 tools/check-api-manifest.py +python3 tools/check-api-compatibility.py +cargo check --manifest-path api-fixtures/Cargo.toml --locked ``` +The immutable compatibility floor is separate from the current reviewed +capture. The manifest contract covers features, targets, MSRV, and +non-development dependencies that the Apple/all-feature snapshot cannot see. +The compatibility check rejects removals from the Wave C floor. Selecting the +existing service boundary changes no public API, version, wire, or runtime +behavior. + Use `--update` only after reviewing and recording the compatibility impact. diff --git a/CHANGELOG.md b/CHANGELOG.md index 1dd8923..a2136e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +- Document the existing registered `TelephonyService` seam as the canonical + experimental embedding boundary, with compiled canonical/retained consumer + contracts and no public API or runtime behavior change. + - Classified all three pre-1.0 packages as experimental and added pinned, CI-enforced public API snapshots without changing visibility or signatures. - Replace the locally modified Opus 0.1.19 snapshot with exact upstream diff --git a/README.md b/README.md index b4e731e..2e4f1cd 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ the reference implementation LXST. - [Test It](#test-it) - [Crate Layout](#crate-layout) - [Using Telephony](#using-telephony) +- [Telephony API boundary](TELEPHONY_API.md) - [Contributing](#contributing) - [License](#license) - [Third-party licenses](#third-party-licenses) @@ -213,6 +214,10 @@ traffic. Outgoing announce/path discovery runs asynchronously inside the service, so an unreachable or non-LXST peer does not block hangup, announce, media, or shutdown controls while discovery times out. +The compiled `lxst-telephony` `service` example is the conformance example for +this embedding boundary. The lower-level endpoint and runtime types remain +available for compatible specialist use, but are experimental SPI. + An initial Reticulum `LINKREQUEST` still follows normal destination routing. After proof validation, rsLXST binds the call to the exact interface that established the Link. Signalling, identification, keepalives, media, and close diff --git a/TELEPHONY_API.md b/TELEPHONY_API.md new file mode 100644 index 0000000..c0d9764 --- /dev/null +++ b/TELEPHONY_API.md @@ -0,0 +1,27 @@ +# Experimental telephony service API + +The current canonical application boundary is the existing +`lxst_telephony::TelephonyService` service seam: + +- construct it with `TelephonyService::registered` or + `TelephonyService::registered_with_config`; +- retain the `TelephonyServiceParts::control_tx` and `event_rx` handles; +- drive the owned service with `TelephonyService::run`; +- use `TelephonyControl`, `request_answer`, and `TelephonyServiceEvent` without + translating raw Reticulum events in the application. + +This boundary is experimental. Selection does not stabilize the whole package +or alter the existing channel capacities, backpressure, event ordering, +cancellation, timeout, media, exact-Link, or shutdown behavior. + +`TelephonyRnsEndpoint`, `TelephonyRuntimeCore`, `TelephonyCommand`, +`TelephonyDriveStep`, `TelephonyService::new`, and +`TelephonyService::with_config` remain public for compatibility and specialist +testing. They are experimental implementation SPI and are not the recommended +application construction path. No compatibility path is deprecated in this +Wave C milestone. + +The compiled `service` example and external fixture exercise the selected and +retained paths. API snapshots, manifest/feature contracts, Android/Apple target +builds, and Python Telephone interoperability are separate evidence layers; +none is replaced by this documentation boundary. diff --git a/api-baseline/manifest-contract.json b/api-baseline/manifest-contract.json new file mode 100644 index 0000000..e630888 --- /dev/null +++ b/api-baseline/manifest-contract.json @@ -0,0 +1,323 @@ +{ + "schemaVersion": 1, + "scope": "library Cargo manifests, public features, targets, and non-dev dependencies", + "packages": [ + { + "name": "lxst-core", + "version": "0.1.2", + "rustVersion": "1.87", + "edition": "2024", + "features": {}, + "targets": [ + { + "name": "lxst_core", + "kind": [ + "lib" + ], + "crateTypes": [ + "lib" + ], + "requiredFeatures": [] + } + ], + "dependencies": [ + { + "name": "half", + "rename": null, + "kind": null, + "target": null, + "requirement": "^2", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "registry" + }, + { + "name": "opus-rs", + "rename": null, + "kind": null, + "target": null, + "requirement": "=0.1.29", + "optional": false, + "defaultFeatures": false, + "features": [ + "heap" + ], + "sourceKind": "registry" + }, + { + "name": "rmpv", + "rename": null, + "kind": null, + "target": null, + "requirement": "^1", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "registry" + }, + { + "name": "thiserror", + "rename": null, + "kind": null, + "target": null, + "requirement": "^2", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "registry" + } + ] + }, + { + "name": "lxst-rns", + "version": "0.1.2", + "rustVersion": "1.87", + "edition": "2024", + "features": {}, + "targets": [ + { + "name": "lxst_rns", + "kind": [ + "lib" + ], + "crateTypes": [ + "lib" + ], + "requiredFeatures": [] + } + ], + "dependencies": [ + { + "name": "bytes", + "rename": null, + "kind": null, + "target": null, + "requirement": "^1", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "registry" + }, + { + "name": "lxst-core", + "rename": null, + "kind": null, + "target": null, + "requirement": "^0.1.2", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "path" + }, + { + "name": "rns-link", + "rename": null, + "kind": null, + "target": null, + "requirement": "^1.1.0", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "path" + }, + { + "name": "rns-transport", + "rename": null, + "kind": null, + "target": null, + "requirement": "^1.1.0", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "path" + }, + { + "name": "rns-wire", + "rename": null, + "kind": null, + "target": null, + "requirement": "^1.1.0", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "path" + }, + { + "name": "thiserror", + "rename": null, + "kind": null, + "target": null, + "requirement": "^2", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "registry" + }, + { + "name": "tokio", + "rename": null, + "kind": null, + "target": null, + "requirement": "^1", + "optional": false, + "defaultFeatures": true, + "features": [ + "macros", + "rt", + "sync", + "time" + ], + "sourceKind": "registry" + } + ] + }, + { + "name": "lxst-telephony", + "version": "0.1.2", + "rustVersion": "1.87", + "edition": "2024", + "features": {}, + "targets": [ + { + "name": "lxst_telephony", + "kind": [ + "lib" + ], + "crateTypes": [ + "lib" + ], + "requiredFeatures": [] + } + ], + "dependencies": [ + { + "name": "bytes", + "rename": null, + "kind": null, + "target": null, + "requirement": "^1", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "registry" + }, + { + "name": "lxst-core", + "rename": null, + "kind": null, + "target": null, + "requirement": "^0.1.2", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "path" + }, + { + "name": "lxst-rns", + "rename": null, + "kind": null, + "target": null, + "requirement": "^0.1.2", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "path" + }, + { + "name": "rns-crypto", + "rename": null, + "kind": null, + "target": null, + "requirement": "^1.1.0", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "path" + }, + { + "name": "rns-identity", + "rename": null, + "kind": null, + "target": null, + "requirement": "^1.1.0", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "path" + }, + { + "name": "rns-link", + "rename": null, + "kind": null, + "target": null, + "requirement": "^1.1.0", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "path" + }, + { + "name": "rns-runtime", + "rename": null, + "kind": null, + "target": null, + "requirement": "^1.1.0", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "path" + }, + { + "name": "rns-transport", + "rename": null, + "kind": null, + "target": null, + "requirement": "^1.1.0", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "path" + }, + { + "name": "rns-wire", + "rename": null, + "kind": null, + "target": null, + "requirement": "^1.1.0", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "path" + }, + { + "name": "thiserror", + "rename": null, + "kind": null, + "target": null, + "requirement": "^2", + "optional": false, + "defaultFeatures": true, + "features": [], + "sourceKind": "registry" + }, + { + "name": "tokio", + "rename": null, + "kind": null, + "target": null, + "requirement": "^1", + "optional": false, + "defaultFeatures": true, + "features": [ + "macros", + "rt", + "sync", + "time" + ], + "sourceKind": "registry" + } + ] + } + ] +} diff --git a/api-fixtures/Cargo.lock b/api-fixtures/Cargo.lock new file mode 100644 index 0000000..ec8989e --- /dev/null +++ b/api-fixtures/Cargo.lock @@ -0,0 +1,1368 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "aes" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0" +dependencies = [ + "cfg-if", + "cipher", + "cpufeatures", +] + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "base64ct" +version = "1.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" + +[[package]] +name = "bitflags" +version = "2.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da" + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block-padding" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8894febbff9f758034a5b8e12d87918f56dfc64a8e1fe757d65e29041538d93" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block2" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f" +dependencies = [ + "objc2", +] + +[[package]] +name = "bytes" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" + +[[package]] +name = "bzip2" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3a53fac24f34a81bc9954b5d6cfce0c21e18ec6959f44f56e8e90e4bb7c346c" +dependencies = [ + "libbz2-rs-sys", +] + +[[package]] +name = "cbc" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26b52a9543ae338f279b96b0b9fed9c8093744685043739079ce85cd58f289a6" +dependencies = [ + "cipher", +] + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "cfg_aliases" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" + +[[package]] +name = "cipher" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad" +dependencies = [ + "crypto-common", + "inout", +] + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "const-oid" +version = "0.9.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "curve25519-dalek" +version = "4.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be" +dependencies = [ + "cfg-if", + "cpufeatures", + "curve25519-dalek-derive", + "digest", + "fiat-crypto", + "rustc_version", + "subtle", + "zeroize", +] + +[[package]] +name = "curve25519-dalek-derive" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "der" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb" +dependencies = [ + "const-oid", + "zeroize", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", + "subtle", +] + +[[package]] +name = "ed25519" +version = "2.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53" +dependencies = [ + "pkcs8", + "signature", +] + +[[package]] +name = "ed25519-dalek" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9" +dependencies = [ + "curve25519-dalek", + "ed25519", + "rand_core", + "serde", + "sha2", + "subtle", + "zeroize", +] + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "fiat-crypto" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "half" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" +dependencies = [ + "cfg-if", + "crunchy", + "zerocopy", +] + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hkdf" +version = "0.12.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7" +dependencies = [ + "hmac", +] + +[[package]] +name = "hmac" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e" +dependencies = [ + "digest", +] + +[[package]] +name = "if-addrs" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69b2eeee38fef3aa9b4cc5f1beea8a2444fc00e7377cafae396de3f5c2065e24" +dependencies = [ + "libc", + "windows-sys 0.59.0", +] + +[[package]] +name = "inout" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01" +dependencies = [ + "block-padding", + "generic-array", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "jni" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6df18c2e3db7e453d3c6ac5b3e9d5182664d28788126d39b91f2d1e22b017ec" +dependencies = [ + "cesu8", + "combine", + "jni-sys 0.3.1", + "log", + "thiserror 1.0.69", + "walkdir", +] + +[[package]] +name = "jni-sys" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258" +dependencies = [ + "jni-sys 0.4.1", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "libbz2-rs-sys" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34b357333733e8260735ba5894eb928c02ecc69c78715f01a8019e7fa7f2db4c" + +[[package]] +name = "libc" +version = "0.2.189" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad" + +[[package]] +name = "lxst-core" +version = "0.1.2" +dependencies = [ + "half", + "opus-rs", + "rmpv", + "thiserror 2.0.20", +] + +[[package]] +name = "lxst-rns" +version = "0.1.2" +dependencies = [ + "bytes", + "lxst-core", + "rns-link", + "rns-transport", + "rns-wire", + "thiserror 2.0.20", + "tokio", +] + +[[package]] +name = "lxst-telephony" +version = "0.1.2" +dependencies = [ + "bytes", + "lxst-core", + "lxst-rns", + "rns-crypto", + "rns-identity", + "rns-link", + "rns-runtime", + "rns-transport", + "rns-wire", + "thiserror 2.0.20", + "tokio", +] + +[[package]] +name = "lxst-telephony-api-fixture" +version = "0.0.0" +dependencies = [ + "lxst-telephony", + "rns-identity", + "rns-transport", + "tokio", +] + +[[package]] +name = "md-5" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf" +dependencies = [ + "cfg-if", + "digest", +] + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "mio" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30d65c71f1ce40ab09135ce117d742b9f8a19ff91a41a8b57ed50bc2de59c427" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "nix" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" +dependencies = [ + "bitflags", + "cfg-if", + "cfg_aliases", + "libc", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "objc-sys" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310" + +[[package]] +name = "objc2" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46a785d4eeff09c14c487497c162e92766fbb3e4059a71840cecc03d9a50b804" +dependencies = [ + "objc-sys", + "objc2-encode", +] + +[[package]] +name = "objc2-core-bluetooth" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a644b62ffb826a5277f536cf0f701493de420b13d40e700c452c36567771111" +dependencies = [ + "bitflags", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-foundation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8" +dependencies = [ + "bitflags", + "block2", + "libc", + "objc2", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "opus-rs" +version = "0.1.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadaf84d53a021172447a8771d74f805ac3719a61041dafa95720ef86b8e271d" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pkcs8" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7" +dependencies = [ + "der", + "spki", +] + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "rand" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22f6172bdec972074665ed81ed53b71da00bfc44b65a753cfde883ec4c702a1a" +dependencies = [ + "libc", + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags", +] + +[[package]] +name = "rmp" +version = "0.8.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ba8be72d372b2c9b35542551678538b562e7cf86c3315773cae48dfbfe7790c" +dependencies = [ + "num-traits", +] + +[[package]] +name = "rmp-serde" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f81bee8c8ef9b577d1681a70ebbc962c232461e397b22c208c43c04b67a155" +dependencies = [ + "rmp", + "serde", +] + +[[package]] +name = "rmpv" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a4e1d4b9b938a26d2996af33229f0ca0956c652c1375067f0b45291c1df8417" +dependencies = [ + "rmp", + "serde", + "serde_bytes", +] + +[[package]] +name = "rns-crypto" +version = "1.1.0" +dependencies = [ + "aes", + "cbc", + "ed25519-dalek", + "hkdf", + "hmac", + "rand", + "rand_core", + "sha2", + "subtle", + "thiserror 2.0.20", + "x25519-dalek", + "zeroize", +] + +[[package]] +name = "rns-identity" +version = "1.1.0" +dependencies = [ + "hex", + "rand", + "rmp-serde", + "rmpv", + "rns-crypto", + "rns-wire", + "serde", + "serde_bytes", + "thiserror 2.0.20", + "tracing", + "windows-sys 0.61.2", + "zeroize", +] + +[[package]] +name = "rns-interface" +version = "1.1.0" +dependencies = [ + "bytes", + "hex", + "if-addrs", + "jni", + "libc", + "md-5", + "objc2", + "objc2-core-bluetooth", + "objc2-foundation", + "rand", + "rns-crypto", + "rns-identity", + "rns-transport", + "rns-wire", + "serde", + "serde_json", + "socket2 0.5.10", + "thiserror 2.0.20", + "tokio", + "tracing", + "windows", +] + +[[package]] +name = "rns-link" +version = "1.1.0" +dependencies = [ + "hex", + "rand", + "rmpv", + "rns-crypto", + "rns-identity", + "rns-wire", + "thiserror 2.0.20", + "tracing", + "zeroize", +] + +[[package]] +name = "rns-protocol" +version = "1.1.0" +dependencies = [ + "bzip2", + "hex", + "rmp-serde", + "rmpv", + "rns-crypto", + "rns-link", + "rns-wire", + "thiserror 2.0.20", + "tokio", + "tracing", +] + +[[package]] +name = "rns-runtime" +version = "1.1.0" +dependencies = [ + "bytes", + "hex", + "hmac", + "md-5", + "nix", + "rmp-serde", + "rmpv", + "rns-crypto", + "rns-identity", + "rns-interface", + "rns-link", + "rns-protocol", + "rns-transport", + "rns-wire", + "serde", + "sha2", + "subtle", + "thiserror 2.0.20", + "tokio", + "tracing", +] + +[[package]] +name = "rns-transport" +version = "1.1.0" +dependencies = [ + "bytes", + "hex", + "rand", + "rmp-serde", + "rmpv", + "rns-crypto", + "rns-identity", + "rns-wire", + "serde", + "subtle", + "thiserror 2.0.20", + "tokio", + "tracing", +] + +[[package]] +name = "rns-wire" +version = "1.1.0" +dependencies = [ + "rns-crypto", + "sha2", + "thiserror 2.0.20", +] + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_bytes" +version = "0.11.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5d440709e79d88e51ac01c4b72fc6cb7314017bb7da9eeff678aa94c10e3ea8" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "serde_json" +version = "1.0.151" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "signature" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de" +dependencies = [ + "rand_core", +] + +[[package]] +name = "smallvec" +version = "1.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90" + +[[package]] +name = "socket2" +version = "0.5.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678" +dependencies = [ + "libc", + "windows-sys 0.52.0", +] + +[[package]] +name = "socket2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "spki" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d" +dependencies = [ + "base64ct", + "der", +] + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec86235f5fcc2a73650310756d2ac5b138a5780bbbdfae3eeccec992c435ba4f" +dependencies = [ + "thiserror-impl 2.0.20", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc04cd3e1236dd4a98afca4569f2deb3f120e5422a4023be2cb683f8486292af" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "tokio" +version = "1.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed" +dependencies = [ + "bytes", + "libc", + "mio", + "parking_lot", + "pin-project-lite", + "signal-hook-registry", + "socket2 0.6.5", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.3", +] + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "typenum" +version = "1.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "windows" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6" +dependencies = [ + "windows-core", + "windows-targets", +] + +[[package]] +name = "windows-core" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-result", + "windows-strings", + "windows-targets", +] + +[[package]] +name = "windows-implement" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-interface" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-result" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-strings" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +dependencies = [ + "windows-result", + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "x25519-dalek" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7e468321c81fb07fa7f4c636c3972b9100f0346e5b6a9f2bd0603a52f7ed277" +dependencies = [ + "curve25519-dalek", + "rand_core", + "serde", + "zeroize", +] + +[[package]] +name = "zerocopy" +version = "0.8.56" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "556764e583adb45a9f8d413c2a147fa7e8d821e48e12b14fd560b607998b75eb" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.56" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2ab42fc20575779bd240faa45f94a74256f755c0fa9e89f0ede20d91d0cdfc1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "zeroize" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e" +dependencies = [ + "zeroize_derive", +] + +[[package]] +name = "zeroize_derive" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" diff --git a/api-fixtures/Cargo.toml b/api-fixtures/Cargo.toml new file mode 100644 index 0000000..a9e26d3 --- /dev/null +++ b/api-fixtures/Cargo.toml @@ -0,0 +1,13 @@ +[package] +name = "lxst-telephony-api-fixture" +version = "0.0.0" +edition = "2024" +publish = false + +[workspace] + +[dependencies] +lxst-telephony = { path = "../crates/lxst-telephony" } +rns-identity = { path = "../../rsReticulum/crates/rns-identity" } +rns-transport = { path = "../../rsReticulum/crates/rns-transport" } +tokio = { version = "1", features = ["sync"] } diff --git a/api-fixtures/src/lib.rs b/api-fixtures/src/lib.rs new file mode 100644 index 0000000..22daaf8 --- /dev/null +++ b/api-fixtures/src/lib.rs @@ -0,0 +1,28 @@ +//! External-consumer compile contract for selected and retained LXST paths. + +use rns_identity::identity::Identity; +use rns_transport::messages::TransportMessage; +use tokio::sync::mpsc; + +pub mod canonical { + use super::*; + use lxst_telephony::{Error, TelephonyService, TelephonyServiceParts}; + + pub fn register( + transport_tx: mpsc::Sender, + identity: &Identity, + ) -> Result { + TelephonyService::registered(transport_tx, identity) + } +} + +pub mod retained { + use lxst_telephony::{TelephonyRnsEndpoint, TelephonyRuntimeCore}; + + pub fn raw_assembly_types( + endpoint: TelephonyRnsEndpoint, + runtime: TelephonyRuntimeCore, + ) -> (TelephonyRnsEndpoint, TelephonyRuntimeCore) { + (endpoint, runtime) + } +} diff --git a/api-reviews/wave-c-telephony-service.json b/api-reviews/wave-c-telephony-service.json new file mode 100644 index 0000000..21951e9 --- /dev/null +++ b/api-reviews/wave-c-telephony-service.json @@ -0,0 +1,33 @@ +{ + "schemaVersion": 1, + "capabilities": ["LXST-01", "LXST-02", "LXST-03", "LXST-04"], + "canonicalPath": "lxst_telephony::TelephonyService", + "canonicalConstruction": [ + "TelephonyService::registered", + "TelephonyService::registered_with_config", + "TelephonyServiceParts" + ], + "retainedPaths": [ + "TelephonyRuntimeCore", + "TelephonyRnsEndpoint", + "TelephonyService::new", + "TelephonyService::with_config" + ], + "internalSpi": [ + "TelephonyCommand", + "TelephonyDriveStep", + "manual runtime and endpoint assembly" + ], + "classification": "existing experimental service boundary", + "publicApiDiff": {"added": 0, "removed": 0}, + "semver": "no version consequence; documentation and consumer migration only", + "deprecations": "none", + "wirePersistenceRuntimeImpact": "none", + "consumerMigration": "Ratspeak uses registered service assembly with identical default 32/128 bounded channels", + "platformEvidence": [ + "host service tests and compiled example", + "Rust 1.87 strict Clippy", + "Android and Apple compile gates at product handoff", + "Python Telephone interoperability at milestone close" + ] +} diff --git a/api-stability.json b/api-stability.json index f6b1f9a..b16b547 100644 --- a/api-stability.json +++ b/api-stability.json @@ -14,6 +14,15 @@ "commit": "af89a03094605dbdf7264d06fdc546526ec6980b", "capturedOn": "2026-08-17" }, + "compatibilityFloor": { + "evidenceCommit": "21a54b778472343b70fd71d34ae96c61c44187c3", + "sourceCommit": "af89a03094605dbdf7264d06fdc546526ec6980b" + }, + "snapshotSource": { + "basisCommit": "9ef5fb3a4da0d960846e5a8e23707e401caebd46", + "capturedOn": "2026-08-17", + "changeRecord": "api-reviews/wave-c-telephony-service.json" + }, "packages": [ { "name": "lxst-core", diff --git a/crates/lxst-telephony/examples/service.rs b/crates/lxst-telephony/examples/service.rs new file mode 100644 index 0000000..7ef99a8 --- /dev/null +++ b/crates/lxst-telephony/examples/service.rs @@ -0,0 +1,17 @@ +//! Construct the canonical experimental telephony service boundary. + +use lxst_telephony::{TelephonyControl, TelephonyService, TelephonyServiceEvent}; +use rns_identity::identity::Identity; +use rns_transport::messages::TransportMessage; +use tokio::sync::mpsc; + +fn main() -> Result<(), Box> { + let (transport_tx, _transport_rx) = mpsc::channel::(32); + let identity = Identity::new(); + let parts = TelephonyService::registered(transport_tx, &identity)?; + + let _service: TelephonyService = parts.service; + let _control: mpsc::Sender = parts.control_tx; + let _events: mpsc::Receiver = parts.event_rx; + Ok(()) +} diff --git a/tools/check-api-baseline.py b/tools/check-api-baseline.py index 0cc4032..37f1c64 100644 --- a/tools/check-api-baseline.py +++ b/tools/check-api-baseline.py @@ -112,6 +112,54 @@ def validate_metadata( if ancestor_check.returncode != 0: fail(f"baseline commit {commit} is not an ancestor of HEAD") + compatibility_floor = config.get("compatibilityFloor") + if not isinstance(compatibility_floor, dict): + fail("compatibility floor identity is missing") + floor_evidence = compatibility_floor.get("evidenceCommit") + floor_source = compatibility_floor.get("sourceCommit") + for label, floor_commit in ( + ("evidence", floor_evidence), + ("source", floor_source), + ): + if not isinstance(floor_commit, str) or not SHA_PATTERN.fullmatch( + floor_commit + ): + fail(f"compatibility floor {label} commit must be a full Git commit") + floor_check = subprocess.run( + ["git", "cat-file", "-e", f"{floor_commit}^{{commit}}"], cwd=ROOT + ) + if floor_check.returncode != 0: + fail(f"compatibility floor {label} commit {floor_commit} is unavailable") + floor_ancestor = subprocess.run( + ["git", "merge-base", "--is-ancestor", floor_commit, "HEAD"], cwd=ROOT + ) + if floor_ancestor.returncode != 0: + fail(f"compatibility floor {label} commit is not an ancestor of HEAD") + + snapshot_source = config.get("snapshotSource") + if not isinstance(snapshot_source, dict): + fail("snapshot source identity is missing") + snapshot_commit = snapshot_source.get("basisCommit") + if not isinstance(snapshot_commit, str) or not SHA_PATTERN.fullmatch( + snapshot_commit + ): + fail("snapshot source basis commit must be a full Git commit") + snapshot_check = subprocess.run( + ["git", "cat-file", "-e", f"{snapshot_commit}^{{commit}}"], cwd=ROOT + ) + if snapshot_check.returncode != 0: + fail(f"snapshot source basis commit {snapshot_commit} is unavailable") + snapshot_ancestor = subprocess.run( + ["git", "merge-base", "--is-ancestor", snapshot_commit, "HEAD"], cwd=ROOT + ) + if snapshot_ancestor.returncode != 0: + fail(f"snapshot source basis commit {snapshot_commit} is not an ancestor of HEAD") + change_record = snapshot_source.get("changeRecord") + if not isinstance(change_record, str) or not change_record.startswith("api-reviews/"): + fail("snapshot source must name a reviewed change record") + if not (ROOT / change_record).is_file(): + fail(f"snapshot source change record is missing: {change_record}") + packages = config.get("packages") if not isinstance(packages, list) or not packages: fail("package ledger is empty") diff --git a/tools/check-api-compatibility.py b/tools/check-api-compatibility.py new file mode 100644 index 0000000..1f91ba7 --- /dev/null +++ b/tools/check-api-compatibility.py @@ -0,0 +1,63 @@ +#!/usr/bin/env python3 +"""Reject removals from the immutable Wave C public-API compatibility floor.""" + +from __future__ import annotations + +import json +import subprocess +import sys +from pathlib import Path + + +ROOT = Path(__file__).resolve().parents[1] +LEDGER_PATH = ROOT / "api-stability.json" + + +def fail(message: str) -> None: + print(f"api compatibility: {message}", file=sys.stderr) + raise SystemExit(1) + + +def git_show(commit: str, path: str) -> str: + result = subprocess.run( + ["git", "show", f"{commit}:{path}"], + cwd=ROOT, + capture_output=True, + text=True, + ) + if result.returncode != 0: + if result.stderr: + print(result.stderr, file=sys.stderr, end="") + fail(f"cannot read compatibility floor {commit}:{path}") + return result.stdout + + +def main() -> None: + ledger = json.loads(LEDGER_PATH.read_text(encoding="utf-8")) + floor = ledger.get("compatibilityFloor", {}).get("evidenceCommit") + if not isinstance(floor, str): + fail("api-stability.json has no compatibility-floor commit") + total_added = 0 + total_removed = 0 + for package in ledger["packages"]: + path = package["snapshot"] + before = set(git_show(floor, path).splitlines()) + after = set((ROOT / path).read_text(encoding="utf-8").splitlines()) + added = sorted(after - before) + removed = sorted(before - after) + total_added += len(added) + total_removed += len(removed) + print(f"{package['name']}: +{len(added)} -{len(removed)}") + if removed: + for line in removed: + print(f"- {line}", file=sys.stderr) + if total_removed: + fail( + f"{total_removed} public API lines were removed from the Wave C floor; " + "the current policy permits additions only" + ) + print(f"api compatibility: additive-only (+{total_added}, -0)") + + +if __name__ == "__main__": + main() diff --git a/tools/check-api-manifest.py b/tools/check-api-manifest.py new file mode 100644 index 0000000..29d3615 --- /dev/null +++ b/tools/check-api-manifest.py @@ -0,0 +1,169 @@ +#!/usr/bin/env python3 +"""Verify the reviewed Cargo manifest and feature contract for library packages.""" + +from __future__ import annotations + +import argparse +import difflib +import json +import subprocess +import sys +from pathlib import Path + + +ROOT = Path(__file__).resolve().parents[1] +LEDGER_PATH = ROOT / "api-stability.json" +CONTRACT_PATH = ROOT / "api-baseline" / "manifest-contract.json" + + +def fail(message: str) -> None: + print(f"api manifest contract: {message}", file=sys.stderr) + raise SystemExit(1) + + +def metadata(manifest_path: str) -> dict[str, object]: + result = subprocess.run( + [ + "cargo", + "metadata", + "--format-version", + "1", + "--no-deps", + "--manifest-path", + manifest_path, + ], + cwd=ROOT, + capture_output=True, + text=True, + ) + if result.returncode != 0: + if result.stderr: + print(result.stderr, file=sys.stderr, end="") + fail(f"cargo metadata failed for {manifest_path}") + return json.loads(result.stdout) + + +def dependency_contract(dependency: dict[str, object]) -> dict[str, object]: + source = dependency.get("source") + return { + "name": dependency["name"], + "rename": dependency.get("rename"), + "kind": dependency.get("kind"), + "target": dependency.get("target"), + "requirement": dependency["req"], + "optional": dependency["optional"], + "defaultFeatures": dependency["uses_default_features"], + "features": sorted(dependency["features"]), + "sourceKind": "registry" if source else "path", + } + + +def package_contract(package: dict[str, object]) -> dict[str, object]: + targets = [] + for target in package["targets"]: + if "lib" not in target["kind"]: + continue + targets.append( + { + "name": target["name"], + "kind": sorted(target["kind"]), + "crateTypes": sorted(target["crate_types"]), + "requiredFeatures": sorted(target.get("required-features", [])), + } + ) + dependencies = [ + dependency_contract(dependency) + for dependency in package["dependencies"] + if dependency.get("kind") != "dev" + ] + dependencies.sort( + key=lambda item: ( + str(item["kind"]), + str(item["target"]), + str(item["rename"]), + str(item["name"]), + ) + ) + return { + "name": package["name"], + "version": package["version"], + "rustVersion": package.get("rust_version"), + "edition": package["edition"], + "features": { + name: sorted(values) + for name, values in sorted(package["features"].items()) + }, + "targets": sorted(targets, key=lambda item: str(item["name"])), + "dependencies": dependencies, + } + + +def render_contract() -> str: + ledger = json.loads(LEDGER_PATH.read_text(encoding="utf-8")) + manifests = sorted({entry["manifestPath"] for entry in ledger["packages"]}) + recorded_names = {entry["name"] for entry in ledger["packages"]} + packages: list[dict[str, object]] = [] + for manifest in manifests: + for package in metadata(manifest)["packages"]: + if package["name"] in recorded_names: + packages.append(package_contract(package)) + actual_names = {entry["name"] for entry in packages} + if actual_names != recorded_names: + fail( + f"package inventory differs: expected={sorted(recorded_names)}, " + f"actual={sorted(actual_names)}" + ) + contract = { + "schemaVersion": 1, + "scope": "library Cargo manifests, public features, targets, and non-dev dependencies", + "packages": sorted(packages, key=lambda item: str(item["name"])), + } + return json.dumps(contract, indent=2) + "\n" + + +def main() -> None: + parser = argparse.ArgumentParser() + parser.add_argument( + "--print", + action="store_true", + dest="print_contract", + help="print the current canonical contract for reviewed application", + ) + parser.add_argument( + "--update", + action="store_true", + help="write the current reviewed manifest contract", + ) + args = parser.parse_args() + if args.print_contract and args.update: + fail("--print and --update are mutually exclusive") + rendered = render_contract() + if args.print_contract: + print(rendered, end="") + return + if args.update: + CONTRACT_PATH.write_text(rendered, encoding="utf-8") + print("api manifest contract updated") + return + if not CONTRACT_PATH.is_file(): + fail(f"missing {CONTRACT_PATH.relative_to(ROOT)}") + expected = CONTRACT_PATH.read_text(encoding="utf-8") + if expected != rendered: + print( + "".join( + difflib.unified_diff( + expected.splitlines(keepends=True), + rendered.splitlines(keepends=True), + fromfile=str(CONTRACT_PATH.relative_to(ROOT)), + tofile="current Cargo metadata", + ) + ), + file=sys.stderr, + end="", + ) + fail("manifest, feature, target, or dependency contract drift") + print("api manifest contract: ok") + + +if __name__ == "__main__": + main()