[Solved] Query Default Rust Target

#1

Is there any way to query the target that rustc/cargo will target by default? I know you can query rustup, but I’d prefer to not depend on the toolchain being installed via rustup. In my scenario I’d like this to work even if rustup wasn’t used.

0 Likes

#2

rustc --version --verbose prints host, and I believe target defaults to host.

1 Like

#3

Thank you!

0 Likes