gir-parser

Crates.iogir-parser
lib.rsgir-parser
version0.1.1
sourcesrc
created_at2024-06-08 13:21:20.348622
updated_at2024-07-14 16:00:16.656217
descriptionGObject Introspection GIR files parser
homepage
repositoryhttps://github.com/bilelmoussaoui/gir-parser
max_upload_size
id1265738
size73,198,246
Bilal Elmoussaoui (bilelmoussaoui)

documentation

README

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());
        }
    }
}
Commit count: 23

cargo fmt