-
Notifications
You must be signed in to change notification settings - Fork 22
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
Semver hazard due to >=
in ratatui dependency
#32
Comments
>=
in ratatui dependency>=
in ratatui dependency
Initially I was using |
I see. It's fine to require that ratatui should actually be 0.22 if they introduced a breaking change. I wouldn't use |
From next release onwards I'll match a major version of this crate to a minor version of ratatui until it reaches 1.0 stable |
In the forthcoming Ratatui 0.30 release, the `ratatui` crate will be split into several crates: The `ratatui-core` crate will contain the core functionality of the library, This change is being made to make versions of the library easier to upgrade (as we expect the core functionality to change less frequently than the other parts of the library). Fixes: #32
In #60, I changed this library to point at ratatui-core which should have longer term stability compared with the main crate. This is still in testing, so I want to get out a release of ansi-to-tui and other widgte libs so we can ensure that this idea works across a bunch of different use cases. |
Hi, I ran into a semver hazard with this library. I depend on
ratatui 0.21
. I didcargo update
and my library broke becauseansi-to-tui 3.1
depends onratatui 0.22
. In general, I believe that using>=
is considered an anti-pattern as per the Cargo book:I suppose one fix would be to publish a different version of ansi-to-tui for each 0.x release of ratatui. I'm not sure if there's a better solution.
The text was updated successfully, but these errors were encountered: