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

no_alloc not supported #2

Closed
ayushagrawal2 opened this issue Dec 11, 2023 · 2 comments · Fixed by #3
Closed

no_alloc not supported #2

ayushagrawal2 opened this issue Dec 11, 2023 · 2 comments · Fixed by #3

Comments

@ayushagrawal2
Copy link
Contributor

I've been trying to use this library in a no_std environment, but I'm running into a compile time no global memory allocator error with test disabled. This appears to be due to the use of alloc::borrow::ToOwned. Do I need to configure something else in my environment?

I'm opening a PR with a small patch that I've been using for the past month -- feel free to ignore if it is indeed a configuration issue.

@marius-meissner
Copy link
Member

Many thanks for the issue and the PR. It looks very promising!
Just for the sake of correctness: no_std != no_alloc.

@ayushagrawal2
Copy link
Contributor Author

Thanks!

@ayushagrawal2 ayushagrawal2 changed the title no_std no longer supported? no_alloc not supported Dec 12, 2023
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 a pull request may close this issue.

2 participants