79319566

Date: 2024-12-31 09:02:11
Score: 0.5
Natty:
Report link

In ratatui 0.30.0 (coming early 2025), we'll introduce a ratatui-core crate, which should be more stable and see version bumps rarely. This should solve this for most situations.

There's quite a few places where this sort of thing has come up in widget libs. This particular problem is caused by the fact that >=23 really means the largest available version that matches >=24 (i.e. 24). It does not mean any version which is also compatible with all other versions that are in the dependency tree.

Solving this more generally - if a lib wants to support multiple versions like this (0.23 and 0.24), then it's best to add a feature flag per version. You'll see this in a few different crates when there's a major breaking change (e.g. axum springs to mind as one lib where this happens). This wouldn't generally be a good idea for Ratatui libs however as we've been happy to regularly release breaking releases (and hence bump semver to indicate that). As mentioned about that will change soon.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Joshka