4 ms·
> you don't need to include packages for strings, refcounting, allocation, etc. Oh, but you do! These are in std::str, std::rc, and std::alloc, respectively.
by octoberfranklin 6y ago
> you don't need to include packages for strings, refcounting, allocation, etc.
Oh, but you do!
These are in std::str, std::rc, and std::alloc, respectively. You're absolutely able to choose not to include these packages, with #![no_std]. That's how rust is able to target platforms like 8-bit microcontrollers with 16kbytes of RAM.
https://rust-embedded.github.io/book/intro/no-std.html https://rust-embedded.github.io/book/intro/no-std.html