gir-parser

Crates.iogir-parser
lib.rsgir-parser
version
sourcesrc
created_at2024-06-08 13:21:20.348622+00
updated_at2025-03-07 21:17:28.44317+00
descriptionGObject Introspection GIR files parser
homepage
repositoryhttps://github.com/bilelmoussaoui/gir-parser
max_upload_size
id1265738
Cargo.toml error:TOML parse error at line 23, column 1 | 23 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Bilal Elmoussaoui (bilelmoussaoui)

documentation

README

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

cargo fmt