3 unstable releases

Uses old Rust 2015

0.2.1 Nov 19, 2018
0.2.0 Sep 9, 2018
0.1.0 May 2, 2018

#11 in #gobject

Download history 50/week @ 2024-04-07 95/week @ 2024-04-14 85/week @ 2024-04-21 42/week @ 2024-04-28 34/week @ 2024-05-05 37/week @ 2024-05-12 38/week @ 2024-05-19 50/week @ 2024-05-26 49/week @ 2024-06-02 29/week @ 2024-06-09 36/week @ 2024-06-16 35/week @ 2024-06-23 11/week @ 2024-06-30 25/week @ 2024-07-07 50/week @ 2024-07-14 53/week @ 2024-07-21

140 downloads per month
Used in 2 crates

MIT/Apache

34KB
794 lines

gobject-subclass crates.io Build Status

Infrastructure for writing GObject subclasses in the Rust programming language, and (in the future) bindings for GObject and GIO classes.

Example usage of this can be found here

This is different to gnome-class as it does not require usage of a C#-like DSL in a heavy procedural macro, but instead works directly with Rust traits. Both are built on top of the user-level GLib/GObject/GTK gtk-rs bindings.

It will likely not support all features gnome-class will support. For example it is not easily possible to create new GObject subclasses and expose them to C with the whole instance/class struct and allow adding new virtual methods. Subclassing and overriding of existing GObject virtual methods from C however is perfectly possible.

LICENSE

gobject-subclass and all crates contained in here that are not listed below are licensed under either of

at your option.

GLib/GObject itself is licensed under the Lesser General Public License version 2.1 or (at your option) any later version: https://www.gnu.org/licenses/lgpl-2.1.html

Contribution

Any kinds of contributions are welcome as a pull request.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in gobject-subclass by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~2.5MB
~53K SLoC