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

New feature to opt-in c2rust to compile zstd to pure rust? #313

Open
NobodyXu opened this issue Dec 19, 2024 · 1 comment
Open

New feature to opt-in c2rust to compile zstd to pure rust? #313

NobodyXu opened this issue Dec 19, 2024 · 1 comment

Comments

@NobodyXu
Copy link
Contributor

trifectatechfoundation/bzip2-rs#40 (comment)

bzip2 has added a new feature, to opt in to use libbz2-rs-sys, a pure-rust implementation created by calling c2rust on the original C codebase.

This results in a pure-rust implementation that is:

  • easier to cross compile
  • No external c compiler needs to be installed
  • No build-script or build-script dependencies
  • pure rust implementation of bzip2 can be LTO against rust code, without having to configure the system to use the same clang version to compile

I believe zstd would also benefit from having a pure-rust implementation gated by a feature?

@NobodyXu
Copy link
Contributor Author

I have tried this out today and encountered several errors, reported to upstream immunant/c2rust#1193

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

No branches or pull requests

1 participant