Skip to content

Update taffy requirement from 0.7 to 0.8#20275

Closed
mnmaita wants to merge 4 commits intobevyengine:mainfrom
mnmaita:mnmaita/dependabot/cargo/taffy-0.8
Closed

Update taffy requirement from 0.7 to 0.8#20275
mnmaita wants to merge 4 commits intobevyengine:mainfrom
mnmaita:mnmaita/dependabot/cargo/taffy-0.8

Conversation

@mnmaita
Copy link
Member

@mnmaita mnmaita commented Jul 24, 2025

Objective

Solution

  • Updated code to work with taffy 0.8 version.

Testing

  • TBD

dependabot bot and others added 4 commits July 24, 2025 16:58
Updates the requirements on [taffy](https://github.com/DioxusLabs/taffy) to permit the latest version.
- [Release notes](https://github.com/DioxusLabs/taffy/releases)
- [Changelog](https://github.com/DioxusLabs/taffy/blob/main/CHANGELOG.md)
- [Commits](DioxusLabs/taffy@v0.7.0...v0.8.3)

---
updated-dependencies:
- dependency-name: taffy
  dependency-version: 0.8.3
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@mnmaita
Copy link
Member Author

mnmaita commented Jul 24, 2025

@nicoburns @ickshonpe @viridia hey folks! Can I get some pointers here on how to fix the remaining issues that need to be addressed for this update? These are, specifically, the Send and Sync impls for UiSurface, the assertion in test_into_length_percentage and of course making sure I didn't make any mistakes migrating the rest of the code. Thanks a lot!

@ickshonpe ickshonpe self-requested a review July 24, 2025 20:22
@ickshonpe ickshonpe added C-Dependencies A change to the crates that Bevy depends on A-UI Graphical user interfaces, styles, layouts, and widgets S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged labels Jul 24, 2025
@nicoburns
Copy link
Contributor

If you're not using calc, then you can unsafe impl Send/Sync on a newtype around Taffy. If you are using Calc, then this is safe if the Calc expr type you use is Send/Sync.

(we want to solve this on the Taffy side bit this involves some non-trivial refactoring to introduce a generic rather than using *const ())

@mnmaita
Copy link
Member Author

mnmaita commented Oct 30, 2025

Superseded by #21672

@mnmaita mnmaita closed this Oct 30, 2025
@mnmaita mnmaita deleted the mnmaita/dependabot/cargo/taffy-0.8 branch October 30, 2025 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-UI Graphical user interfaces, styles, layouts, and widgets C-Dependencies A change to the crates that Bevy depends on S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants