From 5be323ab684e6f4c65010300da21367abc9c12eb Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Mon, 10 Nov 2025 22:42:21 -0800 Subject: [PATCH 1/4] build(deps): bump cargo group with 5 updates also satisfy linter warning about unused code in python binding for non-Linux targets. --- bindings/node/Cargo.toml | 6 +++--- bindings/python/Cargo.toml | 4 ++-- bindings/python/src/radio/types.rs | 1 + crates/rf24ble-rs/Cargo.toml | 2 +- examples/rust/Cargo.toml | 4 ++-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/bindings/node/Cargo.toml b/bindings/node/Cargo.toml index 37b080d0..c0eb8d8c 100644 --- a/bindings/node/Cargo.toml +++ b/bindings/node/Cargo.toml @@ -12,8 +12,8 @@ crate-type = ["cdylib"] [dependencies] embedded-hal = "1.0.0" # Default `napi` features: see https://nodejs.org/api/n-api.html#node-api-version-matrix -napi = "3.1.3" -napi-derive = "3.1.1" +napi = "3.3.0" +napi-derive = "3.2.5" rf24-rs = { path = "../../crates/rf24-rs", features = ["std"] } rf24ble-rs = { path = "../../crates/rf24ble-rs", features = ["std"] } @@ -21,5 +21,5 @@ rf24ble-rs = { path = "../../crates/rf24ble-rs", features = ["std"] } napi-build = "2.2.3" [target.'cfg(target_os = "linux")'.dependencies] -linux-embedded-hal = {version = "0.4.0", default-features = false, features = ["gpio_cdev", "spi"]} +linux-embedded-hal = {version = "0.4.1", default-features = false, features = ["gpio_cdev", "spi"]} nix = { version = "0.30.1", features = ["time"]} diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml index 2665cd0a..74fdbeeb 100644 --- a/bindings/python/Cargo.toml +++ b/bindings/python/Cargo.toml @@ -14,10 +14,10 @@ crate-type = ["cdylib"] [dependencies] embedded-hal = "1.0.0" -pyo3 = {version = "0.26.0", features = ["extension-module", "abi3-py39"]} +pyo3 = {version = "0.27.1", features = ["extension-module", "abi3-py39"]} rf24-rs = { path = "../../crates/rf24-rs", features = ["std"]} rf24ble-rs = { path = "../../crates/rf24ble-rs", features = ["std"] } [target.'cfg(target_os = "linux")'.dependencies] -linux-embedded-hal = {version = "0.4.0", default-features = false, features = ["gpio_cdev", "spi"]} +linux-embedded-hal = {version = "0.4.1", default-features = false, features = ["gpio_cdev", "spi"]} nix = { version = "0.30.1", features = ["time"]} diff --git a/bindings/python/src/radio/types.rs b/bindings/python/src/radio/types.rs index 90f1ea0d..2027b9bc 100644 --- a/bindings/python/src/radio/types.rs +++ b/bindings/python/src/radio/types.rs @@ -187,6 +187,7 @@ pub enum FifoState { Occupied, } +#[cfg(target_os = "linux")] impl FifoState { pub fn into_inner(self) -> rf24::FifoState { match self { diff --git a/crates/rf24ble-rs/Cargo.toml b/crates/rf24ble-rs/Cargo.toml index e91845a4..383c2be4 100644 --- a/crates/rf24ble-rs/Cargo.toml +++ b/crates/rf24ble-rs/Cargo.toml @@ -20,7 +20,7 @@ bitfield-struct = "0.9.5" embedded-hal = "1.0.0" [dev-dependencies] -embedded-hal-mock = "0.11.1" +embedded-hal-mock = {git = "https://github.com/2bndy5/embedded-hal-mock.git", branch = "dev"} [features] std = [] diff --git a/examples/rust/Cargo.toml b/examples/rust/Cargo.toml index dd366116..587c8405 100644 --- a/examples/rust/Cargo.toml +++ b/examples/rust/Cargo.toml @@ -11,8 +11,8 @@ name = "rf24_rs_examples" rf24-rs = {path = "../../crates/rf24-rs", version = "0.3.1"} rf24ble-rs = {path = "../../crates/rf24ble-rs", version = "0.1.4"} embedded-hal = "1.0.0" -anyhow = {version = "1.0.98", default-features = false} -linux-embedded-hal = {version = "0.4.0", optional = true, default-features = false, features = ["gpio_cdev", "spi"]} +anyhow = {version = "1.0.100", default-features = false} +linux-embedded-hal = {version = "0.4.1", optional = true, default-features = false, features = ["gpio_cdev", "spi"]} [features] default = ["linux"] From 75f824eecc2aa38a72cdbd3f2b40d5dcc8a249f2 Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Tue, 11 Nov 2025 03:54:02 -0800 Subject: [PATCH 2/4] doc: remove rogue incomplete sentence --- bindings/python/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/bindings/python/README.md b/bindings/python/README.md index ba54cb5f..c3ba317a 100644 --- a/bindings/python/README.md +++ b/bindings/python/README.md @@ -37,7 +37,6 @@ uv sync ``` Append `--no-dev` (or set `UV_NO_DEV=1` environment variable) for environments with limited disk space (eg. Raspberry Pi machine). -As of [uv] v0.8.7, the environment variable [uv]: https://docs.astral.sh/uv From dfe8e4d0fc512864bce8ac95867097cd505877d8 Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Tue, 11 Nov 2025 04:12:02 -0800 Subject: [PATCH 3/4] bump napi-rs deps in node binding --- bindings/node/Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/node/Cargo.toml b/bindings/node/Cargo.toml index c0eb8d8c..7a3a4d25 100644 --- a/bindings/node/Cargo.toml +++ b/bindings/node/Cargo.toml @@ -12,13 +12,13 @@ crate-type = ["cdylib"] [dependencies] embedded-hal = "1.0.0" # Default `napi` features: see https://nodejs.org/api/n-api.html#node-api-version-matrix -napi = "3.3.0" -napi-derive = "3.2.5" +napi = "3.5.2" +napi-derive = "3.3.3" rf24-rs = { path = "../../crates/rf24-rs", features = ["std"] } rf24ble-rs = { path = "../../crates/rf24ble-rs", features = ["std"] } [build-dependencies] -napi-build = "2.2.3" +napi-build = "2.3.1" [target.'cfg(target_os = "linux")'.dependencies] linux-embedded-hal = {version = "0.4.1", default-features = false, features = ["gpio_cdev", "spi"]} From 562c0b419699a50a17c9c1edcf9d5f00abc0fcaa Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Tue, 11 Nov 2025 04:12:29 -0800 Subject: [PATCH 4/4] update MSRV for all crates --- bindings/node/Cargo.toml | 2 +- crates/rf24-rs/Cargo.toml | 2 +- crates/rf24ble-rs/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/node/Cargo.toml b/bindings/node/Cargo.toml index 7a3a4d25..f052fb18 100644 --- a/bindings/node/Cargo.toml +++ b/bindings/node/Cargo.toml @@ -4,7 +4,7 @@ version = "0.3.3" repository.workspace = true edition.workspace = true license.workspace = true -rust-version = "1.80" +rust-version = "1.88" [lib] crate-type = ["cdylib"] diff --git a/crates/rf24-rs/Cargo.toml b/crates/rf24-rs/Cargo.toml index 9bf5db66..e9f1da09 100644 --- a/crates/rf24-rs/Cargo.toml +++ b/crates/rf24-rs/Cargo.toml @@ -9,7 +9,7 @@ homepage.workspace = true exclude = [".github/", "codecov.yml", "docs", "examples"] keywords = ["nrf24l01", "wireless", "transceiver", "embedded", "RF24"] categories = ["embedded", "no-std"] -rust-version = "1.65" +rust-version = "1.68" [lib] name = "rf24" diff --git a/crates/rf24ble-rs/Cargo.toml b/crates/rf24ble-rs/Cargo.toml index 383c2be4..d37c44ee 100644 --- a/crates/rf24ble-rs/Cargo.toml +++ b/crates/rf24ble-rs/Cargo.toml @@ -9,7 +9,7 @@ license.workspace = true exclude = [".github/", "codecov.yml", "docs", "examples"] keywords = ["nrf24l01", "wireless", "transceiver", "embedded", "BLE"] categories = ["embedded", "no-std"] -rust-version = "1.65" +rust-version = "1.68" [lib] name = "rf24ble"