Skip to content

Fix #12280: replace difference crate with similar - #12282

Merged
fdncred merged 2 commits into
nushell:mainfrom
devyn:replace-difference-crate
Mar 26, 2024
Merged

fdncred merged 2 commits into
nushell:mainfrom
devyn:replace-difference-crate

Conversation

@devyn

@devyn devyn commented Mar 25, 2024

Copy link
Copy Markdown
Contributor

Fixes #12280.

Description

This removes the dependency on the difference crate, which is unmaintained, for nu-plugin-test-support. The similar crate (Apache-2.0) is used instead, which is a bit larger and more complex, but still suitable for a dev dep for tests. Also switched to use crossterm for colors, since similar doesn't come with any terminal pretty printing functionality.

User-Facing Changes

None - output should be identical.

Tests + Formatting

  • 🟢 toolkit fmt
  • 🟢 toolkit clippy
  • 🟢 toolkit test
  • 🟢 toolkit test stdlib

@fdncred

fdncred commented Mar 25, 2024 •

Copy link
Copy Markdown
Contributor

We typically use nu-ansi-term for coloring since it's one of our maintained crates and probably is included in most places already. I think it would be better if we used that rather than crossterm if it's possible.

@devyn

devyn commented Mar 25, 2024

Copy link
Copy Markdown
Contributor Author

We typically use nu-ansi-term for coloring since it's one of our maintained crates and probably is included in most places already. I think it would be better if we used that rather than crossterm if it's possible.

Thanks, I didn't realize that. I will fix it to use that instead.

@fdncred

fdncred commented Mar 25, 2024

Copy link
Copy Markdown
Contributor

No worries. Appreciate your help, as always. I figured you may not have heard about nu-ansi-term.

@devyn

devyn commented Mar 25, 2024

Copy link
Copy Markdown
Contributor Author

@fdncred how about now?

@fdncred

fdncred commented Mar 26, 2024

Copy link
Copy Markdown
Contributor

Let's go! Thanks

@fdncred
fdncred merged commit efe1c99 into nushell:main Mar 26, 2024
@hustcer hustcer added this to the v0.92.0 milestone Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove unmaintained difference dependency

3 participants