What problem does it solve?
Subprocess execution in Rust can be error-prone when using direct APIs like std::process::Command or tokio::process. This skill guides adopting the vite_command crate to reliably resolve binaries, prepare commands, and execute them with predictable environments.
Core Features & Use Cases
- Resolve binaries portably across platforms via vite_command::resolve_bin.
- Build and configure commands with vite_command::build_command and shell commands with vite_command::build_shell_command.
- Run end-to-end with vite_command::run_command to combine resolution, building, and execution.
- Use cases include running linters, build tools, or any external program with controlled cwd and environment.
Quick Start
Spawn a subprocess by resolving the binary with vite_command::resolve_bin and then execute it with vite_command::build_command.