Skip to content

Add alloc feature #75

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

Merged
merged 3 commits into from
Oct 12, 2020
Merged

Conversation

tormol
Copy link
Collaborator

@tormol tormol commented Sep 20, 2020

Enables AsciiString in #![no_std]-mode by using the alloc crate instead of std.
Methods using CStr or CString, and impls of Error still require std.

Is it worth adding a feature for this? (or should AsciiString be always available or still require std feature?)

Copy link
Owner

@tomprogrammer tomprogrammer left a comment

Choose a reason for hiding this comment

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

I think introducing an alloc feature in addition to the std feature can be useful on embedded platforms. Good work!

@tomprogrammer tomprogrammer merged commit 1a91033 into tomprogrammer:master Oct 12, 2020
@tormol tormol deleted the alloc_no_std branch June 10, 2022 00:33
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