Skip to content

Commit 755daea

Browse files
committed
chore: move c-api and benches to edition 2024
Edition 2024 makes #[no_mangle] an unsafe attribute, so all 53 exported c-api symbols become #[unsafe(no_mangle)]. Verified with the gcc AddressSanitizer pass over test.c. testing-tools/ttf-fuzz is left on edition 2018 deliberately: it has not compiled since Face::parse started returning Result in 0.8.0, and it is superseded by the cargo-fuzz crate in #179.
1 parent 6bc51bc commit 755daea

4 files changed

Lines changed: 58 additions & 56 deletions

File tree

benches/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[package]
22
name = "benchmarks"
33
version = "0.1.0"
4-
edition = "2018"
4+
edition = "2024"
5+
rust-version = "1.88.0"
56

67
[dependencies]
78
bencher = "0.1"

c-api/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ authors = [
88
"خالد حسني (Khaled Hosny) <khaled@aliftype.com>"
99
]
1010
license = "MIT"
11-
edition = "2018"
11+
edition = "2024"
12+
rust-version = "1.88.0"
1213

1314
[lib]
1415
name = "ttfparser"

0 commit comments

Comments
 (0)