-
Notifications
You must be signed in to change notification settings - Fork 223
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure that you are using an AVR target! You may need to change directories or pass a --target flag to cargo #137
Comments
You need to read the instructions more carefully ;) This part: [build]
target = "avr-atmega328p.json"
[unstable]
build-std = ["core"] does not belong into Also, you need more directives in your |
@Rahix Thanks for your help! I've now created the
Any suggestions? |
Please try using rustup toolchain install nightly-2021-01-07
rustup override set nightly-2021-01-07 Also, you should probably pin the version of avr-hal in your dependencies like this: [dependencies.arduino-uno]
git = "https://github.com/rahix/avr-hal"
rev = "b1aedf824fcb59078f8022d4464b2835ae4bd83a" |
Thanks, this now worked! Only issue is that my IDE is showing errors as rust language server is not available on that nightly date, and it's hard to find the most recent nightly build before the 8th jan that includes rls. Thanks again for your help! |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
I'm on windows
I'm getting this error when I follow online tutorials. My cargo.toml:
And my
main.rs
:Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: