mirror of
https://github.com/ratspeak/rsReticulum
synced 2026-11-22 23:10:33 +00:00
release: consolidate pending API changes into 1.3.0
This commit is contained in:
1 parent
1ff0134979
commit
032c3fd6d3
11 files changed
+180
-195
No files matched your search
@@ -114,5 +114,9 @@ jobs:
|
||||
- uses: softprops/action-gh-release@3d0d9888cb7fd7b750713d6e236d1fcb99157228 # v3
|
||||
with:
|
||||
tag_name: ${{ env.RELEASE_TAG }}
|
||||
name: ${{ env.RELEASE_TAG }}
|
||||
body: ""
|
||||
generate_release_notes: false
|
||||
append_body: false
|
||||
prerelease: ${{ contains(env.RELEASE_TAG, '-') }}
|
||||
files: release-assets/*
|
||||
+16
-49
@@ -2,66 +2,33 @@
|
||||
|
||||
## Unreleased
|
||||
|
||||
## 1.3.0 - 2026-10-12
|
||||
|
||||
### Added
|
||||
|
||||
- Added Link bind-readiness polling so applications can start sending as soon as the transport is ready.
|
||||
|
||||
### Fixed and improved
|
||||
|
||||
- Updated btleplug to 0.13.4, including upstream Windows discovery and reconnect fixes. Windows can try an explicitly configured RNode MAC or an eligible remembered BLE Peer absent from scan results, with bounded GATT setup, existing backoff and signed peer identity checks.
|
||||
- Represent unknown discovery latitude, longitude, and height independently as `None` instead of zero, accept Python nil coordinates, and preserve presence through configuration, storage, and `rnstatus-rs`.
|
||||
- Register and own the interface-discovery destination, advance publication intervals only after driver admission, and preserve pending announcements across bounded backpressure and reconnect.
|
||||
- Keep learned mesh announcements out of ordinary RNode control/data backlogs until the final writer can send them, while preserving same-radio relay and announce pacing.
|
||||
- Retain refused local announcements and attached path answers under bounded ownership tied to the exact interface generation.
|
||||
- Preserve multiple recursive-discovery requesters, slow-radio deadlines, interface replacement safety, and hidden-peer same-radio responses without letting one cancellation affect another requester.
|
||||
- Updated btleplug to 0.13.4, including upstream Windows discovery and reconnect fixes. Windows can try an explicitly configured RNode MAC or an eligible remembered BLE Peer absent from scan results, with bounded GATT setup, existing backoff, and signed peer identity checks.
|
||||
- Installed desktop BLE notification receivers before subscribing and limited packet fragments to the negotiated ATT payload.
|
||||
|
||||
- Improved Bluetooth Peer packet sizing and flow control, including Apple write handling and queued sends.
|
||||
- Fixed a remotely triggerable Link panic when a peer reported an infinite, NaN, negative or oversized RTT. Peer RTTs now follow Python's `max()` handling and saturate at the 720-second stale window, so keepalive and stale timing match Python RNS; initiators ignore LRRTT as Python does.
|
||||
- Fixed a remotely triggerable Link panic when a peer reported an infinite, NaN, negative, or oversized RTT. Peer RTTs follow Python's handling and saturate at the 720-second stale window; initiators ignore LRRTT as Python does.
|
||||
- Require the corrected Windows socket backend so spawned helper processes cannot keep network listeners alive after the owning runtime shuts down.
|
||||
- Match Python RNS 1.4.2 Channel receive-window admission by dropping sequence numbers more than 48 slots ahead until a retry falls inside the window.
|
||||
- Report the bundled `rnsh` compatibility level as 0.3.0 and the `rnsd-rs` interactive compatibility level as RNS 1.4.2.
|
||||
|
||||
### Build and compatibility
|
||||
|
||||
- Raised the full Rust workspace minimum compiler to Rust 1.89. Apple native BLE bindings now declare their required features explicitly. Android consumers must use btleplug's matching 0.13.4 Java bridge and JNI 0.22 initialization.
|
||||
|
||||
|
||||
|
||||
## 1.4.0 - 2026-10-12
|
||||
|
||||
Source candidate; a versioned source change does not publish a release tag.
|
||||
|
||||
- Represent unknown discovery latitude, longitude and height independently as
|
||||
`None` instead of zero; accept Python nil coordinates and preserve presence
|
||||
through configuration, storage and `rnstatus-rs`. This is a deliberate Rust
|
||||
API change: see the [1.4 migration guide](api/migrations/1.4.md).
|
||||
- Register and own the interface-discovery destination, and commit publication
|
||||
intervals only after actual driver admission. Preserve pending discovery
|
||||
announcements across bounded egress backpressure and reconnect.
|
||||
- Keep learned mesh announcements out of the ordinary RNode control/data
|
||||
backlog until the final writer can send them. Preserve same-radio relay,
|
||||
nominal announce pacing and complete-packet flow control. Retain refused
|
||||
local announces and attached path answers under finite, generation-specific
|
||||
admission ownership.
|
||||
|
||||
## 1.3.0 - 2026-09-10
|
||||
|
||||
- Breaking Rust API: recursive discovery now has one private operation owner.
|
||||
`DiscoveryPathRequest` is a detached snapshot with all live requester
|
||||
registrations, not a mutable single-requester record. Advanced actor owners
|
||||
use validated request/join and exact cancellation methods. See
|
||||
[the 1.3 migration guide](api/migrations/1.3.md).
|
||||
- Preserve bounded multi-requester discovery, slow-radio deadlines, interface
|
||||
replacement safety and hidden-peer same-radio responses. Cancellation cannot
|
||||
affect another requester or revive queued bytes from a retired operation.
|
||||
- Project minor versions may include breaking APIs. First-party dependencies
|
||||
select the 1.3 line explicitly; immutable source pins remain authoritative.
|
||||
- Require the corrected Windows socket backend so spawned helper processes
|
||||
cannot keep network listeners alive after the owning runtime shuts down.
|
||||
|
||||
- Match Python RNS 1.4.2 Channel receive-window admission by dropping sequence
|
||||
numbers more than 48 slots ahead until a retry falls inside the window.
|
||||
- Report the bundled `rnsh` compatibility level as 0.3.0, matching RNS 1.4.2;
|
||||
the wire protocol remains version 1 and the authenticated session hardening
|
||||
was already implemented.
|
||||
- Report RNS 1.4.2 from the `rnsd-rs` interactive compatibility console instead
|
||||
of the superseded 1.3.8 floor.
|
||||
- Promote exact Python RNS 1.4.2 from a selected current-reference lane to the
|
||||
complete release baseline, including live interop, source oracles, utility
|
||||
vectors, and regenerated corpus provenance; RNS 1.5.0 remains deferred.
|
||||
- Discovery coordinates now use `Option<f64>`, and recursive discovery exposes detached observations and exact requester cancellation instead of public mutable state. Both source-breaking changes are covered by the [1.3 migration guide](api/migrations/1.3.md).
|
||||
- Project minor versions may include breaking APIs. Select `~1.3.0` or an exact reviewed source revision when adopting this release line.
|
||||
- Raised the full Rust workspace minimum compiler to Rust 1.89. Apple native BLE bindings declare their required features explicitly; Android consumers must use btleplug's matching 0.13.4 Java bridge and JNI 0.22 initialization.
|
||||
- Promote exact Python RNS 1.4.2 to the complete release baseline, including live interoperability, source oracles, utility vectors, and corpus provenance. RNS 1.5.0 remains deferred.
|
||||
|
||||
## 1.2.0 - 2026-08-17
|
||||
|
||||
|
||||
Generated
+10
-10
@@ -1624,7 +1624,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-crypto"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"aes",
|
||||
"cbc",
|
||||
@@ -1645,7 +1645,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-identity"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"proptest",
|
||||
@@ -1664,7 +1664,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-interface"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"bluer",
|
||||
"btleplug",
|
||||
@@ -1697,7 +1697,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-link"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"proptest",
|
||||
@@ -1713,7 +1713,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-protocol"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"bzip2",
|
||||
"hex",
|
||||
@@ -1730,7 +1730,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-ratkey"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"aes",
|
||||
"bip39",
|
||||
@@ -1756,7 +1756,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-runtime"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"hex",
|
||||
@@ -1783,7 +1783,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-tools"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"base64",
|
||||
"bytes",
|
||||
@@ -1810,7 +1810,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-transport"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"hex",
|
||||
@@ -1830,7 +1830,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-wire"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"proptest",
|
||||
"rns-crypto",
|
||||
|
||||
+10
-10
@@ -14,7 +14,7 @@ members = [
|
||||
]
|
||||
|
||||
[workspace.package]
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
edition = "2024"
|
||||
license = "AGPL-3.0-or-later"
|
||||
rust-version = "1.89"
|
||||
@@ -80,12 +80,12 @@ nix = { version = "0.29", features = ["term", "fs"] }
|
||||
proptest = "1"
|
||||
|
||||
# Workspace crates
|
||||
rns-crypto = { path = "crates/rns-crypto", version = "~1.4.0", default-features = false }
|
||||
rns-wire = { path = "crates/rns-wire", version = "~1.4.0", default-features = false }
|
||||
rns-identity = { path = "crates/rns-identity", version = "~1.4.0" }
|
||||
rns-transport = { path = "crates/rns-transport", version = "~1.4.0" }
|
||||
rns-link = { path = "crates/rns-link", version = "~1.4.0" }
|
||||
rns-protocol = { path = "crates/rns-protocol", version = "~1.4.0" }
|
||||
rns-interface = { path = "crates/rns-interface", version = "~1.4.0" }
|
||||
rns-runtime = { path = "crates/rns-runtime", version = "~1.4.0" }
|
||||
rns-ratkey = { path = "crates/rns-ratkey", version = "~1.4.0" }
|
||||
rns-crypto = { path = "crates/rns-crypto", version = "~1.3.0", default-features = false }
|
||||
rns-wire = { path = "crates/rns-wire", version = "~1.3.0", default-features = false }
|
||||
rns-identity = { path = "crates/rns-identity", version = "~1.3.0" }
|
||||
rns-transport = { path = "crates/rns-transport", version = "~1.3.0" }
|
||||
rns-link = { path = "crates/rns-link", version = "~1.3.0" }
|
||||
rns-protocol = { path = "crates/rns-protocol", version = "~1.3.0" }
|
||||
rns-interface = { path = "crates/rns-interface", version = "~1.3.0" }
|
||||
rns-runtime = { path = "crates/rns-runtime", version = "~1.3.0" }
|
||||
rns-ratkey = { path = "crates/rns-ratkey", version = "~1.3.0" }
|
||||
+6
-8
@@ -71,14 +71,12 @@ AutoInterface's interoperable UDP ports or alter Reticulum wire formats.
|
||||
|
||||
## Stability
|
||||
|
||||
The 1.4 line changes the six discovery coordinate fields to `Option<f64>` so
|
||||
unknown values remain distinct from real zero. See the
|
||||
[1.4 migration guide](migrations/1.4.md) for source, wire and storage behavior.
|
||||
|
||||
The 1.3 line deliberately replaces publicly mutable recursive discovery state
|
||||
with detached observations and exact requester cancellation. See the
|
||||
[1.3 migration guide](migrations/1.3.md). Normal runtime lookup/recovery APIs
|
||||
remain unchanged. Project minor releases can include breaking API changes;
|
||||
The 1.3 line changes the six discovery coordinate fields to `Option<f64>` so
|
||||
unknown values remain distinct from real zero. It also replaces publicly mutable
|
||||
recursive discovery state with detached observations and exact requester
|
||||
cancellation. See the [1.3 migration guide](migrations/1.3.md) for both changes
|
||||
and their source, wire, and storage behavior. Normal runtime lookup/recovery
|
||||
APIs remain unchanged. Project minor releases can include breaking API changes;
|
||||
select an explicit compatible dependency line or reviewed immutable source pin.
|
||||
|
||||
Applications that own retry policy can obtain
|
||||
|
||||
Generated
+8
-8
@@ -1176,7 +1176,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-crypto"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"aes",
|
||||
"cbc",
|
||||
@@ -1194,7 +1194,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-identity"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"rand",
|
||||
@@ -1212,7 +1212,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-interface"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"bluer",
|
||||
"btleplug",
|
||||
@@ -1245,7 +1245,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-link"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"rand",
|
||||
@@ -1260,7 +1260,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-protocol"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"bzip2",
|
||||
"hex",
|
||||
@@ -1276,7 +1276,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-runtime"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"hex",
|
||||
@@ -1303,7 +1303,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-transport"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"bytes",
|
||||
"hex",
|
||||
@@ -1322,7 +1322,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rns-wire"
|
||||
version = "1.4.0"
|
||||
version = "1.3.0"
|
||||
dependencies = [
|
||||
"rns-crypto",
|
||||
"sha2",
|
||||
|
||||
+61
-2
@@ -1,11 +1,15 @@
|
||||
# Migrating discovery ownership to 1.3
|
||||
# Migrating to rsReticulum 1.3
|
||||
|
||||
Version 1.3 combines two discovery API changes since the published 1.2 release:
|
||||
owned recursive discovery operations and independently optional interface
|
||||
coordinates. Both changes belong to this release.
|
||||
|
||||
This project's version convention permits breaking Rust APIs in a minor release.
|
||||
Version 1.3 is not source-compatible with direct mutation of the 1.2 discovery
|
||||
map. Cargo's default caret requirement `"1.2"` permits 1.3; use an explicit
|
||||
compatible line (for example `"~1.3.0"`) or an exact reviewed Git revision.
|
||||
Existing external dependency requirements cannot be changed retroactively.
|
||||
No packet, signature, RPC, persistence or AutoInterface port format changes.
|
||||
Packet, signature, RPC, and AutoInterface port formats remain unchanged.
|
||||
|
||||
Normal applications keep runtime `request_path`, finite destination resolution
|
||||
and `PathRecoveryHandle`. They do not need this advanced actor API.
|
||||
@@ -55,3 +59,58 @@ Use the compiled external fixture's `recursive_discovery` module as an example.
|
||||
No shared IPC/JNI or application UI is added by this change. Package stability
|
||||
classifications remain provisional; the compatibility gate records exactly the
|
||||
approved removals and continues rejecting unrelated API loss.
|
||||
|
||||
## Interface discovery coordinates
|
||||
|
||||
The six public `latitude`, `longitude`, and `height` fields in `DiscoveryInfo`
|
||||
and `DiscoveryInterfaceConfig` change from `f64` to `Option<f64>`, including the
|
||||
re-export of `DiscoveryInterfaceConfig` from `rns_transport::discovery`.
|
||||
|
||||
Unknown coordinates are `None`; known coordinates, including zero, are `Some`.
|
||||
The components are independent, so a known latitude and longitude do not imply
|
||||
a known height. `Default` and discovery convenience constructors leave them
|
||||
unknown. Update struct literals and assignments accordingly:
|
||||
|
||||
```rust,ignore
|
||||
// Before
|
||||
config.latitude = 0.0;
|
||||
config.longitude = -105.0;
|
||||
config.height = 0.0;
|
||||
|
||||
// After: latitude is genuinely zero; height is unknown.
|
||||
config.latitude = Some(0.0);
|
||||
config.longitude = Some(-105.0);
|
||||
config.height = None;
|
||||
```
|
||||
|
||||
Consumers should match the options or use `if let Some(value)` when displaying
|
||||
or using a component. Do not use `unwrap_or(0.0)` to turn an unknown location
|
||||
into a real map position. This change does not add new coordinate range rules.
|
||||
|
||||
## Wire, configuration, and storage
|
||||
|
||||
The discovery map retains its existing keys. An unknown component is encoded
|
||||
as MessagePack `nil`, matching Python Reticulum; a known component remains a
|
||||
number. Missing configuration leaves a component unknown, while an explicit
|
||||
zero remains known. Existing configuration key precedence and units are retained.
|
||||
No new wire protocol version or storage directory is required.
|
||||
|
||||
The Rust decoder continues accepting integer coordinates and missing coordinate
|
||||
keys as a leniency: integers become `Some`, and missing values become `None`.
|
||||
Those forms are not a claim of strict Python validation parity. Valid Python
|
||||
`nil`, partial-coordinate, and floating-point records are supported.
|
||||
|
||||
Existing numeric discovery records remain numeric on disk reload. Old stored
|
||||
zero cannot reveal whether it was deliberately configured or produced by the
|
||||
previous defaulting behavior, so it is preserved as `Some(0.0)`. A fresh valid
|
||||
announcement can replace it. Records containing `nil` or absent location keys
|
||||
load as `None`. Downgrading to older Rust versions loses this distinction:
|
||||
those versions coerce stored unknown components to zero.
|
||||
|
||||
`rnstatus-rs` represents unknown components as JSON `null`; text output uses
|
||||
presence instead of treating zero as absent. This does not change an embedding
|
||||
application's separate map display or location-sharing policy.
|
||||
|
||||
The historical API compatibility floor is retained. The exact removal ledger
|
||||
contains three recursive-ownership paths and nine coordinate paths for six
|
||||
fields because three are also re-exported. No unrelated removals are authorized.
|
||||
@@ -1,64 +0,0 @@
|
||||
# Migrating to rsReticulum 1.4
|
||||
|
||||
Version 1.4 deliberately changes six public discovery coordinate fields from
|
||||
`f64` to `Option<f64>`. The three fields `latitude`, `longitude`, and `height`
|
||||
change in both `DiscoveryInfo` and `DiscoveryInterfaceConfig`, including the
|
||||
re-export of `DiscoveryInterfaceConfig` from `rns_transport::discovery`.
|
||||
Use `~1.4.0` or an exact reviewed revision when selecting this source-compatible
|
||||
release line. Cargo's ordinary `1.3` caret range also permits 1.4; it does not
|
||||
protect callers from this project's explicitly reviewed API migration.
|
||||
|
||||
## Representing a location
|
||||
|
||||
Unknown coordinates are `None`; known coordinates, including zero, are `Some`.
|
||||
The components are independent, so a known latitude and longitude do not imply
|
||||
a known height. `Default` and discovery convenience constructors leave them
|
||||
unknown. Update struct literals and assignments accordingly:
|
||||
|
||||
```rust,ignore
|
||||
// Before
|
||||
config.latitude = 0.0;
|
||||
config.longitude = -105.0;
|
||||
config.height = 0.0;
|
||||
|
||||
// After: latitude is genuinely zero; height is unknown.
|
||||
config.latitude = Some(0.0);
|
||||
config.longitude = Some(-105.0);
|
||||
config.height = None;
|
||||
```
|
||||
|
||||
Consumers should match the options or use `if let Some(value)` when displaying
|
||||
or using a component. Do not use `unwrap_or(0.0)` to turn an unknown location
|
||||
into a real map position. This change does not add new coordinate range rules.
|
||||
|
||||
## Wire, configuration and storage
|
||||
|
||||
The discovery map retains its existing keys. An unknown component is encoded
|
||||
as MessagePack `nil`, matching Python Reticulum; a known component remains a
|
||||
number. Missing configuration leaves a component unknown, while an explicit
|
||||
zero remains known. Existing configuration key precedence and units are retained.
|
||||
No new wire protocol version or storage directory is required.
|
||||
|
||||
The Rust decoder continues accepting integer coordinates and missing coordinate
|
||||
keys as a leniency: integers become `Some`, and missing values become `None`.
|
||||
Those forms are not a claim of strict Python validation parity. Valid Python
|
||||
`nil`, partial-coordinate and floating-point records are supported.
|
||||
|
||||
Existing numeric discovery records remain numeric on disk reload. Old stored
|
||||
zero cannot reveal whether it was deliberately configured or produced by the
|
||||
previous defaulting behavior, so it is preserved as `Some(0.0)`. A fresh valid
|
||||
announcement can replace it. Records containing `nil` or absent location keys
|
||||
load as `None`. Downgrading to older Rust versions loses this distinction:
|
||||
those versions coerce stored unknown components to zero.
|
||||
|
||||
`rnstatus-rs` represents unknown components as JSON `null`; text output uses
|
||||
presence instead of treating zero as absent. This does not change an embedding
|
||||
application's separate map display or location-sharing policy.
|
||||
|
||||
## Retained migration history
|
||||
|
||||
The [1.3 discovery ownership migration](1.3.md) still applies to consumers
|
||||
upgrading from older releases. Version 1.4 retains those exact reviewed changes
|
||||
and the historical API compatibility floor. The compatibility metadata lists
|
||||
nine changed field paths for the six fields because three are also re-exported;
|
||||
no additional unrelated API removals are authorized.
|
||||
@@ -4,7 +4,7 @@
|
||||
"packages": [
|
||||
{
|
||||
"name": "rns-crypto",
|
||||
"version": "1.4.0",
|
||||
"version": "1.3.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -173,7 +173,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-identity",
|
||||
"version": "1.4.0",
|
||||
"version": "1.3.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {},
|
||||
@@ -239,7 +239,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -252,7 +252,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -336,7 +336,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-interface",
|
||||
"version": "1.4.0",
|
||||
"version": "1.3.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -452,7 +452,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -465,7 +465,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -476,7 +476,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -487,7 +487,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -696,7 +696,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-link",
|
||||
"version": "1.4.0",
|
||||
"version": "1.3.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -759,7 +759,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [],
|
||||
@@ -770,7 +770,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -781,7 +781,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [],
|
||||
@@ -826,7 +826,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-protocol",
|
||||
"version": "1.4.0",
|
||||
"version": "1.3.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {},
|
||||
@@ -892,7 +892,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -905,7 +905,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -916,7 +916,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -963,7 +963,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-ratkey",
|
||||
"version": "1.4.0",
|
||||
"version": "1.3.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -1078,7 +1078,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -1091,7 +1091,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1197,7 +1197,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-runtime",
|
||||
"version": "1.4.0",
|
||||
"version": "1.3.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -1312,7 +1312,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -1325,7 +1325,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1336,7 +1336,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1347,7 +1347,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1358,7 +1358,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1369,7 +1369,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1380,7 +1380,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -1475,7 +1475,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-tools",
|
||||
"version": "1.4.0",
|
||||
"version": "1.3.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -1586,7 +1586,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -1599,7 +1599,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1610,7 +1610,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1621,7 +1621,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": true,
|
||||
"defaultFeatures": true,
|
||||
"features": [
|
||||
@@ -1634,7 +1634,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [
|
||||
@@ -1647,7 +1647,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1658,7 +1658,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -1751,7 +1751,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-transport",
|
||||
"version": "1.4.0",
|
||||
"version": "1.3.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -1831,7 +1831,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -1844,7 +1844,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": true,
|
||||
"features": [],
|
||||
@@ -1855,7 +1855,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [
|
||||
@@ -1926,7 +1926,7 @@
|
||||
},
|
||||
{
|
||||
"name": "rns-wire",
|
||||
"version": "1.4.0",
|
||||
"version": "1.3.0",
|
||||
"rustVersion": "1.89",
|
||||
"edition": "2024",
|
||||
"features": {
|
||||
@@ -1955,7 +1955,7 @@
|
||||
"rename": null,
|
||||
"kind": null,
|
||||
"target": null,
|
||||
"requirement": "~1.4.0",
|
||||
"requirement": "~1.3.0",
|
||||
"optional": false,
|
||||
"defaultFeatures": false,
|
||||
"features": [],
|
||||
|
||||
+2
-2
@@ -110,8 +110,8 @@
|
||||
}
|
||||
],
|
||||
"approvedBreakingChanges": {
|
||||
"releaseLine": "1.4",
|
||||
"migrationGuide": "api/migrations/1.4.md",
|
||||
"releaseLine": "1.3",
|
||||
"migrationGuide": "api/migrations/1.3.md",
|
||||
"removed": {
|
||||
"rns-transport": [
|
||||
"pub rns_transport::actor::DiscoveryPathRequest::requesting_interface: rns_transport::messages::InterfaceId",
|
||||
|
||||
@@ -84,6 +84,25 @@ def check_release_workflow() -> None:
|
||||
if "ref: ${{ env.RELEASE_TAG }}" not in workflow:
|
||||
fail("release workflow does not check out RELEASE_TAG")
|
||||
|
||||
publishers = re.findall(
|
||||
r"^ - uses: softprops/action-gh-release@[0-9a-f]{40}[^\n]*\n"
|
||||
r" with:\n((?: [^\n]*\n)+)",
|
||||
workflow,
|
||||
re.MULTILINE,
|
||||
)
|
||||
if len(publishers) != 1:
|
||||
fail("release workflow must have one explicit GitHub publisher")
|
||||
inputs = dict(re.findall(r"^ ([a-z_]+): (.*)$", publishers[0], re.MULTILINE))
|
||||
expected = {
|
||||
"tag_name": "${{ env.RELEASE_TAG }}",
|
||||
"name": "${{ env.RELEASE_TAG }}",
|
||||
"body": '""',
|
||||
"generate_release_notes": "false",
|
||||
"append_body": "false",
|
||||
}
|
||||
if any(inputs.get(key) != value for key, value in expected.items()) or "body_path" in inputs:
|
||||
fail("GitHub releases must use the exact version tag as title and an empty body")
|
||||
|
||||
release_builds = [
|
||||
line.strip()
|
||||
for line in workflow.splitlines()
|
||||
@@ -113,6 +132,8 @@ def check_documentation(version: str) -> None:
|
||||
|
||||
|
||||
def check_release_tag(release_tag: str, version: str) -> None:
|
||||
if not re.fullmatch(r"v\d+\.\d+\.\d+", release_tag):
|
||||
fail("release tags must have the form vX.Y.Z")
|
||||
expected_tag = f"v{version}"
|
||||
if release_tag != expected_tag:
|
||||
fail(f"release tag {release_tag!r} does not match {expected_tag!r}")
|
||||
|
||||
Reference in new issue
Block a user