Skip to content

bug(candle): --features candle alone fails to compile (MessageMetadata unresolved) #2189

@bug-ops

Description

@bug-ops

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.

Metadata

Metadata

Assignees

Labels

P2High value, medium complexitybugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions