-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Can't compile egui_extras
without serde
feature
#4771
Comments
This seems to be an accidentally forced dependency on the "serde" feature. Enabling it resolves the issue, but it's supposed to be optional. |
Looks like the current table implementation just assumes that the serde feature is enabled. There are unconditional calls to |
Workaround until this is fixed: egui_extras = { version = "0.28.0", features = ["serde"] } Adding this to |
We should: |
The problem is actually in egui, not egui_extras. It happens if we try to build egui_extras without the cargo build -p egui_extras --features egui/persistence egui/crates/egui/src/util/id_type_map.rs Lines 38 to 54 in b31d02d
Enabling the feature causes the trait bounds to change in a semver breaking way, which should not happen because features are supposed to be additive. I don't know if there is a way to avoid this, though, aside from making serde mandatory in egui. |
Good catch… yeah, if As a short-term solution I can make |
egui_extras
without serde
feature
This is a workaround for #4771 to make it less likely to bite users
Wouldn't making the |
|
Ah, right, this is what I missed... |
We should be able to fix this by only calling |
Is anyone working on this? I'm eagerly anticipating the new release. |
If this is what has to be done anyway, then maybe This would be in accordance with the recommendation on https://doc.rust-lang.org/cargo/reference/features.html#feature-unification
|
vergen recently made that change. |
The issue at hand occurs when |
Oh, was this the last open issue for the "Next Patch Release" milestone? 👀 ^^ |
This is a workaround for emilk#4771 to make it less likely to bite users
I tried the new version of egui (0.28) but egui-extras seems to fail compiling with the following messages:
in `synthax_highlighting.rs
and in
table.rs
:My
cargo.toml
looks like this:And I'm using it on macOS 14.5.
egui-phosphor is bumped to egui 0.28 and works fine. the issue lies in egui_extras.
The text was updated successfully, but these errors were encountered: