Skip to content

Commit a07f490

Browse files
xtask: Add check-raw
Running `cargo xtask check-raw` validates various properties of the code in the `uefi-raw` package. For example, it checks that no Rust enums are used, that structs have an appropriate repr for FFI, that raw pointers are used instead of references, and many other things. This is run in CI as part of the lint job.
1 parent a3e551c commit a07f490

File tree

6 files changed

+580
-1
lines changed

6 files changed

+580
-1
lines changed

.github/workflows/rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ jobs:
121121
- name: Verify generated code is up-to-date
122122
run: cargo xtask gen-code --check
123123

124+
- name: Run additional checks on the uefi-raw package
125+
run: cargo xtask check-raw
126+
124127
# Run the build with our current stable MSRV (specified in
125128
# ./msrv_toolchain.toml). This serves to check that we don't
126129
# accidentally start relying on a new feature without intending

Cargo.lock

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

xtask/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ itertools = "0.10.5"
1414
mbrman = "0.5.1"
1515
nix = { version = "0.26.1", default-features = false, features = ["fs"] }
1616
os_info = { version = "3.6.0", default-features = false }
17-
proc-macro2 = "1.0.46"
17+
proc-macro2 = { version = "1.0.46", features = ["span-locations"] }
1818
quote = "1.0.21"
1919
regex = "1.8.1"
2020
serde_json = "1.0.73"
2121
syn = { version = "2.0.0", features = ["full"] }
2222
tempfile = "3.5.0"
23+
walkdir = "2.3.3"

0 commit comments

Comments
 (0)