Skip to content

Commit fa6a085

Browse files
committed
Update dependencies and set MSRV to 1.65.0
1 parent c1113fb commit fa6a085

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- 'async-tokio,gpio_cdev,gpio_sysfs,i2c,spi'
2323

2424
include:
25-
- rust: 1.60.0 # MSRV
25+
- rust: 1.65.0 # MSRV
2626
target: x86_64-unknown-linux-gnu
2727

2828
# Test nightly but don't fail

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
2020
- Updated to `embedded-hal-nb` `1.0.0-rc.1` release ([API changes](https://github.com/rust-embedded/embedded-hal/blob/master/embedded-hal-nb/CHANGELOG.md#v100-rc1---2023-08-15))
2121
- Updated to `spidev` `0.6.0` release([API changes](https://github.com/rust-embedded/rust-spidev/blob/master/CHANGELOG.md#060--2023-08-03))
2222
- Updated to `i2cdev` `0.6.0` release([API changes](https://github.com/rust-embedded/rust-i2cdev/blob/master/CHANGELOG.md#v060---2023-08-03))
23-
- Updated to `nix` `0.26` to match `i2cdev`
23+
- Updated to `gpio_cdev` `0.6.0` release([API changes](https://github.com/rust-embedded/gpio-cdev/blob/master/CHANGELOG.md#v060--2023-09-11))
24+
- Updated to `nix` `0.27.1`
25+
- MSRV is now 1.65.0.
2426

2527
### Fixed
2628
- Fix using SPI transfer with unequal buffer sizes (#97, #98).

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ default = [ "gpio_cdev", "gpio_sysfs", "i2c", "spi" ]
2424
[dependencies]
2525
embedded-hal = "=1.0.0-rc.3"
2626
embedded-hal-nb = "=1.0.0-rc.3"
27-
gpio-cdev = { version = "0.5.1", optional = true }
27+
gpio-cdev = { version = "0.6.0", optional = true }
2828
sysfs_gpio = { version = "0.6.1", optional = true }
2929
i2cdev = { version = "0.6.0", optional = true }
3030
nb = "1"
3131
serialport = { version = "4.2.0", default-features = false }
3232
spidev = { version = "0.6.0", optional = true }
33-
nix = "0.26.2"
33+
nix = "0.27.1"
3434

3535
[dev-dependencies]
3636
openpty = "0.2.0"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ With `default-features = false` you can enable the features `gpio_cdev`, `gpio_s
2929

3030
## Minimum Supported Rust Version (MSRV)
3131

32-
This crate is guaranteed to compile on stable Rust 1.60.0 and up. It *might*
32+
This crate is guaranteed to compile on stable Rust 1.65.0 and up. It *might*
3333
compile with older versions but that may change in any new patch release.
3434

3535
## License

src/cdev_pin.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,10 @@ impl CdevPin {
6969
// Drop self to free the line before re-requesting it in a new mode.
7070
std::mem::drop(self);
7171

72+
let is_active_low = output_flags.intersects(gpio_cdev::LineRequestFlags::ACTIVE_LOW);
7273
CdevPin::new(line.request(
7374
output_flags,
74-
state_to_value(
75-
state,
76-
output_flags.intersects(gpio_cdev::LineRequestFlags::ACTIVE_LOW),
77-
),
75+
state_to_value(state, is_active_low),
7876
&consumer,
7977
)?)
8078
}

0 commit comments

Comments
 (0)