[Solved] Query Default Rust Target

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.

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

1 Like

Thank you!