-
Hi! Throughout the examples ufmt::writeln!(&mut serial, ...); is used. If I do that I'm not able to compile and I get the following error: 48 | ufmt::uwriteln!(&mut serial, "Hello from Arduino!\r").void_unwrap();
| ^^^^ use of undeclared crate or module `ufmt` I tried to add Is this how it is intended to work? Would be great if someone could help me with that! :) |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hey! Yes, you need to add Why |
Beta Was this translation helpful? Give feedback.
-
I have the same issue regarding rust-analyzer. Here's my repo: https://github.com/nbigaouette/robot-car/tree/343b89bc397dc99761de583d744ebe8d47dfd135/rust I can cargo build and flash to my arduino uno (thanks for avr-hal!!) but rust-analyzer cannot find My guess is that rust-analyzer is confused with the target? |
Beta Was this translation helpful? Give feedback.
-
I've reported the rust-analyzer issue upstream: rust-lang/rust-analyzer#7674 |
Beta Was this translation helpful? Give feedback.
-
Turns out that |
Beta Was this translation helpful? Give feedback.
-
Okay, as this is not really something related to |
Beta Was this translation helpful? Give feedback.
Hey!
Yes, you need to add
ufmt
as a dependency to make this work. I guess the documentation should be more clear on that ...Why
rust-analyzier
is failing, I have no idea. I'm also using it and did not see any such problems so far. Can you get a more verbose output of what it is complaining about?