bread-onnx provider dispatch references require consumer-disabled ORT features #77

Open
opened 2026-10-14 12:51:17 +08:00 by Breadway · 0 comments
Owner

Found while implementing ROAD-15 in Breadway/breadsearch. Confidence: high, reproduced on pristine breadsearch main at origin/main (18cd529) with pinned bread-ecosystem bread-onnx v0.7.2 / commit 30517f1. cargo build -p breadmill fails because bread-onnx/src/provider.rs::Provider::to_dispatch references ort::ep::{MIGraphX, CUDA, OpenVINO, Vitis} unconditionally, while breadmill deliberately enables those ort features only through optional backend features. This makes the shared crate fail to compile for a valid CPU-only consumer build. The documented --features full works around, but does not fix the consumer/default-feature regression. Fix should feature-gate provider construction and maintain CPU fallback semantics, with coverage for no-provider and each provider feature combination. ROAD-15 is blocked pending this prerequisite.

Found while implementing ROAD-15 in Breadway/breadsearch. Confidence: high, reproduced on pristine breadsearch main at origin/main (18cd529) with pinned bread-ecosystem bread-onnx v0.7.2 / commit 30517f1. `cargo build -p breadmill` fails because `bread-onnx/src/provider.rs::Provider::to_dispatch` references `ort::ep::{MIGraphX, CUDA, OpenVINO, Vitis}` unconditionally, while breadmill deliberately enables those `ort` features only through optional backend features. This makes the shared crate fail to compile for a valid CPU-only consumer build. The documented `--features full` works around, but does not fix the consumer/default-feature regression. Fix should feature-gate provider construction and maintain CPU fallback semantics, with coverage for no-provider and each provider feature combination. ROAD-15 is blocked pending this prerequisite.
Sign in to join this conversation.
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#77
No description provided.