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

extern alloc only when 'alloc' feature is enabled #43

Merged
merged 1 commit into from
May 8, 2023

Conversation

shamchak808
Copy link

I currently use this in a no_std environment. The latest version bump broke my builds with the following error

error: no global memory allocator found but one is required; link to std or add `#[global_allocator]` to a static item that implements the GlobalAlloc trait

Looking at this crate, I noticed that there was an alloc feature added. I think a #[cfg(feature = "alloc")] was missing where extern crate alloc was added.

Let me know if I'm missing something, though. Thank you!

@Lymia Lymia merged commit 746a137 into Lymia:main May 8, 2023
@Lymia
Copy link
Owner

Lymia commented May 8, 2023

Fixed, and published a new version with this patch.

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