bread-onnx: fix workspace test build with load-dynamic dev-dependency #3

Merged
Breadway merged 1 commit from fix/bread-onnx-workspace-test-link into main 2026-08-07 11:20:41 +08:00
Owner

cargo test --workspace failed to link bread-onnx's own unit tests
(undefined symbol OrtGetApiBase) because nothing in this workspace
supplies an ort backend — that's deliberately left to each downstream
consumer app (breadarr, breadmill, breadpad) in their own repos. None
of bread-onnx's unit tests actually open an ONNX session, so enabling
ort's load-dynamic feature as a dev-dependency (unifies into this
crate's own test builds only, never into downstream consumers) is
enough to satisfy the linker without requiring a real onnxruntime.

cargo test --workspace failed to link bread-onnx's own unit tests (undefined symbol OrtGetApiBase) because nothing in this workspace supplies an ort backend — that's deliberately left to each downstream consumer app (breadarr, breadmill, breadpad) in their own repos. None of bread-onnx's unit tests actually open an ONNX session, so enabling ort's load-dynamic feature as a dev-dependency (unifies into this crate's own test builds only, never into downstream consumers) is enough to satisfy the linker without requiring a real onnxruntime.
cargo test --workspace failed to link bread-onnx's own unit tests
(undefined symbol OrtGetApiBase) because nothing in this workspace
supplies an ort backend — that's deliberately left to each downstream
consumer app (breadarr, breadmill, breadpad) in their own repos. None
of bread-onnx's unit tests actually open an ONNX session, so enabling
ort's load-dynamic feature as a dev-dependency (unifies into this
crate's own test builds only, never into downstream consumers) is
enough to satisfy the linker without requiring a real onnxruntime.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Breadway/bread-ecosystem!3
No description provided.