Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR turns changes the
std
feature flag to do nothing, and always compiles as ano_std
crate.It also enables all code to compile and run with
--no-default-features
and with--all-features
. Before this commit, running e.g.cargo test --no-default-features
would fail both on stable and nightly.Note that this introduces a bit of noise in the output when running
cargo test
. It looks like this:error: no global memory allocator found but one is required [...]
Now obviously this looks like it's an error, but it is actually safe to ignore does not actually affect the tests at all. See this comment for more context.
Note also, that nightly clippy gives two additional warnings about doctests in
raw_vec.rs
. I chose to ignore these, as the tests do not actually work as far as I can tell, are not actually run (they areignore
) and are they part of any public interface.I promise this is the last PR I will bother you with for now. 😉