mirror of
https://github.com/ratspeak/rsLXST
synced 2026-11-22 23:10:37 +00:00
build: qualify Rust 1.89 hosts while preserving MCU compatibility
This commit is contained in:
1 parent
208560655f
commit
ae538650b9
13 files changed
+103
-75
No files matched your search
@@ -11,7 +11,7 @@ permissions:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
RSLXST_RSRETICULUM_VERSION: 1.3.0
|
RSLXST_RSRETICULUM_VERSION: 1.3.0
|
||||||
RSLXST_RSRETICULUM_COMMIT: 5edb8f22f5d8e6b2bd7392dc06e255ead96576fb
|
RSLXST_RSRETICULUM_COMMIT: cac8151fd8207ada9775310fe2b3c9c7340a7ecd
|
||||||
RSLXST_PYTHON_LXST_COMMIT: 1194c9011fe6402edc7aebe7ffe9650ea3b1afee
|
RSLXST_PYTHON_LXST_COMMIT: 1194c9011fe6402edc7aebe7ffe9650ea3b1afee
|
||||||
RSLXST_PYTHON_RNS_COMMIT: b48b96e61676504e0a4e527b33b9a0b4495c6872
|
RSLXST_PYTHON_RNS_COMMIT: b48b96e61676504e0a4e527b33b9a0b4495c6872
|
||||||
|
|
||||||
@@ -150,8 +150,28 @@ jobs:
|
|||||||
- run: cargo test --workspace --locked
|
- run: cargo test --workspace --locked
|
||||||
working-directory: rsLXST
|
working-directory: rsLXST
|
||||||
|
|
||||||
|
embedded-msrv:
|
||||||
|
name: Embedded Rust 1.87 MSRV
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 15
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09
|
||||||
|
with:
|
||||||
|
path: rsLXST
|
||||||
|
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09
|
||||||
|
with:
|
||||||
|
repository: ${{ github.repository_owner }}/rsReticulum
|
||||||
|
ref: ${{ env.RSLXST_RSRETICULUM_COMMIT }}
|
||||||
|
path: rsReticulum
|
||||||
|
- uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772
|
||||||
|
with:
|
||||||
|
toolchain: 1.87.0
|
||||||
|
- name: Check no_std MCU libraries at their independent compiler floor
|
||||||
|
working-directory: rsLXST
|
||||||
|
run: cargo check -p lxst-codec2 -p lxst-embedded --lib --locked
|
||||||
|
|
||||||
msrv:
|
msrv:
|
||||||
name: Rust 1.87 MSRV
|
name: Rust 1.89 MSRV
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
@@ -175,7 +195,7 @@ jobs:
|
|||||||
path: upstream/Reticulum
|
path: upstream/Reticulum
|
||||||
- uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772
|
- uses: dtolnay/rust-toolchain@6c977a6ca4077a0ceb28ffbe03f59d46e9ac8772
|
||||||
with:
|
with:
|
||||||
toolchain: 1.87.0
|
toolchain: 1.89.0
|
||||||
components: clippy
|
components: clippy
|
||||||
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2
|
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2
|
||||||
with:
|
with:
|
||||||
@@ -209,16 +229,16 @@ jobs:
|
|||||||
toolchain: stable
|
toolchain: stable
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
target: aarch64-linux-android
|
target: aarch64-linux-android
|
||||||
toolchain: 1.87.0
|
toolchain: 1.89.0
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
target: armv7-linux-androideabi
|
target: armv7-linux-androideabi
|
||||||
toolchain: 1.87.0
|
toolchain: 1.89.0
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
target: x86_64-linux-android
|
target: x86_64-linux-android
|
||||||
toolchain: 1.87.0
|
toolchain: 1.89.0
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
target: aarch64-apple-ios
|
target: aarch64-apple-ios
|
||||||
toolchain: 1.87.0
|
toolchain: 1.89.0
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
|
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -29,6 +29,9 @@
|
|||||||
|
|
||||||
### Build and compatibility
|
### Build and compatibility
|
||||||
|
|
||||||
|
- Raised the host source-build minimum to Rust 1.89 and qualified the corresponding protocol dependency update.
|
||||||
|
- Kept the standalone `lxst-codec2` and `lxst-embedded` minimum at Rust 1.87, with an independent MCU library check.
|
||||||
|
|
||||||
- Restricted rsReticulum compatibility to the 1.3 patch line and updated the pinned source. Codec dependencies and telephony APIs are unchanged.
|
- Restricted rsReticulum compatibility to the 1.3 patch line and updated the pinned source. Codec dependencies and telephony APIs are unchanged.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -12,7 +12,7 @@ members = [
|
|||||||
version = "0.2.0"
|
version = "0.2.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
license = "AGPL-3.0-or-later"
|
license = "AGPL-3.0-or-later"
|
||||||
rust-version = "1.87"
|
rust-version = "1.89"
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
[workspace.dependencies]
|
[workspace.dependencies]
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
**Rust LXST telephony and media streaming for Reticulum.**
|
**Rust LXST telephony and media streaming for Reticulum.**
|
||||||
|
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
[](https://www.rust-lang.org)
|
[](https://www.rust-lang.org)
|
||||||
[](https://github.com/markqvist/LXST)
|
[](https://github.com/markqvist/LXST)
|
||||||
[](#feature-status)
|
[](#feature-status)
|
||||||
|
|
||||||
@@ -292,3 +292,7 @@ Third-party components retain their own licenses. The locked production
|
|||||||
dependency inventory, including the exact upstream BSD-3-Clause Opus package,
|
dependency inventory, including the exact upstream BSD-3-Clause Opus package,
|
||||||
checksum, source commit, and preserved notice, is documented in
|
checksum, source commit, and preserved notice, is documented in
|
||||||
[THIRD_PARTY_LICENSES.md](THIRD_PARTY_LICENSES.md).
|
[THIRD_PARTY_LICENSES.md](THIRD_PARTY_LICENSES.md).
|
||||||
|
|
||||||
|
The host workspace requires Rust 1.89 or later. The standalone `lxst-codec2`
|
||||||
|
and `lxst-embedded` libraries retain Rust 1.87 compatibility for MCU consumers;
|
||||||
|
CI checks that independent minimum without the host-only development tests.
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
{
|
{
|
||||||
"name": "lxst-core",
|
"name": "lxst-core",
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"rustVersion": "1.87",
|
"rustVersion": "1.89",
|
||||||
"edition": "2024",
|
"edition": "2024",
|
||||||
"features": {},
|
"features": {},
|
||||||
"targets": [
|
"targets": [
|
||||||
@@ -147,7 +147,7 @@
|
|||||||
{
|
{
|
||||||
"name": "lxst-rns",
|
"name": "lxst-rns",
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"rustVersion": "1.87",
|
"rustVersion": "1.89",
|
||||||
"edition": "2024",
|
"edition": "2024",
|
||||||
"features": {},
|
"features": {},
|
||||||
"targets": [
|
"targets": [
|
||||||
@@ -250,7 +250,7 @@
|
|||||||
{
|
{
|
||||||
"name": "lxst-telephony",
|
"name": "lxst-telephony",
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"rustVersion": "1.87",
|
"rustVersion": "1.89",
|
||||||
"edition": "2024",
|
"edition": "2024",
|
||||||
"features": {},
|
"features": {},
|
||||||
"targets": [
|
"targets": [
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
# Keep Clippy suggestions aligned with the public MSRV in Cargo.toml.
|
# Keep Clippy suggestions aligned with the public MSRV in Cargo.toml.
|
||||||
msrv = "1.87"
|
msrv = "1.89"
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
name = "lxst-codec2"
|
name = "lxst-codec2"
|
||||||
version.workspace = true
|
version.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
rust-version.workspace = true
|
rust-version = "1.87"
|
||||||
publish.workspace = true
|
publish.workspace = true
|
||||||
license = "LGPL-2.1-only AND MIT AND BSD-3-Clause"
|
license = "LGPL-2.1-only AND MIT AND BSD-3-Clause"
|
||||||
description = "Bounded no_std Codec2 speech backend for LXST"
|
description = "Bounded no_std Codec2 speech backend for LXST"
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# Keep lint suggestions compatible with the standalone MCU compiler floor.
|
||||||
|
msrv = "1.87"
|
||||||
@@ -3,7 +3,7 @@ name = "lxst-embedded"
|
|||||||
version.workspace = true
|
version.workspace = true
|
||||||
edition.workspace = true
|
edition.workspace = true
|
||||||
license.workspace = true
|
license.workspace = true
|
||||||
rust-version.workspace = true
|
rust-version = "1.87"
|
||||||
publish.workspace = true
|
publish.workspace = true
|
||||||
description = "Bounded no_std LXST framing and authenticated PTT session policy"
|
description = "Bounded no_std LXST framing and authenticated PTT session policy"
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# Keep lint suggestions compatible with the standalone MCU compiler floor.
|
||||||
|
msrv = "1.87"
|
||||||
@@ -1093,35 +1093,33 @@ impl TelephonyServiceMedia {
|
|||||||
}
|
}
|
||||||
if self.opus_transmit_stream.as_ref().is_some_and(|stream| {
|
if self.opus_transmit_stream.as_ref().is_some_and(|stream| {
|
||||||
stream.link_id != active.link_id || Some(stream.profile) != active.profile
|
stream.link_id != active.link_id || Some(stream.profile) != active.profile
|
||||||
}) {
|
}) && let Some(stream) = self.opus_transmit_stream.take()
|
||||||
if let Some(stream) = self.opus_transmit_stream.take() {
|
{
|
||||||
let reason = if stream.link_id == active.link_id {
|
let reason = if stream.link_id == active.link_id {
|
||||||
OpusTransmitStreamStopReason::ProfileChanged
|
OpusTransmitStreamStopReason::ProfileChanged
|
||||||
} else {
|
} else {
|
||||||
OpusTransmitStreamStopReason::CallEnded
|
OpusTransmitStreamStopReason::CallEnded
|
||||||
};
|
};
|
||||||
events.push(TelephonyServiceEvent::OpusTransmitStreamStopped {
|
events.push(TelephonyServiceEvent::OpusTransmitStreamStopped {
|
||||||
link_id: stream.link_id,
|
link_id: stream.link_id,
|
||||||
profile: stream.profile,
|
profile: stream.profile,
|
||||||
reason,
|
reason,
|
||||||
});
|
});
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if self.opus_receive_stream.as_ref().is_some_and(|stream| {
|
if self.opus_receive_stream.as_ref().is_some_and(|stream| {
|
||||||
stream.link_id != active.link_id || Some(stream.profile) != active.profile
|
stream.link_id != active.link_id || Some(stream.profile) != active.profile
|
||||||
}) {
|
}) && let Some(stream) = self.opus_receive_stream.take()
|
||||||
if let Some(stream) = self.opus_receive_stream.take() {
|
{
|
||||||
let reason = if stream.link_id == active.link_id {
|
let reason = if stream.link_id == active.link_id {
|
||||||
OpusReceiveStreamStopReason::ProfileChanged
|
OpusReceiveStreamStopReason::ProfileChanged
|
||||||
} else {
|
} else {
|
||||||
OpusReceiveStreamStopReason::CallEnded
|
OpusReceiveStreamStopReason::CallEnded
|
||||||
};
|
};
|
||||||
events.push(TelephonyServiceEvent::OpusReceiveStreamStopped {
|
events.push(TelephonyServiceEvent::OpusReceiveStreamStopped {
|
||||||
link_id: stream.link_id,
|
link_id: stream.link_id,
|
||||||
profile: stream.profile,
|
profile: stream.profile,
|
||||||
reason,
|
reason,
|
||||||
});
|
});
|
||||||
}
|
|
||||||
}
|
}
|
||||||
events
|
events
|
||||||
}
|
}
|
||||||
@@ -1751,11 +1749,11 @@ impl TelephonyService {
|
|||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
if !frames.is_empty() {
|
if !frames.is_empty()
|
||||||
if let Err(err) = self.send_opus_frames(profile, frames).await {
|
&& let Err(err) = self.send_opus_frames(profile, frames).await
|
||||||
self.media.opus_transmit_stream = None;
|
{
|
||||||
return emit_service_error(self.event_tx.clone(), err).await;
|
self.media.opus_transmit_stream = None;
|
||||||
}
|
return emit_service_error(self.event_tx.clone(), err).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
if source_closed {
|
if source_closed {
|
||||||
@@ -2011,10 +2009,10 @@ impl TelephonyService {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let Some(event) = media_received {
|
if let Some(event) = media_received
|
||||||
if !emit_service_event(self.event_tx.clone(), event).await {
|
&& !emit_service_event(self.event_tx.clone(), event).await
|
||||||
return false;
|
{
|
||||||
}
|
return false;
|
||||||
}
|
}
|
||||||
for event in opus_received_events {
|
for event in opus_received_events {
|
||||||
if !emit_service_event(self.event_tx.clone(), event).await {
|
if !emit_service_event(self.event_tx.clone(), event).await {
|
||||||
@@ -2132,14 +2130,12 @@ impl TelephonyService {
|
|||||||
dropped,
|
dropped,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if sink_closed {
|
if sink_closed && let Some(stream) = self.media.opus_receive_stream.take() {
|
||||||
if let Some(stream) = self.media.opus_receive_stream.take() {
|
events.push(TelephonyServiceEvent::OpusReceiveStreamStopped {
|
||||||
events.push(TelephonyServiceEvent::OpusReceiveStreamStopped {
|
link_id: stream.link_id,
|
||||||
link_id: stream.link_id,
|
profile: stream.profile,
|
||||||
profile: stream.profile,
|
reason: OpusReceiveStreamStopReason::SinkClosed,
|
||||||
reason: OpusReceiveStreamStopReason::SinkClosed,
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
events
|
events
|
||||||
}
|
}
|
||||||
@@ -2245,8 +2241,8 @@ impl TelephonyService {
|
|||||||
.map(|interval| now + interval);
|
.map(|interval| now + interval);
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(effects) = effects {
|
if let Some(effects) = effects
|
||||||
if !emit_service_event(
|
&& !emit_service_event(
|
||||||
self.event_tx.clone(),
|
self.event_tx.clone(),
|
||||||
TelephonyServiceEvent::Drive(TelephonyDriveStep {
|
TelephonyServiceEvent::Drive(TelephonyDriveStep {
|
||||||
step: TelephonyStep::commands(commands),
|
step: TelephonyStep::commands(commands),
|
||||||
@@ -2254,9 +2250,8 @@ impl TelephonyService {
|
|||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
@@ -2892,10 +2887,10 @@ impl TelephonyRnsEndpoint {
|
|||||||
);
|
);
|
||||||
let queued =
|
let queued =
|
||||||
self.queue_prepared_control(link_id, LinkEndpointRole::Initiator, prepared);
|
self.queue_prepared_control(link_id, LinkEndpointRole::Initiator, prepared);
|
||||||
if queued.is_ok() {
|
if queued.is_ok()
|
||||||
if let Some(state) = self.outgoing_links.get_mut(&link_id) {
|
&& let Some(state) = self.outgoing_links.get_mut(&link_id)
|
||||||
state.link.record_tx_keepalive(1);
|
{
|
||||||
}
|
state.link.record_tx_keepalive(1);
|
||||||
}
|
}
|
||||||
if queued.is_err() {
|
if queued.is_err() {
|
||||||
let _ = self.close_outgoing_link_locally(link_id);
|
let _ = self.close_outgoing_link_locally(link_id);
|
||||||
|
|||||||
@@ -561,10 +561,10 @@ async fn drive_until_active_status(
|
|||||||
.try_drive_ready(core)
|
.try_drive_ready(core)
|
||||||
.expect("drive Rust Telephone endpoint");
|
.expect("drive Rust Telephone endpoint");
|
||||||
|
|
||||||
if let Some(call) = core.snapshot().active_call {
|
if let Some(call) = core.snapshot().active_call
|
||||||
if call.status == status {
|
&& call.status == status
|
||||||
return call;
|
{
|
||||||
}
|
return call;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert!(
|
assert!(
|
||||||
|
|||||||
@@ -12,9 +12,10 @@ import sys
|
|||||||
|
|
||||||
ROOT = Path(__file__).resolve().parents[1]
|
ROOT = Path(__file__).resolve().parents[1]
|
||||||
EXPECTED_PACKAGES = {"lxst-core", "lxst-codec2", "lxst-embedded", "lxst-rns", "lxst-telephony"}
|
EXPECTED_PACKAGES = {"lxst-core", "lxst-codec2", "lxst-embedded", "lxst-rns", "lxst-telephony"}
|
||||||
EXPECTED_MSRV = "1.87"
|
EXPECTED_MSRV = "1.89"
|
||||||
|
EMBEDDED_MSRV = {"lxst-codec2": "1.87", "lxst-embedded": "1.87"}
|
||||||
EXPECTED_RETICULUM_VERSION = "1.3.0"
|
EXPECTED_RETICULUM_VERSION = "1.3.0"
|
||||||
EXPECTED_RETICULUM_COMMIT = "5edb8f22f5d8e6b2bd7392dc06e255ead96576fb"
|
EXPECTED_RETICULUM_COMMIT = "cac8151fd8207ada9775310fe2b3c9c7340a7ecd"
|
||||||
EXPECTED_OPUS_DEPENDENCY = (
|
EXPECTED_OPUS_DEPENDENCY = (
|
||||||
'opus-rs = { version = "=0.1.29", default-features = false, '
|
'opus-rs = { version = "=0.1.29", default-features = false, '
|
||||||
'features = ["heap"] }'
|
'features = ["heap"] }'
|
||||||
@@ -48,9 +49,10 @@ reticulum_requirements: set[str] = set()
|
|||||||
for name, package in sorted(packages.items()):
|
for name, package in sorted(packages.items()):
|
||||||
if package["publish"] != []:
|
if package["publish"] != []:
|
||||||
fail(f"{name} must declare publish = false")
|
fail(f"{name} must declare publish = false")
|
||||||
if package["rust_version"] != EXPECTED_MSRV:
|
expected_msrv = EMBEDDED_MSRV.get(name, EXPECTED_MSRV)
|
||||||
|
if package["rust_version"] != expected_msrv:
|
||||||
fail(
|
fail(
|
||||||
f"{name} must declare Rust {EXPECTED_MSRV} "
|
f"{name} must declare Rust {expected_msrv} "
|
||||||
f"(found {package['rust_version']!r})"
|
f"(found {package['rust_version']!r})"
|
||||||
)
|
)
|
||||||
for dependency in package["dependencies"]:
|
for dependency in package["dependencies"]:
|
||||||
|
|||||||
Reference in new issue
Block a user