You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've been trying to set up a nix-shell for doing embedded Rust development for ARM. The shell I have so far can compile working binaries, which is great! Unfortunately, I can't get cargo doc to work.
error[E0463]: can't find crate for `core`|= note: the `thumbv7m-none-eabi` target may not be installed
I've found that .cargo/config allows the documentation to be built (but obviously compiling binaries doesn't work without the target specified). Also, building the project with a toolchain installed on Ubuntu with rustup successfully builds the documentation. I get the same behavior where rustup toolchains work, but nix-shell doesn't across several thumbv7m-none-eabi projects I've cloned off github.
I've searched quite a bit for other examples of this issue, but am coming up empty. The fact that it works properly with a rustup installed toolchain in a more "standard" environment, and the error asks for a toolchain that is installed (it compiles binaries!) suggests that it may be a packaging issue? Does the overlay have to add a path somewhere for rustdoc to find core for non-native builds?
I'm obviously very new at both Nix and Rust, so any help is much appreciated!
The text was updated successfully, but these errors were encountered:
Hi, I've been trying to set up a
nix-shell
for doing embedded Rust development for ARM. The shell I have so far can compile working binaries, which is great! Unfortunately, I can't getcargo doc
to work.The
shell.nix
I'm using is:And the error I am getting from
cargo doc
is:I've found that
.cargo/config
allows the documentation to be built (but obviously compiling binaries doesn't work without the target specified). Also, building the project with a toolchain installed on Ubuntu withrustup
successfully builds the documentation. I get the same behavior whererustup
toolchains work, butnix-shell
doesn't across severalthumbv7m-none-eabi
projects I've cloned off github.I've searched quite a bit for other examples of this issue, but am coming up empty. The fact that it works properly with a
rustup
installed toolchain in a more "standard" environment, and the error asks for a toolchain that is installed (it compiles binaries!) suggests that it may be a packaging issue? Does the overlay have to add a path somewhere forrustdoc
to findcore
for non-native builds?I'm obviously very new at both Nix and Rust, so any help is much appreciated!
The text was updated successfully, but these errors were encountered: