Crates.io | gir-parser |
lib.rs | gir-parser |
version | |
source | src |
created_at | 2024-06-08 13:21:20.348622+00 |
updated_at | 2025-03-07 21:17:28.44317+00 |
description | GObject Introspection GIR files parser |
homepage | |
repository | https://github.com/bilelmoussaoui/gir-parser |
max_upload_size | |
id | 1265738 |
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` |
size | 0 |
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());
}
}