Skip to content

Commit 3442ad4

Browse files
committed
generator: Emit new c"" CStr literals
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.
1 parent f2979c8 commit 3442ad4

File tree

6 files changed

+1120
-3441
lines changed

6 files changed

+1120
-3441
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ jobs:
1111
- run: cargo check --workspace --all-targets --all-features
1212

1313
check_msrv:
14-
name: Check ash, ash-window and ash-rewrite MSRV (1.69.0)
14+
name: Check ash, ash-window and ash-rewrite MSRV (1.77.0)
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18-
- uses: dtolnay/rust-toolchain@1.69.0
18+
- uses: dtolnay/rust-toolchain@1.77.0
1919
- run: cargo check -p ash -p ash-rewrite -p ash-window --all-features
2020

2121
# TODO: add a similar job for the rewrite once that generates code

ash-window/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ categories = [
1616
"rendering::graphics-api"
1717
]
1818
edition = "2021"
19-
rust-version = "1.69.0"
19+
rust-version = "1.77.0"
2020

2121
[dependencies]
2222
ash = { path = "../ash", version = "0.37", default-features = false }

ash/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ categories = [
1919
"rendering::graphics-api"
2020
]
2121
edition = "2021"
22-
rust-version = "1.69.0"
22+
rust-version = "1.77.0"
2323

2424
[dependencies]
2525
libloading = { version = "0.8", optional = true }

0 commit comments

Comments
 (0)