Since this docker image actually builds a std, it would improve build times and be closer to a typical Rust build experience if cargo-3ds could detect and avoid passing -Zbuild-std when there is a std already built for the 3ds target.
From a quick test, it seems like it could be detected by checking the existence of the directory printed by rustc --print target-libdir --target armv6k-nintendo-3ds. In the container this dir exists, but a rustup-based installation seems not to have it.
This is really a cargo-3ds issue but probably doesn't affect most users, so filing it here instead.
Since this docker image actually builds a
std
, it would improve build times and be closer to a typical Rust build experience ifcargo-3ds
could detect and avoid passing-Zbuild-std
when there is a std already built for the 3ds target.From a quick test, it seems like it could be detected by checking the existence of the directory printed by
rustc --print target-libdir --target armv6k-nintendo-3ds
. In the container this dir exists, but a rustup-based installation seems not to have it.This is really a cargo-3ds issue but probably doesn't affect most users, so filing it here instead.