3 releases

0.1.2 Mar 7, 2025
0.1.1 Jul 14, 2024
0.1.0 Jun 8, 2024

#862 in Unix APIs

Download history 76/week @ 2024-12-06 25/week @ 2024-12-13 10/week @ 2024-12-20 15/week @ 2024-12-27 15/week @ 2025-01-03 11/week @ 2025-01-10 122/week @ 2025-03-07 3/week @ 2025-03-14

125 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::*};

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