mozilla / cbindgen

A project for generating C bindings from Rust code
Mozilla Public License 2.0
2.43k stars 314 forks source link

FTBFS firefox and thunderbird with cbindgen 0.27.0 #998

Closed rautyrauty closed 2 months ago

rautyrauty commented 2 months ago

I build rpm packages with thunderbird and firefox. After updating cbindgen in the distribution repository from 0.26.0 to 0.27.0, firefox and thunderbird cannot be built. I am sending logs to firefox only because the error is the same and they have a common git repository.

The lines with the error from cbindgen:

0:29.88 thread 'main' panicked at src/bindgen/config.rs:1125:34:
 0:29.88 called `Result::unwrap()` on an `Err` value: "Couldn't parse config file: TOML parse error at line 363, column 1\n    |\n363 | \"Keyframe\" = \"Keyframe\"\n    | ^\nduplicate key `Keyframe` in table `export.rename`\n."

firefox-cbindgen-0260.log firefox-ftbfs-cbindgen-0270.log

emilio commented 2 months ago

See https://github.com/mozilla/cbindgen/issues/990