Oscar Gustafsson
c1eb3f884d
Move dependencies to workspace ( #4495 )
<!--
Please read the "Making a PR" section of
[`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/CONTRIBUTING.md )
before opening a Pull Request!
* Keep your PR:s small and focused.
* The PR title is what ends up in the changelog, so make it descriptive!
* If applicable, add a screenshot or gif.
* If it is a non-trivial addition, consider adding a demo for it to
`egui_demo_lib`, or a new example.
* Do NOT open PR:s from your `master` branch, as that makes it hard for
maintainers to add commits to your PR.
* Remember to run `cargo fmt` and `cargo clippy`.
* Open the PR as a draft until you have self-reviewed it and run
`./scripts/check.sh`.
* When you have addressed a PR comment, mark it as resolved.
Please be patient! I will review your PR, but my time is limited!
-->
Inspired by:
44d65f41ac/Cargo.toml (L65)
I took the liberty of removing that comment since I *think* that I got
all "relevant" ones (showing up more than once, sort of).
6 months ago
Emil Ernerfeldt
f19f99180e
Remove `extra_asserts` and `extra_debug_asserts` feature flags ( #4478 )
Removes `egui_assert` etc and replaces it with normal `debug_assert`
calls.
Previously you could opt-in to more runtime checks using feature flags.
Now these extra runtime checks are always enabled for debug builds.
You are most likely to encounter them if you use negative sizes or NaNs
or other similar bugs.
These usually indicate bugs in user space.
6 months ago
Emil Ernerfeldt
2f508d6a61
Replace cargo-cranky with workspace lints ( #4413 )
Replace `cargo-cranky` (which has served us well) with workspace lints
7 months ago
Emil Ernerfeldt
d02491425c
Put all egui crates as workspace crates ( #3976 )
Second attempty
9 months ago
Emil Ernerfeldt
bcebfecb84
Use more workspace dependencies ( #3975 )
9 months ago
Emil Ernerfeldt
8f2c8664e7
Emilk/revert workspace deps ( #3942 )
* Closes https://github.com/emilk/egui/issues/3941
Workspace dependencies can be annoying.
If you don't set them to `default-features=false`, then you cannot opt
out of their default features anywhere else, and get warnings if you
try.
So you set `default-features=false`, and then you need to manually opt
in to the default features everywhere else.
Or, as in my case, don't.
I don't have the energy to do this tonight, so I'll just revert.
9 months ago
Emil Ernerfeldt
00cd671ad8
Use workspace dependencies for the egui crates
9 months ago
Emil Ernerfeldt
dda9f79838
Remove `version` field for path-dependencies
9 months ago
Emil Ernerfeldt
1db291721f
Parallell tessellation ( #3934 )
* Part of https://github.com/emilk/egui/issues/1485
This adds a `rayon` feature to `epaint` and `egui` to parallelize
tessellation of large shapes, such as high-resolution plot lines.
9 months ago
Emil Ernerfeldt
12ad9e7b36
Release 0.25.0 - Better keyboard input
10 months ago
Emil Ernerfeldt
c8dd3dd01a
Update dependencies ( #3700 )
Also disable `regex` `env_logger` feature in examples to improve compile
times.
11 months ago
Emil Ernerfeldt
d17613c242
Release 0.24.1 - Bug fixes
11 months ago
Emil Ernerfeldt
bd087ffb8d
Release 0.24.0 - Multi-viewport
12 months ago
Emil Ernerfeldt
96bc34a66d
Use workspace definitions of edition,license,rust-version,version
12 months ago
Emil Ernerfeldt
bfadb90d42
Update MSRV to Rust 1.72 ( #3595 )
Required to update to puffin 0.18
12 months ago
Emil Ernerfeldt
5a0186fa2b
Release 0.23.0 - New image API
1 year ago
Emil Ernerfeldt
82704bebbf
Update MSRV to Rust 1.70.0 ( #3310 )
* Update to Rust 1.70
* Fix renamed clippy lint
* Use let-else more
* Code cleanup
* Remove derelict Safety comments
* Enable more clippy lints
1 year ago
Emil Ernerfeldt
dd5285cccb
Support multi-threaded Wasm ( #3236 )
Replace `atomic_refcell` with `parking_lot` on wasm32.
`parking_lot` has had problems running on wasm32 before
(https://github.com/emilk/egui/issues/1401 )
but it works these days.
If we have problems again we can always switch to `std::sync::Mutex`.
Closes https://github.com/emilk/egui/issues/3102
1 year ago
Emil Ernerfeldt
08fb447fb5
Increase MSRV to 1.67 ( #3234 )
* Bump MSRV to 1.67
* clippy fixes
* cargo clippy: inline format args
* Add `clippy::uninlined_format_args` to cranky lints
* Fix clippy on wasm
* More clippy fixes
1 year ago
Emil Ernerfeldt
307565efa5
Release 0.22.0 - A plethora of small improvements
1 year ago
Emil Ernerfeldt
9c9a54ce36
Replace `tracing` with `log` ( #2928 )
* Replace tracing crate with log
It's just so much simpler to use
* Add `bacon wasm` job
* eframe: add a WebLogger for piping log events to the web console
2 years ago
Jozef Číž
33aa4d698f
Fix typos ( #2866 )
* Fix typos in comments
* Fix typos in demo texts
* Fix typos in code names
* Fix typos in cargos
* Fix typos in changelogs
2 years ago
Emil Ernerfeldt
ae722ab0cf
Release 0.21.0 - Deadlock fix and winit update
2 years ago
Hoping White
430cbe541c
New feature to support unity vertex layout requirement ( #2493 )
* Update mesh.rs
adjust Vertex layout
* add unity feature
* add unity feature
* document the `unity` feature flag
---------
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2 years ago
Emil Ernerfeldt
7d91e90481
Release 0.20.0 - AccessKit, prettier text, overlapping widgets
2 years ago
Andreas Reich
5effc68ba4
Split out ecolor crate ( #2399 )
* split out ecolor crate
* split up ecolor crate in lots of modules
* add changelog notes
* add readme to ecolor
* put clippy::manual_range_contains on cranky allow list
* fix hex color issues
* doc fixes
* more hex_color fixes
* Document features
* Rename hex_color module to avoid warning
* Sort the feature names
* fix link in CHANGELOG.md
* better wording
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2 years ago
Emil Ernerfeldt
bde47c9957
epaint: cover default fonts in the license field ( #2327 )
2 years ago
Emil Ernerfeldt
eca5e6a4d2
Update to Rust 1.65 ( #2314 )
* Update to Rust 1.65
Because then you can use dynamic linking on Linux
* Fix a bunch of clippy lints
* Update changelogs
* More clippy fixes
2 years ago
Emil Ernerfeldt
e48602059d
Update ahash to 0.8.1 ( #2255 )
2 years ago
ItsEthra
4d1e858a52
Use total_cmp for clamping drag value in order to avoid floating point ambiguities ( #2213 )
* Use total_cmp for clamping DragValue
* Added test for clamping
* Increase MSRV in all crates
* Increased rust version for github actions and lib.rs
* Inversed ranges are now working properply with clamp_to_range
* Added more tests
2 years ago
Emil Ernerfeldt
77df8ca0b0
Update some crates ( #2100 )
* Update crate webbrowser 0.7 -> 0.8
* Update criterion 0.3 -> 0.4
* Update tts 0.20 -> 0.24
* revert tts update
2 years ago
Emil Ernerfeldt
97ce103209
Release 0.19.0 - wgpu backend, repaint_after, continue-after-close
2 years ago
Emil Ernerfeldt
2453756782
Fix broken GitHub source links due to #1940
2 years ago
Emil Ernerfeldt
eb10ef94f7
Build-fix for `--no-default-features`
2 years ago
Emil Ernerfeldt
041f2e64ba
Move all crates into a `crates` directory ( #1940 )
2 years ago
Emil Ernerfeldt
5514a8afda
Update dependencies ( #1933 )
* Update ahash from 0.7 to 0.8
Opt to use ahash::HashMap over ahash::AHashMap
* Fix ahash compilation for web
* Update ron to 0.8
* Add note about why we cannot update tiny-skia
* cargo update
Updating crates.io index
Updating android_system_properties v0.1.2 -> v0.1.4
Updating anyhow v1.0.58 -> v1.0.62
Updating async-broadcast v0.4.0 -> v0.4.1
Updating async-channel v1.6.1 -> v1.7.1
Updating async-io v1.7.0 -> v1.8.0
Updating async-task v4.2.0 -> v4.3.0
Updating async-trait v0.1.56 -> v0.1.57
Updating backtrace v0.3.65 -> v0.3.66
Updating bit-set v0.5.2 -> v0.5.3
Updating bumpalo v3.10.0 -> v3.11.0
Updating bytemuck v1.10.0 -> v1.12.1
Updating bytemuck_derive v1.1.0 -> v1.2.1
Updating bytes v1.1.0 -> v1.2.1
Updating cast v0.2.7 -> v0.3.0
Updating chrono v0.4.19 -> v0.4.22
Updating clap v3.2.8 -> v3.2.17
Updating clipboard-win v4.4.1 -> v4.4.2
Updating combine v4.6.4 -> v4.6.6
Updating concurrent-queue v1.2.2 -> v1.2.4
Updating criterion v0.3.5 -> v0.3.6
Updating criterion-plot v0.4.4 -> v0.4.5
Updating crossbeam-channel v0.5.5 -> v0.5.6
Updating crossbeam-deque v0.8.1 -> v0.8.2
Updating crossbeam-epoch v0.9.9 -> v0.9.10
Updating crossbeam-utils v0.8.10 -> v0.8.11
Updating document-features v0.2.1 -> v0.2.3
Updating dyn-clone v1.0.6 -> v1.0.9
Removing easy-parallel v3.2.0
Updating either v1.7.0 -> v1.8.0
Updating enum-map v2.1.0 -> v2.4.1
Updating enum-map-derive v0.8.0 -> v0.10.0
Updating event-listener v2.5.2 -> v2.5.3
Updating fastrand v1.7.0 -> v1.8.0
Updating futures-core v0.3.21 -> v0.3.23
Updating futures-io v0.3.21 -> v0.3.23
Updating futures-sink v0.3.21 -> v0.3.23
Updating futures-task v0.3.21 -> v0.3.23
Updating futures-util v0.3.21 -> v0.3.23
Updating gimli v0.26.1 -> v0.26.2
Updating gpu-descriptor v0.2.2 -> v0.2.3
Removing hashbrown v0.11.2
Removing hashbrown v0.12.1
Adding hashbrown v0.12.3
Adding iana-time-zone v0.1.46
Updating image v0.24.2 -> v0.24.3
Updating inplace_it v0.3.3 -> v0.3.4
Updating itoa v1.0.2 -> v1.0.3
Updating js-sys v0.3.58 -> v0.3.59
Updating libc v0.2.126 -> v0.2.132
Updating libm v0.2.2 -> v0.2.5
Removing memmap2 v0.3.1
Removing memmap2 v0.5.4
Adding memmap2 v0.5.7
Removing num-iter v0.1.43
Updating object v0.28.4 -> v0.29.0
Updating once_cell v1.13.0 -> v1.13.1
Updating os_str_bytes v6.1.0 -> v6.3.0
Updating owned_ttf_parser v0.15.0 -> v0.15.1
Removing parking_lot v0.11.2
Removing parking_lot_core v0.8.5
Updating plotters v0.3.1 -> v0.3.3
Updating plotters-backend v0.3.2 -> v0.3.4
Updating plotters-svg v0.3.1 -> v0.3.3
Updating proc-macro-crate v1.1.3 -> v1.2.1
Updating proc-macro2 v1.0.40 -> v1.0.43
Updating quote v1.0.20 -> v1.0.21
Updating redox_syscall v0.2.13 -> v0.2.16
Updating regex v1.5.6 -> v1.6.0
Updating regex-syntax v0.6.26 -> v0.6.27
Updating rfd v0.8.0 -> v0.8.4
Removing rustc_version v0.4.0
Updating ryu v1.0.10 -> v1.0.11
Updating sctk-adwaita v0.4.1 -> v0.4.2
Removing semver v1.0.12
Updating serde v1.0.138 -> v1.0.143
Updating serde_derive v1.0.138 -> v1.0.143
Updating serde_json v1.0.82 -> v1.0.83
Updating serde_repr v0.1.8 -> v0.1.9
Updating slab v0.4.6 -> v0.4.7
Removing smithay-client-toolkit v0.15.4
Updating smithay-clipboard v0.6.5 -> v0.6.6
Updating syn v1.0.98 -> v1.0.99
Updating thiserror v1.0.31 -> v1.0.32
Updating thiserror-impl v1.0.31 -> v1.0.32
Updating time v0.3.11 -> v0.3.13
Adding tiny-skia v0.7.0
Adding tiny-skia-path v0.7.0
Updating tracing v0.1.35 -> v0.1.36
Updating tracing-core v0.1.28 -> v0.1.29
Updating tracing-subscriber v0.3.14 -> v0.3.15
Updating unicode-ident v1.0.1 -> v1.0.3
Updating unicode_names2 v0.5.0 -> v0.5.1
Updating ureq v2.4.0 -> v2.5.0
Updating wasm-bindgen-futures v0.4.31 -> v0.4.32
Updating web-sys v0.3.58 -> v0.3.59
Updating webpki-roots v0.22.3 -> v0.22.4
Updating weezl v0.1.6 -> v0.1.7
Updating wgpu-core v0.13.1 -> v0.13.2
Updating wgpu-hal v0.13.1 -> v0.13.2
Updating wgpu-types v0.13.0 -> v0.13.2
Updating windows v0.32.0 -> v0.37.0
Updating windows_aarch64_msvc v0.32.0 -> v0.37.0
Updating windows_i686_gnu v0.32.0 -> v0.37.0
Updating windows_i686_msvc v0.32.0 -> v0.37.0
Updating windows_x86_64_gnu v0.32.0 -> v0.37.0
Updating windows_x86_64_msvc v0.32.0 -> v0.37.0
Updating x11-dl v2.19.1 -> v2.20.0
Updating zbus_names v2.1.0 -> v2.2.0
Updating zvariant v3.4.1 -> v3.6.0
Updating zvariant_derive v3.4.1 -> v3.6.0
* Add "Unicode-DFS-2016" to deny.toml whitelist
2 years ago
Matt Campbell
7a46a23db5
Update MSRV to Rust 1.61.0 ( #1846 )
2 years ago
Emil Ernerfeldt
29973e5d02
Make document-features an opt-in dependency
2 years ago
Emil Ernerfeldt
3169ce62d5
Document feature flags using crate document-features ( #1725 )
2 years ago
Emil Ernerfeldt
d6fd5dec3b
Add single-threaded deadlock detection to RwMutex ( #1619 )
3 years ago
Erlend Walstad
f27f67b76b
Make color-hex optional ( #1632 )
3 years ago
Luke Newcomb
d2decfa338
Add ability to convert from a hex string to Color32 using macros ( #1596 )
3 years ago
Emil Ernerfeldt
b30224471c
Release 0.18.1 of egui & epaint - Change `Shape::Callback` to `&mut dyn Any` ( #1552 )
3 years ago
Emil Ernerfeldt
dc26890a80
Release 0.18.0 - Shape::Callback, Table, and better text contrast
3 years ago
Emil Ernerfeldt
00471f2887
Update cint 0.2 -> 0.3
3 years ago
Emil Ernerfeldt
cf0338d48f
Rust 1.60.0 + refactor cargo features ( #1467 )
* Update to rust 1.60.0
* Rename the feature `convert_bytemuck` to `bytemuck`
* Rename the feature `serialize` to `serde`.
* Make use of the "weak dependency" cargo feature
* Set rust-version = "1.60" for all crates
* egui_glow: clipboard, links, persistence & winit are now opt-in features
3 years ago
Emil Ernerfeldt
41b178b6ec
Use atomic_refcell instead of parking_lot for wasm32 targets ( #1404 )
Closes https://github.com/emilk/egui/issues/1401
3 years ago
Emil Ernerfeldt
15254f8235
Remove the single_threaded/multi_threaded feature flags ( #1390 )
Always use parking_lot for mutexes, i.e. always be multi-threaded.
Closes #1379
3 years ago
Emil Ernerfeldt
510cef02ca
Run a formatter on all toml files
3 years ago
Emil Ernerfeldt
a05520b9d3
Release 0.17.0 - Improved font selection and image handling
3 years ago