Add rust_sitrep() function to report on the state of rust infrastructure to the best of our ability. Rely on cargo and rustup to determine versions of the build system, host architecture, available targets, and default toolchain. If anything is missing, suggest using rustup.
rust_sitrep() does not make an attempt to gues if the appropriate target is installed.
rextendr::rust_sitrep()
#> Rust infrastructure sitrep:
#> ✖ "rustup": not found
#> ✖ "cargo": not found
#> ✖ Cannot determine host, toolchain, and targets without "rustup"
#> ✖ "cargo" is required to build rextendr-powered packages
#> ℹ It is recommended to use "rustup" to manage "cargo" and "rustc"
#> ℹ See <https://rustup.rs/> for installation instructions
Closes #168
Add
rust_sitrep()
function to report on the state of rust infrastructure to the best of our ability. Rely oncargo
andrustup
to determine versions of the build system, host architecture, available targets, and default toolchain. If anything is missing, suggest usingrustup
.rust_sitrep()
does not make an attempt to gues if the appropriate target is installed.Created on 2023-05-13 with reprex v2.0.2
Here we pretend nothing is installed
Created on 2023-05-13 with reprex v2.0.2