Skip to content

feat: exclude devtools from production builds#12290

Open
sneycampos wants to merge 3 commits intoanomalyco:devfrom
sneycampos:dev
Open

feat: exclude devtools from production builds#12290
sneycampos wants to merge 3 commits intoanomalyco:devfrom
sneycampos:dev

Conversation

@sneycampos
Copy link
Contributor

@sneycampos sneycampos commented Feb 5, 2026

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

- Add tauri/devtools to default features for development
- Add --no-default-features to production builds in CI
- Simplify Cargo.toml feature configuration
- Add tauri:dev script to package.json
@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 5, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found.

@rekram1-node rekram1-node requested review from Brendonovich and removed request for adamdotdevin February 5, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[QUESTION] devtools enabled in opencode desktop

1 participant