Skip to content
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

Hide dependencies in build messages #11003

Closed
kkocdko opened this issue Aug 17, 2022 · 2 comments
Closed

Hide dependencies in build messages #11003

kkocdko opened this issue Aug 17, 2022 · 2 comments
Labels
A-console-output Area: Terminal output, colors, progress bar, etc. C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@kkocdko
Copy link

kkocdko commented Aug 17, 2022

Problem

Currently, cargo build's output includes dependencies:

   < many many messages that fill my terminal >
   Compiling hyper v0.14.20
   Compiling hyper-rustls v0.23.0
   Compiling axum v0.5.15
    Building [=======================> ] 177/180: axum, ksite

I'm modifying a crate which depended by many dependencies, every time cargo build will put many many messages into my terminal, this prevent me to browse previous error message or my app's output.

Yeah I can use --quiet, but waiting without progress is quite anxiety. IMO maybe this will be fine:

    Building [=======================> ] 177/180: axum, ksite

Only one line, indicate the progress.

There is already a --message-format=short switch but it seems do the same with human format:

MessageFormat::Human
| MessageFormat::Short
| MessageFormat::Json {
render_diagnostics: true,

Proposed Solution

MessageFormat::Short seems useless now, could we let it display progress only?

Or, add a new MessageFormat::Progress to do this?

Notes

( If cargo refused to add this, maybe I wlll create a sub command...

@kkocdko kkocdko added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Aug 17, 2022
@epage
Copy link
Contributor

epage commented Aug 17, 2022

There is also an semi-active discussion on build output at #8889

@epage epage added the A-console-output Area: Terminal output, colors, progress bar, etc. label Aug 17, 2022
@kkocdko
Copy link
Author

kkocdko commented Aug 17, 2022

There is also an semi-active discussion on build output at #8889

Ok I'll try to create / find a sub command. It seems that no many people care about this...

@kkocdko kkocdko closed this as completed Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-console-output Area: Terminal output, colors, progress bar, etc. C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

2 participants