Skip to content

Conversation

@emilyyyylime
Copy link

Firstly, using a no_std feature is problematic due to Cargo features needing to be additive, as explicitly mentioned in the linked article.
Thankfully, this wasn't a problem a problem in practice, as the no_std feature didn't actually disable any functionality of the crate. For that same reason we can just switch to being no_std by default, and link to std just for tests.

default = []

unstable = []
no_std = []
Copy link
Owner

Choose a reason for hiding this comment

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

Are you keeping it here because removing it would be a breaking change?

Copy link
Author

Choose a reason for hiding this comment

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

oh yeah I forgot to mention that! Currently there is no mechanism in place to deprecate feature flags but tbh if we already introduced a major version bump might be worth it to bundle this in too

Copy link
Owner

Choose a reason for hiding this comment

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

Good point, let's do it

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.

2 participants