iced-rs / iced

A cross-platform GUI library for Rust, inspired by Elm
https://iced.rs
MIT License
24.12k stars 1.12k forks source link

custom command feature missing in 0.13 #2543

Open Decodetalkers opened 1 month ago

Decodetalkers commented 1 month ago

Is your issue REALLY a bug?

Is there an existing issue for this?

Is this issue related to iced?

What happened?

In month, I make a pr in https://github.com/iced-rs/iced/pull/2146/. This pr allow to add extra action passed to iced, it is merged, and we develop https://github.com/waycrate/exwlshelleventloop this project. but now I find this feature is missing in new iced..

What is the expected behavior?

Can you help keep the feature? it is important to our program

Version

master

Operating System

macOS

Do you have any log output?

No response

Decodetalkers commented 1 month ago

I find the structure of iced is changed, not it cannot simply add a Box into actions..

Decodetalkers commented 1 month ago

Ok.. maybe I can use Action::Output<T>, and Strict T to have try_into() trait.. can be try_into my custom actions

the breaking change in 0.13 is too much.. I am afraid I cannot follow the changes

jdbosser commented 1 month ago

Regarding the breaking changes: I think this is to be expected with software that is still in active development. The maintainers of iced have warned us at several instances that breaking changes are likely.

I, for one, do want breaking changes at this moment in time, since this allows the maintainers to experiment and to find an api that makes sense. It is better for the project in the long run.

To help you out, while I have no experience working with Commands, I think that the struct you are looking for is now located at iced::Task.