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

enable progress bar on all UNIX platforms #8054

Merged
merged 1 commit into from
Mar 30, 2020

Conversation

jclulow
Copy link
Contributor

@jclulow jclulow commented Mar 30, 2020

The progress bar rendered at the base of ongoing output from Cargo is presently only drawn on a subset of UNIX platforms: FreeBSD, Linux, and Mac OS. The functionality required is basic, and essentially universally available: ioctl(), TIOCGWINSZ, and STDERR_FILENO.

When your platform is not in this list, the difference in behaviour is subtle and the exact mechanism is difficult to locate. It would be better to fail to build on new ports until these definitions become available in the libc crate for those platforms.

The progress bar rendered at the base of ongoing output from Cargo is
presently only drawn on a subset of UNIX platforms: FreeBSD, Linux, and
Mac OS.  The functionality required is basic, and essentially
universally available: "ioctl()", "TIOCGWINSZ", and "STDERR_FILENO".

When your platform is not in this list, the difference in behaviour is
subtle and the exact mechanism is difficult to locate.  It would be
better to fail to build on new ports until these definitions become
available in the libc crate for those platforms.
@rust-highfive
Copy link

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Mar 30, 2020
@alexcrichton
Copy link
Member

@bors: r+

Thanks!

Looks like these #[cfg] guards were added in #4713 but as pointed out it was just portability concerns that made them necessary. Looks like this has since been fixed, so seems likely that this should work.

@bors
Copy link
Collaborator

bors commented Mar 30, 2020

📌 Commit 53094e3 has been approved by alexcrichton

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 30, 2020
@bors
Copy link
Collaborator

bors commented Mar 30, 2020

⌛ Testing commit 53094e3 with merge 536ce93...

@bors
Copy link
Collaborator

bors commented Mar 30, 2020

☀️ Test successful - checks-azure
Approved by: alexcrichton
Pushing 536ce93 to master...

@bors bors merged commit 536ce93 into rust-lang:master Mar 30, 2020
@jclulow
Copy link
Contributor Author

jclulow commented Mar 30, 2020

Thanks!

Looks like these #[cfg] guards were added in #4713 but as pointed out it was just portability concerns that made them necessary. Looks like this has since been fixed, so seems likely that this should work.

Ah! Makes sense. Thanks for the context and the quick merge!

Centril added a commit to Centril/rust that referenced this pull request Apr 2, 2020
Update cargo

8 commits in 8a0d4d9c9abc74fd670353094387d62028b40ae9..6e07d2dfb7fc87b1c9489de41da4dafa239daf03
2020-03-24 17:57:04 +0000 to 2020-03-31 03:22:39 +0000
- Fix man page typo for "Owner Options". (rust-lang/cargo#8057)
- enable progress bar on all UNIX platforms (rust-lang/cargo#8054)
- Squelch some rustdoc warnings. (rust-lang/cargo#8052)
- Remove clippy tests. (rust-lang/cargo#8053)
- Fix -Zfeatures=itarget with certain host dependencies (rust-lang/cargo#8048)
- Checking for binary that is built as an implicit dependency of an integration test. (rust-lang/cargo#8020)
- Use stabilized version of rustdoc's --crate-version (rust-lang/cargo#8039)
- Remove the `git-checkout` subcommand. (rust-lang/cargo#8040)
Centril added a commit to Centril/rust that referenced this pull request Apr 2, 2020
Update cargo

8 commits in 8a0d4d9c9abc74fd670353094387d62028b40ae9..6e07d2dfb7fc87b1c9489de41da4dafa239daf03
2020-03-24 17:57:04 +0000 to 2020-03-31 03:22:39 +0000
- Fix man page typo for "Owner Options". (rust-lang/cargo#8057)
- enable progress bar on all UNIX platforms (rust-lang/cargo#8054)
- Squelch some rustdoc warnings. (rust-lang/cargo#8052)
- Remove clippy tests. (rust-lang/cargo#8053)
- Fix -Zfeatures=itarget with certain host dependencies (rust-lang/cargo#8048)
- Checking for binary that is built as an implicit dependency of an integration test. (rust-lang/cargo#8020)
- Use stabilized version of rustdoc's --crate-version (rust-lang/cargo#8039)
- Remove the `git-checkout` subcommand. (rust-lang/cargo#8040)
@ehuss ehuss added this to the 1.44.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants