Commit 50c0966
fix(pdf): keep model_path behind the ml feature gate
The model-inventory insertion landed between model_path's #[cfg(feature =
"ml")] attribute and the function it guarded, so the pdf-text (wasm) build
started compiling model_path — which calls the ml-gated prefer_fp32 /
resolve_asset — and CI's wasm32 job failed with E0425. Re-attach the gate
(and the doc comment) to the function itself.
Verified with CI's exact command: cargo check -p docling
--no-default-features --features pdf-text --target wasm32-unknown-unknown
--locked, plus the bare no-default-features wasm check, docling-wasm, the
docling-pdf/serve suites, fmt and clippy.
Signed-off-by: artiz <artem.kustikov@gmail.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EY5KAiquN4YpVf2PXEQkVT1 parent b48dffd commit 50c0966
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | 235 | | |
242 | 236 | | |
243 | 237 | | |
| |||
296 | 290 | | |
297 | 291 | | |
298 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
| |||
0 commit comments