Skip to content

Conversation

@neuschaefer
Copy link
Contributor

@neuschaefer neuschaefer commented Sep 26, 2025

This PR is based on #1611 and uses @purplesyringa's work mostly unmodified. In addition, I have updated the minimum set of crates to get to a working and consistent state, esp. w.r.t. cargo-deny.

I didn't update all the dependencies, in order to do "one thing at a time" and to avoid creating an undebuggable mess.

The goal here is to remove a transitive dependency on the deprecated
`atty` crate, which trips `cargo deny` because it's unmaintained.

This currently does not eliminate the dependency completely, as we're
still waiting on `color-eyre` to release [1], and merging this PR as-is
would result in `cargo deny` being even more angry at using different
versions of the same crate, so this PR is a draft for now.

The update is non-trivial because `owo-colors` no longer supports
checking whether stdin supports colors, which is, well, reasonable.

Semantically, this cements the `Stream` trait as something that can be
printed onto, rather than a generic-purpose stream. Uses of `as_tty` are
replaced with a direct call to the `std` `is_terminal` function, and
`Stream` (now called `OwoStream`) now exclusively handles mapping `std`
I/O streams to `owo-colors` streams.

[1]: eyre-rs/eyre#215
@neuschaefer neuschaefer force-pushed the owo-updated branch 2 times, most recently from 3f58cdd to 4a4c322 Compare September 26, 2025 13:23
The `adler` crate is now deprecated. The recommended replacement is
`adler2`: https://rustsec.org/advisories/RUSTSEC-2025-0056

Update the minimal set of crates in order to remove adler, get adler2,
and have one version of owo-colors.
@neuschaefer neuschaefer marked this pull request as ready for review September 26, 2025 13:33
@neuschaefer neuschaefer requested a review from a team as a code owner September 26, 2025 13:33
@Emilgardis Emilgardis added the no-ci-targets PRs that do not affect or should skip any cross-compilation targets. label Sep 26, 2025
Copy link
Member

@Emilgardis Emilgardis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thank you!

@Emilgardis Emilgardis added this pull request to the merge queue Sep 26, 2025
Merged via the queue into cross-rs:main with commit 49cd054 Sep 26, 2025
20 checks passed
@purplesyringa purplesyringa mentioned this pull request Sep 26, 2025
@neuschaefer neuschaefer deleted the owo-updated branch September 26, 2025 15:00
@neuschaefer neuschaefer mentioned this pull request Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-ci-targets PRs that do not affect or should skip any cross-compilation targets.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants