Hi,
I'm developing a project that runs on an embedded device, more precisely, an Arduino Mega.
Introduction
I'm trying to use an allocator in order to be able to use Vectors. I've tried to use GitHub - rust-embedded/embedded-alloc: A heap allocator for embedded systems and replicate the following example: embedded-alloc/examples/global_alloc.rs at master · rust-embedded/embedded-alloc · GitHub, but the following error ocurrs:
Error itself
error[E0463]: can't find crate for `alloc`
--> src\main.rs:4:1
|
4 | extern crate alloc;
| ^^^^^^^^^^^^^^^^^^^ can't find crate
Question
Why doesn't it find the crate, how can it be added?
Extra data
- Compiler used: rustc 1.73.0-nightly