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

fix(cargo): adjust minimum paste version #348

Merged
merged 1 commit into from
Jul 26, 2023
Merged

Conversation

ndd7xv
Copy link
Contributor

@ndd7xv ndd7xv commented Jul 26, 2023

First of all wanted to say that I love ratatui/tui and appreciate the continued maintenance of it :)

I ran into a CI issue when trying to release a new version of my terminal hex editor that uses ratatui. The job essentially checks if the minimal versions specified in the Cargo.toml are able to compile the rust project. With how this currently works, -Z minimal-versions currently checks transitive dependencies, and I've identified the source of the error to be that the minimum required version of paste should actually be 1.0.2 instead of 1.0.

This isn't really a problem, considering that the possibility of Cargo using a paste version 1.0.0 or 1.0.1 to build this library on other peoples machines is not that high. Other transitive dependencies that ratatui relies on also have this "problem," but for my use case - since I only use the crossterm feature - makes my job go green.

(In the future, I'll modify my job to run with -Zdirect-minimal-versions, which would also make the job go green)

@joshka
Copy link
Member

joshka commented Jul 26, 2023

Thanks for the fix. https://github.com/ndd7xv/heh looks pretty neat

ratatui is using features that are currently only available in paste 1.0.2; specifying the minimum version to be 1.0 will consequently cause a compilation error if cargo is only able to use a version less than 1.0.2.
@joshka joshka added this pull request to the merge queue Jul 26, 2023
Merged via the queue into ratatui:main with commit 8db9fb4 Jul 26, 2023
@joshka joshka added this to the v0.23.0 milestone Aug 21, 2023
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.

2 participants