bilelmoussaoui / gir-parser

A GObject introspection GIR files parser

Home Page:https://bilelmoussaoui.github.io/gir-parser/gir_parser/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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());
        }
    }
}

About

A GObject introspection GIR files parser

https://bilelmoussaoui.github.io/gir-parser/gir_parser/


Languages

Language:Rust 99.9%Language:Shell 0.1%