-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
replace libterm with termcolor in libtest #63725
Conversation
This commit also completely removes libterm from the tree.
r? @rkruppe (rust_highfive has picked a reviewer for you, use r? to override) |
I'm concerned about bumping the termcolor version. There is a bug between termcolor and the fwdansi crate that causes colors to go horribly wrong in cargo on windows 7 and 8. I think it would be good to get kennytm/fwdansi#1 fixed before bumping termcolor. Colors are currently broken, but they just don't display. If termcolor is updated, then the colors don't reset and it looks awful. See #55769 |
In addition to @ehuss's concern the build process for libtest is changing in #63637 which will conflict with this PR unfortunately. There's a few issues with that which are:
|
I coincidentally have a fork of termcolor that had got rid of the Also, i'm very grateful to #63637, i tried to do this change before in #62829 but it was so difficult to get it right. |
Nice, we can certainly try that. Though I'm curious what issues people foresee with trying to get winapi to build in-tree. It might be nice in the long term for libstd to start depending on it anyways. |
☔ The latest upstream changes (presumably #63637) made this pull request unmergeable. Please resolve the merge conflicts. |
@euclio need a rebase |
I would be happy to help with getting |
As mentioned by @crlf0710 now that #63637 has landed this will require both a rebase and a more substantial update. I would personally still love to see @retep998 I'd personally also love to delete |
Is the issue with linking to the custom import libraries, or depending on the import library crates at all? For the former |
I'm just hypothesizing I don't actually know if there are any issues. The best way to find out is to actually make the change and see what happens or what goes wrong. |
I started by trying to add a |
@alexcrichton Sorry, i just checked and it seems |
Sure, I've published a version with that. |
This is blocked on updating termcolor and its dependencies with |
Previously I experimented with the changes locally and found that now I don't really know how to get it right... so tricky... |
Thinking aloud: Why does libtest needs a term library anyway... |
@crlf0710 It is possible to build and invoke a test binary directly without using |
@bjorn3 It is, but ... what for? |
For example when you want to cross compile and then run the test executable on the target machine. |
I'm going to close this PR as pending (likely significant) work in the ecosystem to update the dependencies to be ready for std-inclusion via rustc-dep-of-std propagation. We can reopen once it's ready to move forward. |
This commit also completely removes libterm from the tree.
Fixes #60349.
Fixes #45728.