- Allow simple delegation to enum variants (#45). Implemented by @gfreezy.
- Add new
#[into]attribute for delegated function parameters. If specified, the parameter will be converted using theFromtrait before being passed as an argument to the called function. - Add new
#[try_from]attribute to delegated functions. You can use it to convert the delegated expression using theTryFromtrait. You can also use#[try_from(unwrap)]to unwrap the result of the conversion.
- Add new
#[await(true/false)]attribute to delegated functions. You can use it to control whether.awaitwill be appended to the delegated expression. It will be generated by default if the delegation method signature isasync.
- add support for
asyncfunctions. The delegated call will now use.await.
- add the option to specify inline expressions that will be used as arguments for the delegated call (Kobzol#34)
- removed
append_argsattribute, which is superseded by the mentioned expression in signature support
- add the
append_argsattribute to append attributes to delegated calls (Kobzol#31)
- fix breaking change caused by using
synprivate API (Kobzol#28)
selfcan now be used as the delegation target- Rust 1.46 introduced a change that makes it a bit difficult to use
rust-delegateimplementations generated by macros. If you have this use case, please use this workaround.