Bug
cargo build -p zeph-llm --features candle succeeds, but cargo nextest run -p zeph-llm --features candle --lib fails with:
error[E0433]: failed to resolve: use of undeclared type `MessageMetadata`
The candle feature depends on MessageMetadata which is gated behind another feature flag not included when building candle alone.
Impact
Reproduction
cargo nextest run -p zeph-llm --features candle --lib
# -> error[E0433]: failed to resolve: use of undeclared type MessageMetadata
Works fine with:
cargo nextest run --workspace --features full --lib # all 6554 pass
Fix
Identify which module declares MessageMetadata and ensure its feature gate is a dependency of the candle feature, or remove the dependency from candle-scoped test code.
Bug
cargo build -p zeph-llm --features candlesucceeds, butcargo nextest run -p zeph-llm --features candle --libfails with:The
candlefeature depends onMessageMetadatawhich is gated behind another feature flag not included when buildingcandlealone.Impact
zeph-llmunit tests with--features candlein isolation--features fullwhich includes all features, masking this bugReproduction
cargo nextest run -p zeph-llm --features candle --lib # -> error[E0433]: failed to resolve: use of undeclared type MessageMetadataWorks fine with:
cargo nextest run --workspace --features full --lib # all 6554 passFix
Identify which module declares
MessageMetadataand ensure its feature gate is a dependency of thecandlefeature, or remove the dependency from candle-scoped test code.