YgorSouza
4ece25bd05
Keep unsafe code forbidden when puffin is disabled ( #3603 )
...
This helps document what unsafe is being used for, and prevent other
uses from going unnoticed.
2023-11-22 20:37:46 +01:00
Emil Ernerfeldt
1bbd5a9fc8
Update puffin to 0.18 ( #3600 )
...
THe profiling macros now contain unsafe code (but in a safe way), so
`#[foribd(unsafe)]` had to become `#[deny(unsafe)]`
2023-11-21 17:58:33 +01:00
Emil Ernerfeldt
6ba356d3d8
Replace Id::null() with Id::NULL ( #3544 )
...
Shorter and more idiomatic
2023-11-11 21:40:02 +01:00
Emil Ernerfeldt
b27aa27e94
Add emath::Vec2b, replacing egui_plot::AxisBools ( #3543 )
...
Thanks to `impl From<bool> for Vec2b` one can now shorten some builder
calls, like:
Previous:
```rust
egui::ScrollArea::vertical()
.auto_shrink([false; 2])
```
New:
```rust
egui::ScrollArea::vertical()
.auto_shrink(false)
```
2023-11-11 21:31:36 +01:00
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
2023-08-11 13:54:02 +02:00
Emil Ernerfeldt
8cdffc4e2d
Replace uses of RangeInclusive<f32> with emath::Rangef ( #3221 )
...
* Replace uses of `RangeInclusive<f32>` with `emath::Rangef`
* Fix doc-test
2023-08-10 13:07:00 +02:00
Emil Ernerfeldt
faf31365d2
Add emath::Rangef and helpers for splitting a Rect ( #2978 )
...
* emath: add Rangef helper
* emath: Add Rect splitting helper
* Add helper for interpolating Pos2
2023-05-08 12:20:26 +02:00
YgorSouza
8ec9233e28
Add #![forbid(unsafe_code)] where unsafe isn't needed ( #2773 )
...
To be consistent with the use of the safety badge in the README.
2023-03-29 14:39:51 +02:00
Emil Ernerfeldt
34f587d1e1
Add emath::inverse_lerp
2022-12-22 12:33:06 +01:00
Emil Ernerfeldt
367087f84f
Annotate at_least and at_most with #[must_use]
2022-12-15 15:38:31 +01:00
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 >
2022-12-06 20:42:25 +01:00
Emil Ernerfeldt
1c8cf9e3d5
Move egui::util::History to emath::History ( #2329 )
...
* Move egui::util::History to emath::History
It is a nice thing to use outside of egui,
and it is more math-related than gui-related.
* Fix doctest
2022-11-21 14:14:33 +01:00
Emil Ernerfeldt
041f2e64ba
Move all crates into a crates directory ( #1940 )
2022-08-20 10:41:49 +02:00