emilk / emilk/egui

`egui_extra`'s `datepicker` feature incompatible with `eframe`'s `persistence` feature

Open
#7,472 6 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
30.6k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
72

Description

**Describe the bug**
When you enable both `egui_extra`'s `datepicker` feature and `eframe`'s `persistence` feature, `egui_extra` fails to compile.

**To Reproduce**
Steps to reproduce the behavior:
1. `cargo new test && cd test`
2. `cargo add eframe --features persistence`
3. `cargo add egui_extras --features datepicker`
4. `cargo build`

**Expected behavior**
It should build, but it doesn't due to unsatisfied trait bounds.

```
error[E0277]: the trait bound `DatePickerButtonState: SerializableAny` is not satisfied
error[E0277]: the trait bound `DatePickerPopupState: SerializableAny` is not satisfied
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure with the listed cargo new, cargo add, and cargo build commands, enabling eframe's persistence and egui_extras' datepicker features. Use the compiler's DatePickerButtonState and DatePickerPopupState trait-bound errors as the entry point; done means the same combination builds successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.