Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(features): enable building with all-features #286

Merged
merged 1 commit into from
Jul 4, 2023

Conversation

joshka
Copy link
Member

@joshka joshka commented Jun 30, 2023

Before this change, it wasn't possible to build all features and all
targets at the same time, which prevents rust-analyzer from working
for the whole project.

Adds a bacon.toml file to the project, which is used by bacon
https://dystroy.org/bacon/

Configures docs.rs to show the feature flags that are necessary to
make modules / types / functions available.

Before this change, it wasn't possible to build all features and all
targets at the same time, which prevents rust-analyzer from working
for the whole project.

Adds a bacon.toml file to the project, which is used by bacon
https://dystroy.org/bacon/

Configures docs.rs to show the feature flags that are necessary to
make modules / types / functions available.
@joshka
Copy link
Member Author

joshka commented Jun 30, 2023

E.g.:
image

E.g:
image

@codecov
Copy link

codecov bot commented Jun 30, 2023

Codecov Report

Merging #286 (95b37c0) into main (cf8eda0) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #286   +/-   ##
=======================================
  Coverage   82.71%   82.71%           
=======================================
  Files          36       36           
  Lines        7360     7360           
=======================================
  Hits         6088     6088           
  Misses       1272     1272           
Impacted Files Coverage Δ
src/lib.rs 100.00% <ø> (ø)

@joshka
Copy link
Member Author

joshka commented Jul 2, 2023

One of the big benefits of this is that it reduces the need to do specific CI builds for each backend, and instead we can just use https://github.com/taiki-e/cargo-hack to do all features / feature power sets, while just building once with all-features locally for speed.

@joshka joshka added this pull request to the merge queue Jul 4, 2023
Merged via the queue into ratatui:main with commit ad288f5 Jul 4, 2023
@joshka joshka deleted the fix-all-features branch July 4, 2023 05:23
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