pub fn check(
dir: PathBuf,
check_opts: &CheckOpts,
tools: &Tools,
global_opts: &Opts,
) -> Result<i32, ExecutionError>Expand description
Checks the user’s app by checking their code and building it. This will
first run cargo check, and then cargo check --target wasm32-unknown-unknown, so we can error quickly on compilation errors.
If those both succeed, then we’ll actually try to generate build artifacts,
which is the only other place a Perseus can reasonably fail at build-time.