File tree Expand file tree Collapse file tree 22 files changed +768
-231
lines changed Expand file tree Collapse file tree 22 files changed +768
-231
lines changed Original file line number Diff line number Diff line change 17
17
# Use a pinned version to avoid spontaneous breakages (new clippy lints are added often)
18
18
toolchain : nightly-2023-07-03
19
19
components : clippy
20
- - run : cargo clippy -- features=std -- --deny=warnings
20
+ - run : cargo clippy --all- features -- --deny=warnings
Original file line number Diff line number Diff line change 17
17
matrix :
18
18
rust :
19
19
- stable
20
- - 1.59 .0 # MSRV
20
+ - 1.60 .0 # MSRV
21
21
- nightly
22
22
target :
23
23
- x86_64-unknown-linux-gnu
@@ -28,15 +28,17 @@ jobs:
28
28
features : std
29
29
- target : x86_64-unknown-linux-gnu
30
30
features : alloc
31
-
31
+ - target : x86_64-unknown-linux-gnu
32
+ features : std,tokio-1,futures-03
33
+ rust : nightly
32
34
steps :
33
35
- uses : actions/checkout@v3
34
36
- uses : dtolnay/rust-toolchain@master
35
37
with :
36
38
toolchain : ${{ matrix.rust }}
37
39
target : ${{ matrix.target }}
38
40
39
- - run : sed -i '/nightly-only/d' Cargo.toml
41
+ - run : mv Cargo.stable.toml Cargo.toml
40
42
if : matrix.rust != 'nightly'
41
43
42
44
- run : cargo check --target=${{ matrix.target }} --features=${{ matrix.features }}
Original file line number Diff line number Diff line change
1
+ # CI moves this file to `Cargo.toml` when building for stable.
2
+
3
+ [workspace ]
4
+ resolver = " 2"
5
+
6
+ members = [
7
+ " embedded-hal" ,
8
+ " embedded-hal-nb" ,
9
+ " embedded-hal-bus" ,
10
+ " embedded-can" ,
11
+ " embedded-io" ,
12
+ " embedded-io-adapters" ,
13
+ ]
14
+
15
+ # Cargo implicitly adds path dependencies to the workspace.
16
+ # Even if they're optional and not enabled. This prevents that.
17
+ exclude = [
18
+ " embedded-hal-async" ,
19
+ " embedded-io-async" ,
20
+ ]
Original file line number Diff line number Diff line change 1
1
[workspace ]
2
2
resolver = " 2"
3
3
4
- # CI removes lines containing 'nightly-only' when not building with nightly.
5
4
members = [
6
5
" embedded-hal" ,
7
- " embedded-hal-async" , # nightly-only
6
+ " embedded-hal-async" ,
8
7
" embedded-hal-nb" ,
9
8
" embedded-hal-bus" ,
10
9
" embedded-can" ,
11
10
" embedded-io" ,
12
- " embedded-io-async" , # nightly-only
11
+ " embedded-io-async" ,
12
+ " embedded-io-adapters" ,
13
13
]
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ on crates.io.
72
72
73
73
## Minimum Supported Rust Version (MSRV)
74
74
75
- This crate is guaranteed to compile on stable Rust 1.59 and up. It * might*
75
+ This crate is guaranteed to compile on stable Rust 1.60 and up. It * might*
76
76
compile with older versions but that may change in any new patch release.
77
77
78
78
See [ here] ( docs/msrv.md ) for details on how the MSRV may be upgraded.
Original file line number Diff line number Diff line change 1
1
[ ![ crates.io] ( https://img.shields.io/crates/d/embedded-can.svg )] ( https://crates.io/crates/embedded-can )
2
2
[ ![ crates.io] ( https://img.shields.io/crates/v/embedded-can.svg )] ( https://crates.io/crates/embedded-can )
3
3
[ ![ Documentation] ( https://docs.rs/embedded-can/badge.svg )] ( https://docs.rs/embedded-can )
4
- ![ Minimum Supported Rust Version] ( https://img.shields.io/badge/rustc-1.59 +-blue.svg )
4
+ ![ Minimum Supported Rust Version] ( https://img.shields.io/badge/rustc-1.60 +-blue.svg )
5
5
6
6
# ` embedded-can `
7
7
@@ -15,7 +15,7 @@ This project is developed and maintained by the [HAL team](https://github.com/ru
15
15
16
16
## Minimum Supported Rust Version (MSRV)
17
17
18
- This crate is guaranteed to compile on stable Rust 1.59 and up. It * might*
18
+ This crate is guaranteed to compile on stable Rust 1.60 and up. It * might*
19
19
compile with older versions but that may change in any new patch release.
20
20
21
21
See [ here] ( ../docs/msrv.md ) for details on how the MSRV may be upgraded.
Original file line number Diff line number Diff line change 1
1
[ ![ crates.io] ( https://img.shields.io/crates/d/embedded-hal-bus.svg )] ( https://crates.io/crates/embedded-hal-bus )
2
2
[ ![ crates.io] ( https://img.shields.io/crates/v/embedded-hal-bus.svg )] ( https://crates.io/crates/embedded-hal-bus )
3
3
[ ![ Documentation] ( https://docs.rs/embedded-hal-bus/badge.svg )] ( https://docs.rs/embedded-hal-bus )
4
- ![ Minimum Supported Rust Version] ( https://img.shields.io/badge/rustc-1.59 +-blue.svg )
4
+ ![ Minimum Supported Rust Version] ( https://img.shields.io/badge/rustc-1.60 +-blue.svg )
5
5
6
6
# ` embedded-hal-bus `
7
7
@@ -34,7 +34,7 @@ provides mechanisms to obtain multiple `I2c` instances out of a single `I2c` ins
34
34
35
35
## Minimum Supported Rust Version (MSRV)
36
36
37
- This crate is guaranteed to compile on stable Rust 1.59 and up. It * might*
37
+ This crate is guaranteed to compile on stable Rust 1.60 and up. It * might*
38
38
compile with older versions but that may change in any new patch release.
39
39
40
40
See [ here] ( ../docs/msrv.md ) for details on how the MSRV may be upgraded.
Original file line number Diff line number Diff line change 1
1
[ ![ crates.io] ( https://img.shields.io/crates/d/embedded-hal-nb.svg )] ( https://crates.io/crates/embedded-hal-nb )
2
2
[ ![ crates.io] ( https://img.shields.io/crates/v/embedded-hal-nb.svg )] ( https://crates.io/crates/embedded-hal-nb )
3
3
[ ![ Documentation] ( https://docs.rs/embedded-hal-nb/badge.svg )] ( https://docs.rs/embedded-hal-nb )
4
- ![ Minimum Supported Rust Version] ( https://img.shields.io/badge/rustc-1.59 +-blue.svg )
4
+ ![ Minimum Supported Rust Version] ( https://img.shields.io/badge/rustc-1.60 +-blue.svg )
5
5
6
6
# ` embedded-hal-nb `
7
7
@@ -17,7 +17,7 @@ This project is developed and maintained by the [HAL team](https://github.com/ru
17
17
18
18
## Minimum Supported Rust Version (MSRV)
19
19
20
- This crate is guaranteed to compile on stable Rust 1.59 and up. It * might*
20
+ This crate is guaranteed to compile on stable Rust 1.60 and up. It * might*
21
21
compile with older versions but that may change in any new patch release.
22
22
23
23
See [ here] ( ../docs/msrv.md ) for details on how the MSRV may be upgraded.
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
65
65
** * This is (also) an alpha release with breaking changes (sorry) ** *
66
66
67
67
### Changed
68
- - The Minimum Supported Rust Version (MSRV) is now 1.59 .0
68
+ - The Minimum Supported Rust Version (MSRV) is now 1.60 .0
69
69
- ` spi ` : unify all traits into ` SpiReadBus ` , ` SpiWriteBus ` and ` SpiBus ` (read-write).
70
70
- ` spi ` : Add ` SpiDevice ` trait to represent a single device in a (possibly shared) bus, with managed chip-select (CS) pin.
71
71
- ` spi ` : Clarify that implementations are allowed to return before operations are finished, add ` flush ` to wait until finished.
Original file line number Diff line number Diff line change 1
1
[ ![ crates.io] ( https://img.shields.io/crates/d/embedded-hal.svg )] ( https://crates.io/crates/embedded-hal )
2
2
[ ![ crates.io] ( https://img.shields.io/crates/v/embedded-hal.svg )] ( https://crates.io/crates/embedded-hal )
3
3
[ ![ Documentation] ( https://docs.rs/embedded-hal/badge.svg )] ( https://docs.rs/embedded-hal )
4
- ![ Minimum Supported Rust Version] ( https://img.shields.io/badge/rustc-1.59 +-blue.svg )
4
+ ![ Minimum Supported Rust Version] ( https://img.shields.io/badge/rustc-1.60 +-blue.svg )
5
5
6
6
# ` embedded-hal `
7
7
@@ -15,7 +15,7 @@ This project is developed and maintained by the [HAL team](https://github.com/ru
15
15
16
16
## Minimum Supported Rust Version (MSRV)
17
17
18
- This crate is guaranteed to compile on stable Rust 1.59 and up. It * might*
18
+ This crate is guaranteed to compile on stable Rust 1.60 and up. It * might*
19
19
compile with older versions but that may change in any new patch release.
20
20
21
21
See [ here] ( ../docs/msrv.md ) for details on how the MSRV may be upgraded.
You can’t perform that action at this time.
0 commit comments