tauri/examples/commands/src-tauri
chip 1453d4bf84
feat(core): support generics (especially Param) in #[command] (#1622)
* wip: param argument proof of concept for #[command]

* use macros for automatic type inference in commands

* refactor command for better error handling

* remove redundant ToTokens impl for Wrapper and Handler

* create `StateP` to allow state to use type inference during commands

* wrap State instead of T

* remove accidental edit of attribute

* remove StateP

because we recommend `_: Window<P>` for type inference, the following
function types are now supported:
* Pat::Wild (arg: "_")
* Pat::Struct (arg: final path segment)
* Pat::TupleStruct (arg: final path segment)

* add wildcard, struct, and tuple struct commands to examples

* better unsupported command argument message

* feat(examples): move some commands to a separate module

* add change file

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
2021-05-05 14:32:13 -03:00
..
src feat(core): support generics (especially Param) in #[command] (#1622) 2021-05-05 14:32:13 -03:00
.gitignore feat(core): add state management, closes #1655 (#1665) 2021-05-02 15:34:15 -03:00
.license_template feat(core): add state management, closes #1655 (#1665) 2021-05-02 15:34:15 -03:00
build.rs feat(examples): add splashscreen example (#1685) 2021-05-03 11:16:51 -03:00
Cargo.toml feat(examples): add splashscreen example (#1685) 2021-05-03 11:16:51 -03:00
tauri.conf.json feat(examples): add splashscreen example (#1685) 2021-05-03 11:16:51 -03:00