Skip to content

Commit 370a874

Browse files
committed
Update dependencies and raise MSRV
1 parent cbbec45 commit 370a874

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
# All published crates must build on stable.
15-
rust: [stable, beta, 1.40.0]
15+
rust: [stable, beta, 1.46.0]
1616

1717
# The default target we're compiling on and for.
1818
TARGET: [x86_64-unknown-linux-gnu, x86_64-unknown-linux-musl]

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
## Not yet released
44

5-
- Nix bumped to 0.20
6-
- Minimum supported rust version is now 1.40.0
5+
[Full Changelog](https://github.com/rust-embedded/rust-spidev/compare/0.4.1...HEAD)
6+
7+
- Nix bumped to 0.22
8+
- bitflags updated to 1.3
9+
- Minimum supported rust version is now 1.46.0
710

811
## 0.4.1 / 2021-02-21
912

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ half-duplex SPI access, and full-duplex SPI access.
1717

1818
[dependencies]
1919
libc = "0.2"
20-
bitflags = "1.0"
21-
nix = "0.20"
20+
bitflags = "1.3"
21+
nix = "0.22"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The following features are implemented and planned for the library:
7676

7777
## Minimum Supported Rust Version (MSRV)
7878

79-
This crate is guaranteed to compile on stable Rust 1.40 and up. It *might*
79+
This crate is guaranteed to compile on stable Rust 1.46 and up. It *might*
8080
compile with older versions but that may change in any new patch release.
8181

8282
## Cross Compiling

src/spidevioctl.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,10 @@ use std::io;
1313
use std::marker::PhantomData;
1414
use std::os::unix::prelude::*;
1515

16-
fn from_nix_error(err: ::nix::Error) -> io::Error {
17-
io::Error::from_raw_os_error(
18-
err.as_errno()
19-
.unwrap_or_else(|| nix::errno::Errno::UnknownErrno) as i32,
20-
)
21-
}
22-
2316
fn from_nix_result<T>(res: ::nix::Result<T>) -> io::Result<T> {
2417
match res {
2518
Ok(r) => Ok(r),
26-
Err(err) => Err(from_nix_error(err)),
19+
Err(err) => Err(err.into()),
2720
}
2821
}
2922

0 commit comments

Comments
 (0)