Commit Graph
7 Commits
Author SHA1 Message Date
Jonas Platte d84136e1e4 Centralize lint configuration (#3055) 2024-11-30 16:53:48 +01:00
AlphaKeks 74eac39e06 Fix clippy warning on FromRef derive macro (#2827) 2024-07-09 23:08:59 +02:00
David Pedersen cfb5df7050 Give better error if generics are used with #[derive(FromRef)] (#1874) 2023-03-22 14:48:27 +01:00
Jules Guesnon 67422bb1c2 Allow clone_on_copy for FromRef (#1749) 2023-02-12 12:16:53 +01:00
Alexander Jackson b6c282a2b7 Fix warnings for cloning references in generated code (#1676) 2023-01-05 11:50:02 +01:00
David Pedersen 7d58d49817 Add #[from_ref(skip)] (#1537)
For skipping individual fields.
2022-11-18 12:05:10 +01:00
David Pedersen 9c0a89cd09 Add #[derive(FromRef)] (#1430)
* add `#[derive(FromRef)]`

* tests

* don't support skipping fields

probably wouldn't work at all since the whole state likely needs `Clone`

* UI tests

* changelog

* changelog link

* revert hello-world example, used for testing

* Re-export `#[derive(FromRef)]`

* Don't need to return `Result`

* use `collect` instead of quoting the iterator

* Mention it in axum's changelog
2022-10-10 18:40:14 +00:00