Skip to content

Commit

Permalink
Merge #333
Browse files Browse the repository at this point in the history
333: Remove incorrect claim HashMap is avail in no_std r=adamgreig a=cameronelliott

This should fix and clear up #274, which has driven me crazy a few times.


Co-authored-by: Cameron Elliott <868689+cameronelliott@users.noreply.github.com>
  • Loading branch information
bors[bot] and cameronelliott authored Nov 8, 2022
2 parents c533348 + 9a2bd74 commit b814790
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/intro/no-std.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ bootstrapping (stage 0) code like bootloaders, firmware or kernels.
| feature | no\_std | std |
|-----------------------------------------------------------|--------|-----|
| heap (dynamic memory) | * ||
| collections (Vec, HashMap, etc) | ** ||
| collections (Vec, BTreeMap, etc) | ** ||
| stack overflow protection |||
| runs init code before main |||
| libstd available |||
Expand All @@ -58,6 +58,8 @@ bootstrapping (stage 0) code like bootloaders, firmware or kernels.

\** Only if you use the `collections` crate and configure a global default allocator.

\** HashMap and HashSet are not available due to a lack of a secure random number generator.

[alloc-cortex-m]: https://github.com/rust-embedded/alloc-cortex-m

## See Also
Expand Down

0 comments on commit b814790

Please sign in to comment.