File tree 3 files changed +23
-4
lines changed
3 files changed +23
-4
lines changed Original file line number Diff line number Diff line change 38
38
toolchain : ${{ matrix.rust }}
39
39
target : ${{ matrix.target }}
40
40
41
- - run : sed -i '/nightly-only/d' Cargo.toml
41
+ - run : mv Cargo.stable.toml Cargo.toml
42
42
if : matrix.rust != 'nightly'
43
43
44
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" ,
13
12
" embedded-io-adapters" ,
14
13
]
You can’t perform that action at this time.
0 commit comments