Graphite/proc-macros/src
mTvare 9303953cf8
Update #[min/max] node macro attributes to #[soft/hard]_[min/max] and make them clamp their input data (#2464)
* Fix min and max macro not enforcing limits when data flows

* Use trait based clamping

* Remove min/max from testing

* cargo fmt

* Resolve into min, and hard_min

* cargo fmt

* fix traits

* cargo fmt

* fix tests

* rename as soft_x

* Add validation code

* Clean up (not compiling because of DVec2 clamping)

* Avoid needing to add trait bounds to node definitions

* Code review

---------

Co-authored-by: Dennis Kobert <dennis@kobert.dev>
Co-authored-by: Keavon Chambers <keavon@keavon.com>
2025-04-30 23:52:27 -07:00
..
as_message.rs Update wasm-bindgen, syn and wgpu (#1398) 2023-08-23 14:53:56 +00:00
combined_message_attrs.rs Upgrade to the Rust 2024 edition (#2367) 2025-03-12 17:29:12 -07:00
discriminant.rs A few minor lints and docs (#1436) 2023-10-18 23:33:10 -07:00
helper_structs.rs Upgrade to the Rust 2024 edition (#2367) 2025-03-12 17:29:12 -07:00
helpers.rs Upgrade to the Rust 2024 edition (#2367) 2025-03-12 17:29:12 -07:00
hint.rs Fix clippy lints (#2119) 2024-11-29 22:58:49 +00:00
lib.rs Upgrade to the Rust 2024 edition (#2367) 2025-03-12 17:29:12 -07:00
transitive_child.rs Update wasm-bindgen, syn and wgpu (#1398) 2023-08-23 14:53:56 +00:00
widget_builder.rs Update #[min/max] node macro attributes to #[soft/hard]_[min/max] and make them clamp their input data (#2464) 2025-04-30 23:52:27 -07:00