Skip to content

added cargo features to tauri config#1824

Merged
lucasfernog merged 2 commits intotauri-apps:devfrom
crapStone:feature/cargo-features
May 13, 2021
Merged

added cargo features to tauri config#1824
lucasfernog merged 2 commits intotauri-apps:devfrom
crapStone:feature/cargo-features

Conversation

@crapStone
Copy link
Contributor

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • New Binding Issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes. Issue #___
  • No

Other information:

I wanted to hide some functionality behind features in my Cargo.toml but had to put the features i wanted into the default features. The dev command didn't work at all, because it deactivates the default features.

With this change you can put all your wanted features into the tauri.conf.json and it starts the dev and release with these.

Copy link
Member

@lucasfernog lucasfernog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

@crapStone crapStone requested a review from a team as a code owner May 13, 2021 20:01
@lucasfernog lucasfernog merged commit 2b814e9 into tauri-apps:dev May 13, 2021
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.

2 participants