Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking: Change imported library names to match Rust 1.79 #514

Merged
merged 3 commits into from
May 10, 2024

Conversation

jschwe
Copy link
Collaborator

@jschwe jschwe commented May 2, 2024

As reported in #501 cargo metadata will convert dashes in implicit library names to underscores starting with Rust 1.79 (now in beta).
To make the imported CMake target name consistent across Rust versions, corrosion will now also do the same conversion.

line 71 does the same thing.
@jschwe jschwe force-pushed the target_name_underscore branch 2 times, most recently from 8aa130f to e2d7c04 Compare May 2, 2024 17:36
jschwe added 2 commits May 2, 2024 19:41
Store the package name of the rust target as a property,
so that the user does not need to specify it.
If I'm not missing anything, then this should also
allow us to remove the `CARGO_PACKAGE` parameter
completely (in a future update).
@jschwe jschwe merged commit b11a338 into corrosion-rs:master May 10, 2024
36 checks passed
@jschwe jschwe deleted the target_name_underscore branch May 10, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant