You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These will land in Rust 1.76 and automatically append a `\0` terminator
in the compiler without having to have a checked or `unsafe`-unchecked
constructor on `CStr`.
Hacking in an invalid `\0` anywhere in the string is disallowed with a
compiler error.
Note that `proc-macro`, and by extension `proc-macro2` only has support
for parsing this literal, but not for emitting it yet.
run: test -z "$(git status --porcelain)" || (echo "::error::Generated files are different, please regenerate with cargo run -p generator!"; git diff; false)
34
39
@@ -39,6 +44,7 @@ jobs:
39
44
- name: Install Vulkan loader
40
45
run: sudo apt-get install libvulkan-dev
41
46
- uses: actions/checkout@v4
47
+
- uses: dtolnay/rust-toolchain@nightly
42
48
- name: Test all targets
43
49
run: cargo test --workspace --all-targets
44
50
- name: Test docs
@@ -49,6 +55,9 @@ jobs:
49
55
runs-on: ubuntu-latest
50
56
steps:
51
57
- uses: actions/checkout@v4
58
+
- uses: dtolnay/rust-toolchain@nightly
59
+
with:
60
+
components: rustfmt
52
61
- run: cargo fmt --all -- --check
53
62
54
63
clippy:
@@ -61,10 +70,13 @@ jobs:
61
70
- x86_64-unknown-linux-gnu
62
71
- x86_64-apple-darwin
63
72
- aarch64-apple-ios
73
+
- aarch64-linux-android
64
74
steps:
65
75
- uses: actions/checkout@v4
66
-
- name: Add Rust target ${{ matrix.target }}
67
-
run: rustup target add ${{ matrix.target }}
76
+
- uses: dtolnay/rust-toolchain@nightly
77
+
with:
78
+
targets: ${{ matrix.target }}
79
+
components: clippy
68
80
- name: Clippy lint without features
69
81
# Only test the core ash, ash-rewrite and ash-window crate, where features reside.
70
82
# The examples crate would otherwise enable all default features again,
0 commit comments