public inbox for yew-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [yew-devel] [RFC yew-comp/yew-widget-toolkit 0/4] make RenderFn's return type generic
@ 2025-12-10 10:48 Dominik Csapak
  2025-12-10 10:48 ` [yew-devel] [PATCH yew-widget-toolkit 1/3] pwt-macros: update tests to work for newer rustc Dominik Csapak
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Dominik Csapak @ 2025-12-10 10:48 UTC (permalink / raw)
  To: yew-devel

This series changes the RenderFn type to have a generic return type, which can replace our TextRenderFn
and allows us to do more things with it.

I send this as a preparation for some cleanups I want to do, but for those
to work better, we need this way of defining RenderFn.

Sending as RFC, since I'm not fully convinced this is a good idea,
especially extending the builder_cb macro this way, but I could not come
up with something better.

The first patch in pwt is just updating the tests to new rustc output,
can be applied independently, but is necessary to let the tests
run currently.

proxmox-yew-widget-toolkit:

Dominik Csapak (3):
  pwt-macros: update tests to work for newer rustc
  pwt-macros: builder: allow multiple generic types in callback variant
  props: make RenderFn's return type generic

 pwt-macros/src/builder.rs                    | 19 ++++-
 pwt-macros/tests/builder/invalid_type.stderr |  2 +-
 pwt-macros/tests/widget/wrong_crate.stderr   |  6 +-
 src/props/mod.rs                             |  5 +-
 src/props/render_function.rs                 | 81 +++-----------------
 src/touch/material_app.rs                    | 10 +--
 src/widget/catalog_loader.rs                 |  6 +-
 src/widget/desktop_app.rs                    |  6 +-
 src/widget/meter.rs                          |  6 +-
 src/widget/theme_loader.rs                   |  6 +-
 10 files changed, 50 insertions(+), 97 deletions(-)


proxmox-yew-comp:

Dominik Csapak (1):
  rrd: replace TextRenderFn with new generic RenderFn

 src/rrd/graph.rs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


Summary over all repositories:
  11 files changed, 54 insertions(+), 101 deletions(-)

-- 
Generated by git-murpp 0.8.1


_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-12-11  9:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-10 10:48 [yew-devel] [RFC yew-comp/yew-widget-toolkit 0/4] make RenderFn's return type generic Dominik Csapak
2025-12-10 10:48 ` [yew-devel] [PATCH yew-widget-toolkit 1/3] pwt-macros: update tests to work for newer rustc Dominik Csapak
2025-12-10 10:48 ` [yew-devel] [PATCH yew-widget-toolkit 2/3] pwt-macros: builder: allow multiple generic types in callback variant Dominik Csapak
2025-12-10 10:48 ` [yew-devel] [PATCH yew-widget-toolkit 3/3] props: make RenderFn's return type generic Dominik Csapak
2025-12-10 10:48 ` [yew-devel] [PATCH yew-comp 1/1] rrd: replace TextRenderFn with new generic RenderFn Dominik Csapak
2025-12-11  9:35 ` [yew-devel] applied: [RFC yew-comp/yew-widget-toolkit 0/4] make RenderFn's return type generic Dietmar Maurer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal