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

Support no_std by gating std usage on a "std" feature flag #12

Merged
merged 1 commit into from
Jun 21, 2018

Conversation

tonychain
Copy link
Contributor

This adds an enabled-by-default "std" cargo feature which can be selectively removed to enable no_std support.

When the "std" feature is absent, feature(collections) will be enabled to provide Vec support. This requires nightly, but since "std" is enabled by default, this should have no impact on stable users.

@tonychain tonychain force-pushed the no_std branch 2 times, most recently from 5664d47 to 6635e21 Compare June 2, 2017 20:32
This adds an enabled-by-default "std" cargo feature which can be selectively
removed to enable no_std support.

When the "std" feature is absent, feature(alloc) will be enabled to
provide Vec support. This requires nightly, but since "std" is enabled by
default, this should have no impact on stable users.
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