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

make libc optional #291

Closed
wants to merge 2 commits into from
Closed

Conversation

Craig-Macomber
Copy link

@Craig-Macomber Craig-Macomber commented Jan 19, 2022

Use the new namespaced-features cargo feature to make libc optional, and not included by default without breaking users of the miniz-sys feature.

This currently requires cargo nightly with -Z namespaced-features, and should be in stable in the 1.60 release, scheduled for 2022-04-07. Sometime after that, this should be safe to merge.

This PR replaces #290 which did the same thing, but as a breaking change.

This fixes #274

@alexcrichton
Copy link
Member

Awesome, thanks!

@Craig-Macomber
Copy link
Author

I'm not sure when/if you want to bump the minimum supported rust version to 1.60, but with 1.60 stable now, it is possible to merge this if you want.

@Craig-Macomber Craig-Macomber marked this pull request as ready for review April 13, 2022 02:27
@joshtriplett
Copy link
Member

@Craig-Macomber #303 should make this easier, and avoid the need for the dep: syntax.

@joshtriplett
Copy link
Member

@Craig-Macomber I've now pushed a change that eliminates the use of libc entirely; with miniz-sys support gone, we no longer need it at all.

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.

Don't depend on libc crate when only compiled with rust_backend
3 participants