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

Show the output of Cargo's build #287

Closed
alexcrichton opened this issue Sep 7, 2018 · 3 comments
Closed

Show the output of Cargo's build #287

alexcrichton opened this issue Sep 7, 2018 · 3 comments
Labels
feature request PR attached there's a PR open for this issue
Milestone

Comments

@alexcrichton
Copy link
Contributor

💡 Feature description

Compiling a crate can often take quite a long time and it's nice to know about the progress within the build when checking up on it. Would it be possible to avoid suppressing the output of cargo build and have it stream to the console?

@ashleygwilliams
Copy link
Member

i have also wanted this! i think it's possible, and i'd want it to be default, i think, though i do think we might want to give a flag option to turn it off. any one else have thoughts?

@alexcrichton
Copy link
Contributor Author

One other possibly related feature request is doing this for all possibly-long-running commands as well, for example rustup target add wasm32-unknown-unknown has its own progress bar but it doesn't show up. That runs a risk of taking a long time (megabytes over the network) and having a progress bar would be nice!

I think having an option to supress the output seems fine as well, Cargo for example supports -q which shuts up most of the default output

@fitzgen
Copy link
Member

fitzgen commented Sep 7, 2018

Personally, I'd prefer always displaying all output by default, but having a -q flag to wasm-pack which makes it not display subprocess's outputs.

It would be neat if we prefixed the output with the command that was run, eg:

cargo build (stderr): a warning message or something...
cargo build (stderr): some more warnings or whatever...
cargo build (stdout): something from stdout
[4/8] Compiling to wasm...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request PR attached there's a PR open for this issue
Projects
None yet
Development

No branches or pull requests

3 participants