mirror of
https://github.com/rust-embedded/embedded-hal.git
synced 2025-10-01 06:40:31 +00:00
Fix workspace issues when building for stable.
This commit is contained in:
parent
7d975f025d
commit
981caa649b
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
@ -38,7 +38,7 @@ jobs:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
target: ${{ matrix.target }}
|
||||
|
||||
- run: sed -i '/nightly-only/d' Cargo.toml
|
||||
- run: mv Cargo.stable.toml Cargo.toml
|
||||
if: matrix.rust != 'nightly'
|
||||
|
||||
- run: cargo check --target=${{ matrix.target }} --features=${{ matrix.features }}
|
||||
|
20
Cargo.stable.toml
Normal file
20
Cargo.stable.toml
Normal file
@ -0,0 +1,20 @@
|
||||
# CI moves this file to `Cargo.toml` when building for stable.
|
||||
|
||||
[workspace]
|
||||
resolver = "2"
|
||||
|
||||
members = [
|
||||
"embedded-hal",
|
||||
"embedded-hal-nb",
|
||||
"embedded-hal-bus",
|
||||
"embedded-can",
|
||||
"embedded-io",
|
||||
"embedded-io-adapters",
|
||||
]
|
||||
|
||||
# Cargo implicitly adds path dependencies to the workspace.
|
||||
# Even if they're optional and not enabled. This prevents that.
|
||||
exclude = [
|
||||
"embedded-hal-async",
|
||||
"embedded-io-async",
|
||||
]
|
@ -1,14 +1,13 @@
|
||||
[workspace]
|
||||
resolver = "2"
|
||||
|
||||
# CI removes lines containing 'nightly-only' when not building with nightly.
|
||||
members = [
|
||||
"embedded-hal",
|
||||
"embedded-hal-async", # nightly-only
|
||||
"embedded-hal-async",
|
||||
"embedded-hal-nb",
|
||||
"embedded-hal-bus",
|
||||
"embedded-can",
|
||||
"embedded-io",
|
||||
"embedded-io-async", # nightly-only
|
||||
"embedded-io-async",
|
||||
"embedded-io-adapters",
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user