PyO3 / maturin

Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages
https://maturin.rs
Apache License 2.0
3.36k stars 227 forks source link

Add a global verbose option #2080

Closed konstin closed 1 week ago

konstin commented 3 weeks ago

Debugging https://github.com/PyO3/maturin/discussions/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 setting RUST_LOG.

The levels:

This can be extended to support a quiet option.

netlify[bot] commented 3 weeks ago

Deploy Preview for maturin-guide ready!

Name Link
Latest commit c5533e91373de1f610d5e97e8edb366986241b6e
Latest deploy log https://app.netlify.com/sites/maturin-guide/deploys/663d39cb04333b000867673c
Deploy Preview https://deploy-preview-2080--maturin-guide.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 3 weeks ago

Deploy Preview for maturin-guide ready!

Name Link
Latest commit 202636db08ad114cbb513de6adef8e549d8f665a
Latest deploy log https://app.netlify.com/sites/maturin-guide/deploys/664ca64a74236000089da955
Deploy Preview https://deploy-preview-2080--maturin-guide.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.