Commit 069681b
fix: don't use rayon on wasm (target-gated off) + bump 4.4.1
rayon is `[target.'cfg(not(target_family="wasm"))']`-only, but the
`multithreading` feature could still be enabled on wasm — so `use rayon` in
FcScanDirectoriesInner / FcParseFontFiles was reached without the crate,
failing wasm32 builds (E0433 unresolved `rayon`). Gate both rayon paths on
`all(feature="multithreading", not(target_family="wasm"))`; wasm falls back to
the existing sequential path. wasm doesn't need rayon at all.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 283409b commit 069681b
2 files changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4287 | 4287 | | |
4288 | 4288 | | |
4289 | 4289 | | |
4290 | | - | |
| 4290 | + | |
4291 | 4291 | | |
4292 | 4292 | | |
4293 | 4293 | | |
| |||
4300 | 4300 | | |
4301 | 4301 | | |
4302 | 4302 | | |
4303 | | - | |
| 4303 | + | |
| 4304 | + | |
| 4305 | + | |
4304 | 4306 | | |
4305 | 4307 | | |
4306 | 4308 | | |
| |||
4352 | 4354 | | |
4353 | 4355 | | |
4354 | 4356 | | |
4355 | | - | |
| 4357 | + | |
4356 | 4358 | | |
4357 | 4359 | | |
4358 | 4360 | | |
| |||
4361 | 4363 | | |
4362 | 4364 | | |
4363 | 4365 | | |
4364 | | - | |
| 4366 | + | |
4365 | 4367 | | |
4366 | 4368 | | |
4367 | 4369 | | |
| |||
0 commit comments