Fix compilation with "serialize" feature without "persistence" feature
This commit is contained in:
parent
4ace85b780
commit
da09a5c69c
2 changed files with 3 additions and 1 deletions
|
@ -28,6 +28,7 @@ pub struct Memory {
|
|||
/// This map stores current states for widgets that don't require `Id`.
|
||||
/// This will be saved between different program runs if you use the `persistence` feature.
|
||||
#[cfg(not(feature = "persistence"))]
|
||||
#[cfg_attr(feature = "serde", serde(skip))]
|
||||
pub data: any::TypeMap,
|
||||
|
||||
/// Same as `data`, but this data will not be saved between runs.
|
||||
|
@ -42,6 +43,7 @@ pub struct Memory {
|
|||
/// This map stores current states for all widgets with custom `Id`s.
|
||||
/// This will be saved between different program runs if you use the `persistence` feature.
|
||||
#[cfg(not(feature = "persistence"))]
|
||||
#[cfg_attr(feature = "serde", serde(skip))]
|
||||
pub id_data: any::AnyMap<Id, crate::id::BuilIdHasher>,
|
||||
|
||||
/// Same as `id_data`, but this data will not be saved between runs.
|
||||
|
|
|
@ -23,7 +23,7 @@ cargo doc -p egui_web --target wasm32-unknown-unknown --lib --no-deps --all-feat
|
|||
(cd epaint && cargo check --no-default-features --features "multi_threaded")
|
||||
(cd epaint && cargo check --no-default-features --features "single_threaded" --release)
|
||||
(cd epaint && cargo check --no-default-features --features "multi_threaded" --release)
|
||||
(cd egui && cargo check --no-default-features --features "multi_threaded")
|
||||
(cd egui && cargo check --no-default-features --features "multi_threaded,serialize")
|
||||
(cd eframe && cargo check --no-default-features --features "egui_glow")
|
||||
(cd epi && cargo check --no-default-features)
|
||||
(cd egui_web && cargo check --no-default-features)
|
||||
|
|
Loading…
Reference in a new issue