Emil Ernerfeldt
6de9d89b65
Add emath::exponential_smooth_factor
2022-07-29 16:07:35 +02:00
Emil Ernerfeldt
29973e5d02
Make document-features an opt-in dependency
2022-06-09 17:41:37 +02:00
Emil Ernerfeldt
3169ce62d5
Document feature flags using crate document-features ( #1725 )
2022-06-09 15:27:22 +02:00
Emil Ernerfeldt
f3e305a646
Replace TODO:
with TODO(emilk):
and update code guidelines
2022-05-21 16:53:25 +02:00
Emil Ernerfeldt
28efc0e1c8
emath: Implement NumExt on all integer types
2022-05-09 12:44:28 +02:00
4JX
6091370962
Add more doc-links in docstrings ( #1419 )
2022-04-03 18:18:35 +02:00
Emil Ernerfeldt
fda8189cba
Move lints list to .carg/config.toml
( #1394 )
...
That way they apply to all crates equally.
See https://github.com/EmbarkStudios/rust-ecosystem/issues/22 for why.
2022-03-21 16:54:29 +01:00
Emil Ernerfeldt
199bbef77b
Add misc documentation
2022-01-22 09:07:41 +01:00
Emil Ernerfeldt
d5efa4bbca
1.56 fix: missing_crate_level_docs -> rusdoc::missing_crate_level_docs
2021-12-26 09:56:14 +01:00
Emil Ernerfeldt
a0cd41755e
Add more clippy lints
2021-10-20 16:30:39 +02:00
Emil Ernerfeldt
e547b149ca
Improve docs, especially of epaint, and add epaint/CHANGELOG.md
2021-10-10 15:35:13 +02:00
Emil Ernerfeldt
f59abd9684
Clean up some macro syntax
2021-10-02 21:08:00 +02:00
Emil Ernerfeldt
f37180f7dc
Bump MSRV (Minimum Supported Rust Version) to 1.54.0 ( #703 )
...
1.51.0 clippy has been giving me trouble (not reporting all problems),
and so I take the easy way out and just bump MSRV.
We will upgrade to 1.56.0 once it comes around anyway
to get access to that sweet disjoint capture in closures
(https://doc.rust-lang.org/nightly/edition-guide/rust-2021/disjoint-capture-in-closures.html )
2021-09-09 00:16:06 +02:00
Emil Ernerfeldt
1fbce6b2c3
Remove everything marked deprecated
2021-08-28 11:46:30 +02:00
sigaloid
12fd4906de
Update dependencies and pass all clippy's ( #636 )
...
* Cargo update
https://pastebin.com/raw/KWNuJD9u
* Cargo clippy +nightly
* Remove deprecated clippy
* Fix unbalanced backtick (now passes cargo {+nightly,} clippy)
2021-08-20 22:31:20 +02:00
Emil Ernerfeldt
6e7e88ba80
Use old 1.51 toolchain instead of bleeding edge ( #505 )
...
* Use old 1.51 toolchain instead of bleeding edge
1.52 and 1.53 has problems with incremental compilation,
so some people chose to stay on 1.51 for now.
So let's make sure egui supports 1.51 for a while!
* Update to cint 0.2.2 to get rust 1.51.0 compatability
2021-06-23 09:16:39 +02:00
Emil Ernerfeldt
269a4538d9
clippy fixes for rust 1.53
2021-06-22 23:38:34 +02:00
Emil Ernerfeldt
6e5b52e3bc
Add features extra_asserts and extra_debug_asserts for more asserts
...
This replaces all debug_asserts with these opt-in asserts
Related: https://github.com/emilk/egui/issues/395
2021-05-17 22:38:39 +02:00
Emil Ernerfeldt
b1559963bf
Enable a bunch more clippy lints
2021-05-09 14:13:09 +02:00
Emil Ernerfeldt
4022b84ae7
group rustdoc lints under rustdoc:: prefix
2021-05-09 14:01:57 +02:00
Emil Ernerfeldt
fb5176c133
#![allow(clippy::float_cmp)] everywhere
...
it has always been an annoyance, never a help
2021-05-09 14:00:53 +02:00
Emil Ernerfeldt
4bb79a7047
Move normalize_angle to emath
2021-05-08 23:42:17 +02:00
Emil Ernerfeldt
76d5229821
CI: run cargo doc ( #309 )
...
* Deny doc errors
* Add intentional bad intradoc link to test CI
* Add cargo doc to CI
* Fix carg doc web (add wasm32 target)
* Fix intentionally broken doc-link
2021-04-15 10:35:15 +02:00
Emil Ernerfeldt
0a21b01c31
Fix nightly build: remove deprecated missing_crate_level_docs lint
...
Closes https://github.com/emilk/egui/issues/250 and
https://github.com/emilk/egui/pull/251
2021-03-31 20:00:22 +02:00
Emil Ernerfeldt
46425f1e38
Optimize: add #[inline(always)] to various low-level things
...
saves up to 20% (text tesselation), and at least 5% overall
2021-03-28 23:16:19 +02:00
Emil Ernerfeldt
5481aa8d98
Add DragValue::new and Slider::new
2021-03-27 16:03:11 +01:00
Emil Ernerfeldt
fd3444473f
Add some clippy lints
2021-03-23 19:53:31 +01:00
Emil Ernerfeldt
f5c372910c
Replace emath::clamp with f32::clamp (new in rustc 1.50)
2021-03-21 17:47:03 +01:00
Emil Ernerfeldt
c376d0bb7e
[emath] RectTransform: transforms Pos2 from one Rect to another
...
Very useful for transforming coordinate systems, e.g. for painting
2021-02-14 10:33:44 +01:00
Emil Ernerfeldt
1f2aebc25a
Improve documentation
2021-01-17 12:24:13 +01:00
Emil Ernerfeldt
a0b0f36d29
Move egui/math into new crate emath
2021-01-10 11:37:47 +01:00