-
-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a global verbose option #2080
Conversation
✅ Deploy Preview for maturin-guide ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -94,6 +94,7 @@ pub struct CargoOptions { | |||
pub ignore_rust_version: bool, | |||
|
|||
/// Use verbose output (-vv very verbose/build.rs output) | |||
// Note that this duplicates the global option, but clap seems to be fine with that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels wrong but unfortunately i don't understand the cargo argument handling enough to solve this properly
✅ Deploy Preview for maturin-guide ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
9c0a1c6
to
dced2b8
Compare
dced2b8
to
10ad37b
Compare
Debugging #2079 i realized that we currently require `RUST_LOG=debug` for users to debug issues like missing inclusions. I added a global counting `-v` flag. We currently use `-v` to configure cargo verbosity level. For simplicity, it now configures both at the same time. Fine-grained control is still possible by setting `RUST_LOG`. The levels: * Default: Show build information and `cargo build` output. * `-v`: Use `cargo build -v`. * `-vv`: Show debug logging and use `cargo build -vv`. * `-vvv`: Show trace logging. This can be extended to support a quiet option.
10ad37b
to
202636d
Compare
Debugging #2079 i realized that we currently require
RUST_LOG
for users to debug issues like missing inclusions. I added a global counting-v
flag to allow users to get more verbose logging from maturin to help them diagnose their problems.We currently use
-v
to configure cargo verbosity level. For simplicity, it now configures both at the same time. Fine-grained control is still possible by settingRUST_LOG
.The levels:
cargo build
output.-v
: Usecargo build -v
.-vv
: Show debug logging and usecargo build -vv
.-vvv
: Show trace logging.This can be extended to support a quiet option.