Skip to content

fix(lpa-link): declare required-features for manage_smoke example#115

Open
Yona-Appletree wants to merge 1 commit into
mainfrom
claude/eloquent-mirzakhani-a5890f
Open

fix(lpa-link): declare required-features for manage_smoke example#115
Yona-Appletree wants to merge 1 commit into
mainfrom
claude/eloquent-mirzakhani-a5890f

Conversation

@Yona-Appletree

Copy link
Copy Markdown
Member

What

Adds an [[example]] entry to lp-app/lpa-link/Cargo.toml declaring required-features = ["host-serial-esp32"] for the manage_smoke example.

Why

manage_smoke.rs imports DeviceTimers/DeviceSession (gated behind device-session) and the providers::host_serial_esp32 module, but nothing in the manifest declared that dependency. On a clean tree, cargo test -p lpa-link and cargo build -p lpa-link --examples failed to compile with E0432/E0599. Workspace-level cargo test only passed because feature unification from sibling crates happened to enable the features.

host-serial-esp32 is the minimal feature set: it implies device-session-hostdevice-session, covering everything the example uses.

Verification

  • cargo build -p lpa-link --examples (default features): now a clean no-op — the example is correctly skipped.
  • cargo test -p lpa-link: 8 passed, 0 failed.
  • cargo build -p lpa-link --example manage_smoke --features host-serial-esp32: still builds.

🤖 Generated with Claude Code

The manage_smoke example imports DeviceTimers and the
host_serial_esp32 provider, both gated behind the host-serial-esp32
feature chain, but Cargo.toml had no [[example]] entry saying so.
As a result `cargo test -p lpa-link` and
`cargo build -p lpa-link --examples` failed to compile on a clean
tree with E0432/E0599; workspace-level builds only passed via
feature unification from sibling crates.

Declare the example with required-features = ["host-serial-esp32"]
so default-feature builds skip it and feature-enabled builds still
compile it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant