You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
74: Simplify cargo bins and reorganize functions in lib.rs r=therealprof a=ZeroErrors
## Added
- Added `--no-default-features` cargo argument support
- Added `--profile` argument to allow specifying the profile to build the target package with
- Added `--frozen`, `--locked`, `--offline` cargo argument support
- Added `-Z` argument to allow use of unstable cargo features
## Fixed
- Fixed `cargo build` running for `cargo profdata` when its not required
- Fixed `--features` not allowing multiple
## Changes
- Allowed multiple levels of verbosity and verbose cargo output via `-vv` and `-vvv`
- Changed `src/bin/cargo-*.rs` to use `Tool::cargo_exec` similar to `Tool::rust_exec` used in `src/bin/rust-*.rs`
- Removed unneeded `Endian` enum and `Context::rustc_cfg`
- In-lined `Context::tool`
- Moved code so `Context` is only retrieved for `Tool::Objdump` as that's currently the only use case for it, this reduces calls to `rustc_version::version_meta()` for all other tools
- Re-split `determine_artifact` and `run` by in-lining and then extracting `args`, `cargo_build` and `cargo_build_args` functions
- Organized args to be the same order as in `cargo --help` to allow for easier comparison
- Used [`cargo clippy`](https://github.com/rust-lang/rust-clippy) to find and cleanup some minor issues
---
Few changes packed together in this one, let me know if you would prefer for it to be broken down.
Pending review of this PR, I agree it may be time for a release 😃
r? @therealprof
Co-authored-by: Zero <nick@zero.dev>
0 commit comments