diff --git a/bindings/node/Cargo.toml b/bindings/node/Cargo.toml index 37b080d..f052fb1 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"] @@ -12,14 +12,14 @@ 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.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.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 2665cd0..74fdbee 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/README.md b/bindings/python/README.md index ba54cb5..c3ba317 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 diff --git a/bindings/python/src/radio/types.rs b/bindings/python/src/radio/types.rs index 90f1ea0..2027b9b 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/rf24-rs/Cargo.toml b/crates/rf24-rs/Cargo.toml index 9bf5db6..e9f1da0 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 e91845a..d37c44e 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" @@ -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 dd36611..587c840 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"]