corrosion-rs / corrosion

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

cbindgen: Remove CARGO_PACKAGE parameter #521

Closed jschwe closed 1 month ago

jschwe commented 2 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 2 months ago

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