2 releases

0.1.1 Jul 14, 2024
0.1.0 Jun 8, 2024

#4 in #gobject

Download history 6/week @ 2024-09-25 6/week @ 2024-11-27 68/week @ 2024-12-04 40/week @ 2024-12-11 15/week @ 2024-12-18 12/week @ 2024-12-25 16/week @ 2025-01-01 15/week @ 2025-01-08

61 downloads per month

MIT license

7MB
3K SLoC

gir-parser

docs crates.io CI

A GObject introspection GIR files parser.

use gir_parser::{Repository, prelude::*};

fn main() {
    let repository = Repository::from_path(format!("./gir-files/Gtk-4.0.gir")).unwrap();
    for class in repository.namespace().classes().iter() {
        for method in class.methods() {
            println!("{}", method.name());
            println!("{}", method.doc().unwrap().text());
        }
    }
}

Dependencies