-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
bevy_ui
doesn't compile without the bevy_text
feature
#8984
Comments
I introduced the first one when fixing the text queue problems. Put in a pr a while ago #8670 that needs to be added to 0.11 |
Still doesn't fix the compilation error. There is more than a single compilation error. |
It did when I made the PR I think, just more errors were merged afterwards 😓. |
Can we get this checked for by CI? It seems like every time there is a non-trivial UI change it will get broken again. |
It's a fairly difficult choice. On one hand, we should make sure bevy compiles with all possible combination of feature flags, on the other hand, it's going to eat CI time like crazy. I'd defer to @mockersf, given their knowledge of the CI pipeline |
Compiling each crate individually without default features wouldn't add a lot, but currently there's no easy way to get a list of all crates in the workspace, so that's a bit painful to set up in CI. A few crates are checked without default features: bevy/.github/workflows/validation-jobs.yml Line 162 in 7aa0a47
|
# Objective - Fix #8984 ### Solution - Address compilation errors I admit: I did sneak it an unrelated mini-refactor. of the `measurment.rs` module. it seemed to me that directly importing `taffy` types helped reduce a lot of boilerplate, so I did it.
Bevy version
main branch: c24520c
What you did
What went wrong
Compilation error (several)
Why it's happening
bevy_text
is marked asoptional = true
in thebevy_ui
Cargo.toml
. And there is several#[cfg(feature = "bevy_text")]
that indicates it is intended to be possible to runbevy_ui
withoutbevy_text
.When I use the
--no-default-feature
,bevy_text
is removed as a dependency, and the feature flag "bevy_text" is also removed.The text was updated successfully, but these errors were encountered: