1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-24 23:31:56 +02:00

Mention why we need extern crate panic_halt.

This commit is contained in:
Andrew Walbran 2023-03-20 14:24:44 +00:00
parent 4f9b354019
commit 6dd2a9f002

@ -15,5 +15,7 @@ To use `alloc` you must implement a
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
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>