5 Commits (main)

Author SHA1 Message Date
anna b0feea938a
derive: another refactor, support generics
The two derive macros share common code now.
Furthermore, components derived from one of these
macros may use arbitrary generics.  Finally, the
uwui crate name (as in, crate or ::uwui) is being
resolved dynamically.
7 months ago
anna e79902e911
major refactor, part 2
We've reached the point where it kind of works,
albeit only with limited features: The template!
macro has the backend type parameter hardcoded to
TargetBackend as i still can't get it to infer the
type.  I'll probably remove the generic backend
parameter, though, because (1) it's annoying to
have to write everywhere and (2) it is of little
to no use in real applications (you do not create
views targeting the, say, ncurses backend when
compiling against GTK).
7 months ago
anna c0765b7dd0
[broken] major refactor, part 1
This commit introduces the first theoretical
concept for how custom components could work in
this framework, in combination with derive macros
for native and custom components.  The latter
still don't work because rustc can't infer the
Backend type parameter for custom components for
some reason.  I'm only committing this because
the diff is large enough as it is and i thought
it's a pretty good milestone for documenting the
development of this framework.  Furthermore, i'm
experiencing critical levels of being an eepy
little girl,
7 months ago
anna 3173e99797
dsl: support unnamed parameter lists
i stll don't really know my way around syn and
i'm probably using it wrong.  but then again,
this entire project is kind of an abomination
that shouldn't be used by anyone.
7 months ago
anna 9c060164ae
dsl: switch to syn 7 months ago