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 implementation has
LCell
andQCell
(fast_new
only) fully supported on no_std.If you enable the
alloc
feature, you gainQCell::new
.TCell and TLCell are supported only under the
std
feature.This shouldn't touch any functional code, just modify some imports, add feature gates, and tweak documentation.
Tests for items that aren't available are not enabled. This excludes most of the
QCell
tests when thealloc
feature is disabled, as they rely onQCell::new
. Here are the my test counts:cargo test --no-default-features
: 8 tests, 25 doc-tests.cargo test --no-default-features --features "alloc"
: 13 doc-tests, 45 doc-tests.cargo test
andcargo test --no-default-features --features "std"
: 28 tests, 92 doc-tests.There is one doc-test in lib.rs that I had to add the
std
feature-gate to, this makes it look a little funny in the source code but the resulting HTML documentation is unchanged.I just shuffled some things around in
assertions.rs
to group the feature-gated ones, but feel free to double check that I didn't accidentally delete any.