Commit 92d5853
[api] Gate the experimental shape() free function (#406)
The `harfrust::shape` free function is re-exported only under the
`experimental_font_api` feature (it takes a `FontInstance`, which is
public only under that feature), but its definition was not gated to
match. In a default-feature build the re-export is compiled out while
the function remains, leaving it unreachable and triggering a dead_code
warning (visible during `cargo publish` verification).
Gate the definition with the same `#[cfg(feature =
"experimental_font_api")]`. No functional change; the experimental API
is unaffected and there is no cascade -- its helpers stay reachable
through other paths.
Assisted-by: Claude <noreply@anthropic.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 60b28ea commit 92d5853
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
439 | 440 | | |
440 | 441 | | |
441 | 442 | | |
| |||
0 commit comments