mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-03 01:56:12 +02:00
Mention why we need extern crate panic_halt
.
This commit is contained in:
parent
4f9b354019
commit
6dd2a9f002
@ -15,5 +15,7 @@ To use `alloc` you must implement a
|
|||||||
allocate regions of up to 2**32 bytes.
|
allocate regions of up to 2**32 bytes.
|
||||||
* If any crate in your dependency tree depends on `alloc` then you must have exactly one global
|
* If any crate in your dependency tree depends on `alloc` then you must have exactly one global
|
||||||
allocator defined in your binary. Usually this is done in the top-level binary crate.
|
allocator defined in your binary. Usually this is done in the top-level binary crate.
|
||||||
|
* `extern crate panic_halt as _` is necessary to ensure that the `panic_halt` crate is linked in so
|
||||||
|
we get its panic handler.
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user