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

Add an alloc feature #308

Closed
fintelia opened this issue Apr 10, 2020 · 4 comments
Closed

Add an alloc feature #308

fintelia opened this issue Apr 10, 2020 · 4 comments

Comments

@fintelia
Copy link

If there was an alloc feature in addition to the std feature then parts of the library that need allocation but not the rest of the standard library could still be used in a no_std context.

This would unblock rust-lang/rust#62502, which in turn would unblock rust-lang/rust#48331.

@alexcrichton
Copy link
Member

I would be ok reorganizing things, but I would prefer that the decision that the libs team wants to solve rust-lang/rust#48331 be made first before the effort to reorganize things is put in.

@fintelia
Copy link
Author

That seems reasonable. Is there something that needs to be done to get that on the libs team agenda? The discussion on that other issue seems to have stalled.

@Amanieu
Copy link
Member

Amanieu commented Apr 10, 2020

Note that this won't really solve the issue since backtrace depends on libc, which we really don't want as a dependency of alloc.

@alexcrichton
Copy link
Member

I'm going to close this because I don't think this needs to be done at this time, and integration into libstd is a very tricky problem beyond simply shuffling imports.

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

3 participants