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

codegen/sys: Don't expect the crates are renamed #1542

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

bilelmoussaoui
Copy link
Member

In the past, this seemed like a decent idea but the switch to using cargo workspace proves it wasn't as we now have conflicting crates with the same names

for library in &env.config.external_libraries {
w.write_all(
format!(
"use {}_sys as {};\n",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just use foo_sys everywhere directly instead of going via the rename?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to do that, but the whole code is a mess. So for now, I just want a single file to update whenever I do a release

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, so this is just a hack for now to make things work and at a later time the whole renaming should be removed?

Maybe something @GuillaumeGomez wants to look at?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, so this is just a hack for now to make things work and at a later time the whole renaming should be removed?

Yeah, just going back to the original thing we had

In the past, this seemed like a decent idea but the switch to using
cargo workspace proves it wasn't as we now have conflicting crates
with the same names
@bilelmoussaoui
Copy link
Member Author

The CI is expected to fail, the crates have to be adapted

@bilelmoussaoui
Copy link
Member Author

Associated gtk4-rs PR gtk-rs/gtk4-rs#1587

@bilelmoussaoui bilelmoussaoui merged commit 9ebc443 into master Feb 1, 2024
5 of 7 checks passed
@bilelmoussaoui bilelmoussaoui deleted the bilelmoussaoui/dont-rename-ffi branch February 1, 2024 13:50
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.

None yet

2 participants