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

Remove cdylib crate-type #933

Merged
merged 1 commit into from
Feb 14, 2023

Conversation

jrose-signal
Copy link
Contributor

Clients who want a cdylib (including C clients) can use cargo rustc --crate-type cdylib to override the default crate-type.

Fixes #932, see there for more explanation.

@GuillaumeGomez
Copy link
Owner

You did a lot of things that are not part of fixing the linked issue and you didn't add explanations for how to do it.

@jrose-signal
Copy link
Contributor Author

The existing instructions say "look at the Makefile", which is just as true as it was before. There's almost zero use case for pure Rust code doing this since Rust doesn't have a stable ABI. And I wasn't able to test it without fixing the C example, but I can split that to a separate PR if you want.

@GuillaumeGomez
Copy link
Owner

Please do. 👍

@jrose-signal
Copy link
Contributor Author

Split out to #934!

Clients who want a cdylib (including C clients) should use
`cargo rustc --crate-type cdylib` to override the default crate-type.
@GuillaumeGomez
Copy link
Owner

Thanks! Merging after CI is done.

@GuillaumeGomez GuillaumeGomez merged commit 97bb5f4 into GuillaumeGomez:master Feb 14, 2023
@jrose-signal jrose-signal deleted the remove-cdylib branch February 14, 2023 22:32
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.

Remove cdylib crate-type now that cargo rustc accepts --crate-type
2 participants