I've been trying so hard to give Rust a shot. I want to get it running on this AVR. Before this point, I've written off Rust for any real usage, just because of all my experiences being plain horrible. This time, I'm really really trying to give it a fighting chance at proving itself to me. I've spent two hours on trying to get the most simple Rust program compiling and running on an Arduino Uno. However, every guide or tutorial online just does not work. My first problem was with Cargo telling me rust-src was missing from the nightly toolchain, and with ls I confirmed it was indeed missing. However, rustup was insisting it was up to date. I tried every command and every which way I could to install it, and rustup just continued to insist that it was installed. Finally, I just purged Rust from my system and reinstalled, and that seemed to work.
Now, I'm finally stuck on the compiling to the AVR. First tutorial was outdated and was a bust (crate core not found, blah blah) - so I'm trying this next one (also the only other one I could find) out. (specifically https://book.avr-rust.com). (Also yes, I tried using the cargo generate template from https://github.com/Rahix/avr-hal, which just absolutely did not work either.) I was told to use this command: cargo build --target avr-atmega328p.json -Z build-std=core --all --release to build. I ran it, and lo and behold, while compiling core, the Rust compiler segfaults.