I just recently started to use a Rust on the ARM microcontroller. Im staring up MCU in C and then pass controll to the Rust. Everything is going well, but I’m stuck on importing a libraries. How can I use a String?
I compiled libcore, liballoc, libstd_unicode and libcollections.
I put all compiled crates in the rust_libs folder and then compile with
rustc -Z no-landing-pads --target thumbv7m-none-eabi -g --emit obj --crate-type staticlib -L …/rust_libs/ -o …/Debug/Src/rust.o …/Src/main.rs
When I try to use String it gives me an error:
10 | name: String
| ^^^^^^ not found in this scope