Skip to content

Commit d8ddd73

Browse files
bors[bot]eldruin
andauthored
Merge #400
400: e-h-bus: Add MSRV notice and prepare 0.1.0-alpha.0 release r=Dirbaio a=eldruin :tada: Co-authored-by: Diego Barrios Romero <[email protected]>
2 parents da1a4d5 + b86fe26 commit d8ddd73

File tree

6 files changed

+67
-8
lines changed

6 files changed

+67
-8
lines changed

.github/workflows/ci-bus.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: CI Bus
7+
8+
env:
9+
RUSTFLAGS: '--deny warnings'
10+
11+
jobs:
12+
ci-linux-bus:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
rust: [nightly]
17+
TARGET: [x86_64-unknown-linux-gnu, thumbv6m-none-eabi, thumbv7m-none-eabi]
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
- uses: actions-rs/toolchain@v1
22+
with:
23+
profile: minimal
24+
toolchain: ${{ matrix.rust }}
25+
target: ${{ matrix.TARGET }}
26+
override: true
27+
- run: cargo check --target=${{ matrix.TARGET }}
28+
working-directory: embedded-hal-bus
29+
30+
- run: cargo test --target=${{ matrix.TARGET }}
31+
if: contains(matrix.TARGET, 'linux')
32+
working-directory: embedded-hal-bus

.github/workflows/clippy-bus.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Clippy check
7+
jobs:
8+
clippy_check-bus:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions-rs/toolchain@v1
13+
with:
14+
profile: minimal
15+
toolchain: nightly
16+
override: true
17+
components: clippy
18+
- run: cargo clippy
19+
working-directory: embedded-hal-bus

docs/msrv.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ that may change in any new patch release.
66

77
## How the MSRV will be upgraded
88

9-
For `embedded-hal`, we do not consider upgrading the MSRV a strictly breaking change as defined by
9+
For this library, we do not consider upgrading the MSRV a strictly breaking change as defined by
1010
[SemVer](https://semver.org).
1111

1212
We follow these rules when upgrading it:
@@ -23,8 +23,7 @@ For example:
2323

2424
For a given `x.y.z` release, we may upgrade the MSRV on `x` and `y` releases but not on `z` releases.
2525

26-
If your MSRV upgrade policy differs from this, you are advised to specify the
27-
`embedded-hal` dependency in your `Cargo.toml` accordingly.
26+
If your MSRV upgrade policy differs from this, you are advised to specify the dependency in your `Cargo.toml` accordingly.
2827

2928
See the [Rust Embedded Working Group MSRV RFC](https://github.com/rust-embedded/wg/blob/master/rfcs/0523-msrv-2020.md)
3029
for more background information and reasoning.

embedded-hal-bus/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

88
## [Unreleased]
9+
10+
...
11+
12+
## [v0.1.0-alpha.0] - 2022-08-17
13+
14+
First release to crates.io
15+
16+
[Unreleased]: https://github.com/rust-embedded/embedded-hal/compare/embedded-hal-bus-v0.1.0-alpha.0...HEAD
17+
[v0.1.0-alpha.0]: https://github.com/rust-embedded/embedded-hal/tree/embedded-hal-bus-v0.1.0-alpha.0

embedded-hal-bus/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ license = "MIT OR Apache-2.0"
1111
name = "embedded-hal-bus"
1212
readme = "README.md"
1313
repository = "https://github.com/rust-embedded/embedded-hal"
14-
version = "0.1.0-alpha.1"
14+
version = "0.1.0-alpha.0"
1515

1616
[dependencies]
1717
embedded-hal = { version = "=1.0.0-alpha.8", path = ".." }

embedded-hal-bus/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
[![crates.io](https://img.shields.io/crates/d/embedded-hal-bus.svg)](https://crates.io/crates/embedded-hal-bus)
22
[![crates.io](https://img.shields.io/crates/v/embedded-hal-bus.svg)](https://crates.io/crates/embedded-hal-bus)
33
[![Documentation](https://docs.rs/embedded-hal-bus/badge.svg)](https://docs.rs/embedded-hal-bus)
4-
<!--
54
![Minimum Supported Rust Version](https://img.shields.io/badge/rustc-1.54+-blue.svg)
6-
-->
75

86
# `embedded-hal-bus`
97

@@ -26,12 +24,14 @@ This project is developed and maintained by the [HAL team][team].
2624

2725
[API reference]: https://docs.rs/embedded-hal-bus
2826

29-
<!--
3027
## Minimum Supported Rust Version (MSRV)
3128

29+
3230
This crate is guaranteed to compile on stable Rust 1.54 and up. It *might*
3331
compile with older versions but that may change in any new patch release.
34-
-->
32+
33+
See [here](../docs/msrv.md) for details on how the MSRV may be upgraded.
34+
3535

3636
## License
3737

0 commit comments

Comments
 (0)