Commit 755daea
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
0 commit comments