Closed ltfschoen closed 3 years ago
I've hit this issue too. I think it is a compiler version thing, but I honestly don't remember. Try downgrading?
great call, yes downgrading with rustup default nightly-2020-10-06-x86_64-apple-darwin
worked.
it also worked with the latest version nightly-2021-03-10-x86_64-apple-darwin
, so there must have been an issue with the initial version that i tried nightly-2021-03-03-x86_64-apple-darwin
.
it might be worth adding a rust-toolchain
file (doesn't have a file extension). example: https://github.com/HKalbasi/rust-arduino-generator/issues/1. it was also mentioned here https://github.com/rust-lang/cargo/issues/837
[toolchain]
channel = "nightly-2021-03-10"
components = ["rust-src"]
and add the latest known version of rust that works to it,
so a user just has to run cargo build --release
and it'll automatically download, switch to, and install the rustc version specified in the file.
then when you run rustup toolchain list
, it'll show it installed that version as:
nightly-2021-03-10-x86_64-apple-darwin (override)
heres a rust blogpost that shows the formatting of the rust-toolchain file https://blog.rust-lang.org/2020/11/27/Rustup-1.23.0.html#new-format-for-rust-toolchain
@JoshOrndorff we can close this issue, but just wondering whether you think it would be helpful to use the rust-toochain file in the repo?
Glad that helped you
Yeah, I think a rust-toolchain file would be great. Moonbeam uses one and I've really enjoyed not having to guess what nightly compiler might work.
I'm no longer the maintainer of this repo anymore though; just an open source contributor. Maybe open another ticket to add that. (Or even a PR :) )
Nice example from the arduino work. Out of curiosity, were you doing some embedded development?
If we just upgrade recipe to Substrate to v3 and using the latest stable Rust compiler and that would solve it.
I started working on the update. I hope to stick with it this week, but we'll see if time permits. Feel free to keep working (especially on the pallet tests) https://github.com/joshOrndorff/recipes/tree/joshy-3.0
close with #419
I just did a fresh clone of the 'master' branch of this repo and got the following error when i ran
cargo build --release
. I haven't investigated why yet, but just thought I'd report it. rustc 1.52.0-nightly (35dbef235 2021-03-02)