diff --git a/egui-winit/Cargo.toml b/egui-winit/Cargo.toml index 1db5818b..b64a630b 100644 --- a/egui-winit/Cargo.toml +++ b/egui-winit/Cargo.toml @@ -48,7 +48,7 @@ links = ["webbrowser"] # experimental support for a screen reader screen_reader = ["tts"] -persistence = ["egui/serialize", "serde"] +persistence = ["egui/serialize", "serde"] # can't add epi/persistence here because of https://github.com/rust-lang/cargo/issues/8832 serialize = ["egui/serialize", "serde"] # implement bytemuck on most types. diff --git a/egui_glow/Cargo.toml b/egui_glow/Cargo.toml index 429818a2..1a519545 100644 --- a/egui_glow/Cargo.toml +++ b/egui_glow/Cargo.toml @@ -58,7 +58,7 @@ default_fonts = ["egui/default_fonts"] # enable opening links in a browser when an egui hyperlink is clicked. links = ["egui-winit/links"] -# enable code for sabing +# enable code for saving state persistence = [ "egui-winit/persistence", "egui/persistence", @@ -71,6 +71,5 @@ persistence = [ screen_reader = ["egui-winit/screen_reader"] # enable glutin/winit integration. -# if you want to use glow painter on web disable it. -# if disabled reduce crate size and build time. +# if you want to use glow painter on web disable this feature. winit = ["egui-winit", "glutin"] diff --git a/epaint/Cargo.toml b/epaint/Cargo.toml index debfc233..eeadaad9 100644 --- a/epaint/Cargo.toml +++ b/epaint/Cargo.toml @@ -35,7 +35,7 @@ bytemuck = { version = "1.7.2", features = ["derive"], optional = true } cint = { version = "^0.2.2", optional = true } nohash-hasher = "0.2" parking_lot = { version = "0.11", optional = true } # Using parking_lot over std::sync::Mutex gives 50% speedups in some real-world scenarios. -serde = { version = "1", features = ["derive"], optional = true } +serde = { version = "1", features = ["derive", "rc"], optional = true } [features] default = ["default_fonts", "multi_threaded"] diff --git a/epi/Cargo.toml b/epi/Cargo.toml index 74fe92f4..48f9f8cc 100644 --- a/epi/Cargo.toml +++ b/epi/Cargo.toml @@ -33,4 +33,4 @@ serde = { version = "1", optional = true } [features] default = [] file_storage = ["directories-next", "ron", "serde"] -persistence = ["ron", "serde"] +persistence = ["ron", "serde", "egui/persistence"] diff --git a/sh/build_demo_web.sh b/sh/build_demo_web.sh index cbbd88e0..27de09de 100755 --- a/sh/build_demo_web.sh +++ b/sh/build_demo_web.sh @@ -42,13 +42,14 @@ rm -f docs/${CRATE_NAME}_bg.wasm echo "Building rust…" BUILD=release -cargo build \ - -p ${CRATE_NAME} \ - --release \ - --lib \ - --target wasm32-unknown-unknown \ - --no-default-features \ - --features ${FEATURES} +(cd $CRATE_NAME && + cargo build \ + --release \ + --lib \ + --target wasm32-unknown-unknown \ + --no-default-features \ + --features ${FEATURES} +) # Get the output directory (in the workspace it is in another location) TARGET=`cargo metadata --format-version=1 | jq --raw-output .target_directory` diff --git a/sh/check.sh b/sh/check.sh index d35ca35c..37ec1c06 100755 --- a/sh/check.sh +++ b/sh/check.sh @@ -33,6 +33,18 @@ cargo doc --document-private-items --no-deps --all-features (cd egui_glium && cargo check --no-default-features) (cd egui_glow && cargo check --no-default-features) + +(cd eframe && cargo check --all-features) +(cd egui && cargo check --all-features) +(cd egui_glium && cargo check --all-features) +(cd egui_glow && cargo check --all-features) +(cd egui_web && cargo check --all-features) +# (cd egui-winit && cargo check --all-features) can't do, beacause of https://github.com/rust-lang/cargo/issues/8832 +(cd emath && cargo check --all-features) +(cd epaint && cargo check --all-features) +(cd epi && cargo check --all-features) + + # ------------------------------------------------------------ #