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

Delete feature(alloc) #196

Merged
merged 1 commit into from
Dec 12, 2019
Merged

Delete feature(alloc) #196

merged 1 commit into from
Dec 12, 2019

Conversation

philipc
Copy link
Collaborator

@philipc philipc commented Dec 12, 2019

The feature alloc has been stable since 1.36.0.

The main change is in lib.rs, the rest is cleanup.

The feature `alloc` has been stable since 1.36.0.
Copy link
Owner

@m4b m4b left a comment

Choose a reason for hiding this comment

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

LGTM thanks ! And thanks for updating the readme minimum version :)


#[cfg(feature = "std")]
extern crate core;

#[cfg(all(feature = "alloc", not(feature = "std")))]
#[cfg(feature = "alloc")]
#[macro_use]
extern crate alloc;
Copy link
Owner

Choose a reason for hiding this comment

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

So this is like a “magical” external crate now, similar to core ? I just realized we had this before. And I don’t really know how it works haha

So In 1.36 what changer is that we can use this now without the alloc mod simulating it below for std targets ? (I guess stabilization means it’s available for both no_std and std configurations ?)

I should probably just read the rfc.

Anyway thanks for the refactor !

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it's the same as core, and it's always available, so we can use it all the time even for std builds on stable rust.

@m4b m4b merged commit 85507a0 into m4b:master Dec 12, 2019
@philipc philipc deleted the alloc branch December 12, 2019 06:39
@philipc philipc mentioned this pull request Dec 14, 2019
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