kornelski / rust-rgb

struct RGB for sharing pixels between crates
https://lib.rs/rgb
MIT License
98 stars 19 forks source link

Future Plan #131

Open ripytide opened 2 months ago

ripytide commented 2 months ago

I thought it was worth discussing the specifics of when to deprecate legacy items, several options I can think of:

There is also the question of when/how to remove the legacy items after they have been deprecated and a reasonable amount of time has passed, and what that reasonable amount of time should be.

It might also be worth documenting the decisions to these questions in the readme, so as the information is readily available to users, and then we just need to follow the plan.

kornelski commented 2 months ago

I'd like to give users some time to catch up with the existing updates and deprecations.

kornelski commented 2 months ago

I don't know how crates are going to migrate Gray now. Without the legacy flag it's not possible to swap v08 to v09, and without the Deref trick, the same source code can't be compatible with both.

ripytide commented 2 months ago

I don't see an alternative to a hard-migration for the Gray pixel type, apart from people just deciding to not migrate, which is their prerogative.