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

Implement support for no_std #1

Merged
merged 3 commits into from
Feb 17, 2020
Merged

Implement support for no_std #1

merged 3 commits into from
Feb 17, 2020

Conversation

CryZe
Copy link
Contributor

@CryZe CryZe commented Feb 16, 2020

It's a pretty simple fix.

@CryZe
Copy link
Contributor Author

CryZe commented Feb 16, 2020

When testing there's some weird problem where it says it can't find the global allocator. It doesn't cause the tests to fail, but it still shows it. No idea how to get rid of that.

@RReverser
Copy link
Owner

When testing there's some weird problem where it says it can't find the global allocator. It doesn't cause the tests to fail, but it still shows it. No idea how to get rid of that.

I guess for now you could use something like #![cfg_attr(not(doctest), no_std)]?

@RReverser
Copy link
Owner

RReverser commented Feb 17, 2020

So yeah, the error is essentially rust-lang/rust#52243 and seems fixed on nightly. For now, let's just go with an attribute like above.

This is to avoid confusion between link docs and regular types.
@RReverser RReverser changed the title Implement Support for no_std Implement support for no_std Feb 17, 2020
@RReverser RReverser merged commit 2fb5410 into RReverser:master Feb 17, 2020
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