Skip to content

Commit 142832e

Browse files
committed
Prepare 0.4.0 release
Use trusted publishing to turn a GitHub release into a crates.io release.
1 parent 49838c1 commit 142832e

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Publish release to crates.io
2+
on:
3+
release:
4+
types: [ published ]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
environment: release
9+
permissions:
10+
id-token: write
11+
steps:
12+
- uses: actions/checkout@v6
13+
- uses: rust-lang/crates-io-auth-action@v1
14+
id: auth
15+
- run: rustup toolchain install stable --no-self-update --profile minimal
16+
- run: cargo publish --package=imxrt-usbd --target=thumbv7em-none-eabihf --features=imxrt-ral/imxrt1011
17+
env:
18+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Changelog
44
[Unreleased]
55
------------
66

7+
[0.4.0] 2026-04-12
8+
------------------
9+
710
The package now requires imxrt-ral to represent its register access layer.
811
The `Peripherals` trait is gone, and users are expected to use imxrt-ral
912
peripheral instances.
@@ -93,7 +96,8 @@ endpoints.
9396

9497
First release
9598

96-
[Unreleased]: https://github.com/imxrt-rs/imxrt-usbd/compare/v0.3.0...HEAD
99+
[Unreleased]: https://github.com/imxrt-rs/imxrt-usbd/compare/v0.4.0...HEAD
100+
[0.4.0]: https://github.com/imxrt-rs/imxrt-usbd/compare/v0.3.0...v0.4.0
97101
[0.3.0]: https://github.com/imxrt-rs/imxrt-usbd/compare/v0.2.2...v0.3.0
98102
[0.2.2]: https://github.com/imxrt-rs/imxrt-usbd/compare/v0.2.1...v0.2.2
99103
[0.2.1]: https://github.com/imxrt-rs/imxrt-usbd/compare/v0.2.0...v0.2.1

0 commit comments

Comments
 (0)