[PR #12290] feat: exclude devtools from production builds #14152

Closed
opened 2026-02-16 18:18:57 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12290

State: closed
Merged: Yes


What does this PR do?

  • add tauri/devtools to default features for development
  • add --no-default-features to production builds in CI

How did you verify your code works?

For production, i ran cargo build --release --no-default-features and verified in the output that no devtools flags were being passed to tauri and the build completed successfully without devtools
The right-click shows only "reload"
image

For development, I ran a regular cargo build --release and confirmed that feature="devtools" shows up in the rustc commands for tauri and ran cargo metadata to confirm the features section shows default = ["tauri/devtools"]
The right-click shows the reload and inspect (and opens the devtools)
image

Fixes #10301, #12080

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12290 **State:** closed **Merged:** Yes --- ### What does this PR do? - add tauri/devtools to default features for development - add --no-default-features to production builds in CI ### How did you verify your code works? For production, i ran `cargo build --release --no-default-features` and verified in the output that no devtools flags were being passed to tauri and the build completed successfully without devtools The right-click shows only "reload" <img width="151" height="110" alt="image" src="https://github.com/user-attachments/assets/3f2b36b3-e430-4639-9680-e83a6427931f" /> For development, I ran a regular `cargo build --release` and confirmed that feature="devtools" shows up in the rustc commands for tauri and ran `cargo metadata` to confirm the features section shows default = ["tauri/devtools"] The right-click shows the reload and inspect (and opens the devtools) <img width="303" height="208" alt="image" src="https://github.com/user-attachments/assets/bbf9b1e1-7acf-40d1-afb7-f1447a5a344c" /> Fixes #10301, #12080
yindo added the pull-request label 2026-02-16 18:18:57 -05:00
yindo closed this issue 2026-02-16 18:18:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14152