Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/device-driver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,22 @@ jobs:
submodules: true
- name: Install stable
uses: dtolnay/rust-toolchain@stable
- name: Install nightly with rustfmt
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Install device-driver-cli from crates.io
uses: baptiste0928/cargo-install@v3
with:
crate: device-driver-cli
- name: Generate files
run: device-driver-cli --manifest device.yaml --device-name Device -o ci_gen_device.rs
- name: Format generated file with nightly rustfmt
# The committed pregen file is formatted with nightly rustfmt (see
# rustfmt.toml unstable options used by the nightly fmt CI job).
# Format the freshly generated file the same way before diffing,
# otherwise this check perpetually conflicts with `nightly / fmt`.
run: rustup run nightly rustfmt --edition 2024 ci_gen_device.rs
- name: Check that the files are the exact same
uses: LouisBrunner/diff-action@v2.0.0
with:
Expand Down
155 changes: 6 additions & 149 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ include = ["/**/*.rs", "/Cargo.toml", "/README.md", "/LICENSE", "/device.yaml"]
edition = "2024"

[dependencies]
device-driver = { version = "1.0.3", default-features = false }
device-driver = { version = "1.0.9", default-features = false }
defmt = { version = "0.3", optional = true }
embedded-hal = "1.0.0"
embedded-hal-async = "1.0.0"
embedded-batteries-async = "0.3"

[dev-dependencies]
embedded-hal-mock = { version = "0.11.1", features = ["embedded-hal-async"] }
tokio = { version = "1.42.0", features = ["rt", "macros"] }
tokio = { version = "1.52.1", features = ["rt", "macros"] }
Comment thread
felipebalbi marked this conversation as resolved.

[lints.rust]
unsafe_code = "deny"
Expand Down
Loading
Loading