7 releases (4 breaking)
0.5.0 | Aug 10, 2024 |
---|---|
0.4.0 | Mar 4, 2024 |
0.3.0 | Jul 24, 2023 |
0.2.1 | Apr 9, 2023 |
0.1.0 | Aug 31, 2021 |
#478 in Procedural macros
26 downloads per month
28KB
520 lines
Awesome GLib
Supplemental macros for glib/gio
Actions
TLDR;
struct MyWidget ...
#[awesome_glib::actions]
impl MyWidget {
fn action1(&self) ...
fn action2(&self) ...
}
impl ObjectImpl for MyWidgetPrivate {
fn constructed(&self, obj: &Self::Type) {
...
obj.register_actions(obj);
...
}
}
Dependencies
~230–670KB
~16K SLoC