Open SolarLiner opened 3 years ago
Can you paste the Gir.toml configuration as well?
[options]
work_mode = "sys"
library = "UPowerGlib"
version = "1.0"
target_path = "./upower-sys"
girs_dir = "./gir-files"
external_libraries = [
"GObject",
"Glib",
]
I see why it fails, the GIR file lacks a package name like here https://github.com/gtk-rs/gir-files/blob/master/Atk-1.0.gir#L7, we need a better error message for such case
I just ran into this in the wild, but from what I can tell the package attribute is deprecated, and so presumably this shouldn't be an error or required at all?
I'm trying to generate a sys crate for
upower-glib
and the tool panics:I have attached the related GIR file, to which I have applied the
fix.sh
script, without effect on the panic.UPowerGlib-1.0.gir.txt