This is a small crate that exposes two functions:
find_installed_componentto find a component installed across all toolchains managed by rustup.find_nightly_installed_componentto find a component installed across nightly toolchains managed by rustup.
If you do not have rustfmt installed locally, you can just run the unit tests by issuing this command:
cargo test --lib