Skip to content

Commit 832fa45

Browse files
NateD-MSFTwmmc88
andauthored
feat: update samples to use 0.3.0 windows-drivers-rs crates (microsoft#18)
Co-authored-by: Melvin Wang <melvin.mc.wang@gmail.com>
1 parent 8b8847f commit 832fa45

17 files changed

Lines changed: 292 additions & 210 deletions

File tree

.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build]
2+
# Any flags here must be also added to env.RUSTFLAGS in build.yaml due to rustflag overriding rules: https://doc.rust-lang.org/cargo/reference/config.html#buildrustflags
3+
rustflags = ["-C", "target-feature=+crt-static"]

.github/workflows/build.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ on:
88
name: Build
99

1010
env:
11-
RUSTFLAGS: -D warnings
11+
RUSTFLAGS: >-
12+
-D warnings
13+
-C target-feature=+crt-static
1214
1315
jobs:
1416
build:

.github/workflows/github-dependency-review.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,13 @@ jobs:
1919
- name: Dependency Review
2020
uses: actions/dependency-review-action@v4
2121
with:
22-
# AND combinations are currently bugged and must be listed separately: https://github.com/actions/dependency-review-action/issues/263
23-
allow-licenses: MIT, Apache-2.0, BSD-3-Clause, ISC, Unicode-DFS-2016, (MIT OR Apache-2.0) AND Unicode-DFS-2016
24-
# anstyle is licensed as (MIT OR Apache-2.0), but the Github api fails to detect it: https://github.com/rust-cli/anstyle/tree/main/crates/anstyle
22+
allow-licenses: >-
23+
MIT,
24+
Apache-2.0,
25+
BSD-3-Clause,
26+
ISC,
27+
Unicode-DFS-2016
28+
# anstyle@1.0.4 is licensed as (MIT OR Apache-2.0), but the Github api fails to detect it: https://github.com/rust-cli/anstyle/tree/main/crates/anstyle
2529
allow-dependencies-licenses: 'pkg:cargo/anstyle@1.0.4'
2630
comment-summary-in-pr: on-failure
2731
# Explicit refs required for merge_group and push triggers:

0 commit comments

Comments
 (0)