-
-
Notifications
You must be signed in to change notification settings - Fork 465
Mention that examples and doctests require std
#439
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
Conversation
Also remove pointless attributes. (`#![cfg(feature="std")]` does not work for binaries, because `main` will be missing.)
Are you sure it's pointless? I'm not really sure why |
You are right, the CI fails due to this patch. Not sure why. Maybe the cargo behavior is inconsistent across Rust versions? |
Can you think of another place to add the comment? I just removed that section from the readme in #437... |
The difference is that some travis configurations run
instead of the more complete:
We could also use |
@dhardy
I'm opposed to removing the testing section if we decide against making the examples and doctests compile without
Are you sure this is the reason? AFAIK, |
Yes, because one also tests the examples, the other not. |
The documentation bits of this are superseded by #443. I think the only thing left is cleaning up the examples / CI scripts. |
Essentially this is a compromise between code simplicity/clarity and making the tests work. These changes to the examples require a few tweaks to scripts e.g.:
to (I guess):
But I'm not sure it's worth picking a different compromise than what we already have? |
So it sounds like there's no point making these changes. |
Also remove pointless attributes. (
#![cfg(feature="std")]
does not workfor binaries, because
main
will be missing.)