Crates.io | gir-parser |
lib.rs | gir-parser |
version | 0.1.1 |
source | src |
created_at | 2024-06-08 13:21:20.348622 |
updated_at | 2024-07-14 16:00:16.656217 |
description | GObject Introspection GIR files parser |
homepage | |
repository | https://github.com/bilelmoussaoui/gir-parser |
max_upload_size | |
id | 1265738 |
size | 73,198,246 |
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());
}
}
}