mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-01-07 08:45:24 +02:00
Mention alloc too
This commit is contained in:
parent
567a570d59
commit
20e83166f4
@ -22,9 +22,10 @@ The common vocabulary types include:
|
|||||||
|
|
||||||
<details>
|
<details>
|
||||||
|
|
||||||
* In fact, Rust contains two layers of the Standard Library: `core` and `std`.
|
* In fact, Rust contains several layers of the Standard Library: `core`, `alloc` and `std`.
|
||||||
* `core` includes the most basic types and functions that don't depend on `libc`, allocator or
|
* `core` includes the most basic types and functions that don't depend on `libc`, allocator or
|
||||||
even a presense of the operating system.
|
even the presence of an operating system.
|
||||||
* Embedded Rust applications often only use `core`.
|
* `alloc` includes types which require a global heap allocator, such as `Vec`, `Box` and `Arc`.
|
||||||
|
* Embedded Rust applications often only use `core`, and sometimes `alloc`.
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
Loading…
Reference in New Issue
Block a user