2020-10-17 09:03:10 +00:00
|
|
|
#!/bin/bash
|
2021-05-09 11:28:24 +00:00
|
|
|
script_path=$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )
|
|
|
|
cd "$script_path/.."
|
2021-05-02 17:26:57 +00:00
|
|
|
set -eux
|
2020-10-17 09:03:10 +00:00
|
|
|
|
2021-02-21 09:12:08 +00:00
|
|
|
# Checks all tests, lints etc.
|
|
|
|
# Basically does what the CI does.
|
|
|
|
|
2021-01-04 00:44:02 +00:00
|
|
|
cargo check --workspace --all-targets
|
2021-02-21 09:12:08 +00:00
|
|
|
cargo test --workspace --doc
|
2021-01-04 00:44:02 +00:00
|
|
|
cargo check --workspace --all-targets --all-features
|
|
|
|
cargo check -p egui_demo_app --lib --target wasm32-unknown-unknown
|
|
|
|
cargo check -p egui_demo_app --lib --target wasm32-unknown-unknown --all-features
|
2021-05-09 12:13:09 +00:00
|
|
|
cargo clippy --workspace --all-targets --all-features -- -D warnings -W clippy::all
|
2020-10-17 09:03:10 +00:00
|
|
|
cargo test --workspace --all-targets --all-features
|
2021-02-21 09:12:08 +00:00
|
|
|
cargo fmt --all -- --check
|
2020-10-17 09:03:10 +00:00
|
|
|
|
2021-09-28 15:33:28 +00:00
|
|
|
cargo doc -p emath -p epaint -p egui -p eframe -p epi -p egui_web -p egui-winit -p egui_glium --lib --no-deps --all-features
|
2021-04-15 07:48:30 +00:00
|
|
|
cargo doc -p egui_web --target wasm32-unknown-unknown --lib --no-deps --all-features
|
2021-02-06 23:11:52 +00:00
|
|
|
|
2021-09-28 15:33:28 +00:00
|
|
|
(cd emath && cargo check --no-default-features)
|
|
|
|
(cd epaint && cargo check --no-default-features --features "single_threaded")
|
|
|
|
(cd egui && cargo check --no-default-features --features "multi_threaded")
|
|
|
|
(cd eframe && cargo check --no-default-features)
|
|
|
|
(cd epi && cargo check --no-default-features)
|
|
|
|
(cd egui_web && cargo check --no-default-features)
|
|
|
|
(cd egui-winit && cargo check --no-default-features)
|
|
|
|
(cd egui_glium && cargo check --no-default-features)
|
|
|
|
|
2021-02-21 09:12:08 +00:00
|
|
|
# ------------------------------------------------------------
|
|
|
|
#
|
|
|
|
|
2020-10-17 09:03:10 +00:00
|
|
|
# For finding bloat:
|
|
|
|
# cargo bloat --release --bin demo_glium -n 200 | rg egui
|
|
|
|
|
|
|
|
# what compiles slowly?
|
|
|
|
# cargo clean; cargo +nightly build -p egui -Z timings
|
2021-05-09 11:28:24 +00:00
|
|
|
|
|
|
|
# what compiles slowly?
|
|
|
|
# cargo llvm-lines --lib -p egui | head -20
|