corrosion-rs / corrosion

Marrying Rust and CMake - Easy Rust and C/C++ Integration!
https://corrosion-rs.github.io/corrosion/
MIT License
1.1k stars 106 forks source link

cbindgen: Remove CARGO_PACKAGE parameter #521

Closed jschwe closed 6 months ago

jschwe commented 6 months ago

CARGO_PACKAGE was added in #452 to work around the package name and crate name (potentially) being different. Since b11a33 corrosion saves the package name as a target property, which we can use in corrosion_experimental_cbindgen. This allows us to remove the CARGO_PACKAGE parameter.

jschwe commented 6 months ago

CC @Rikorose (since the original PR was from you)