chip
fd8fab507c
refactor(core): remove Params and replace with strings ( #2191 )
...
* refactor(core): remove `Params` and replace with strings
* add tauri-utils to changelog
* update default runtime macro to accept type and feature
* remove accidental default feature addition
* remove changefile todo items that have no futher action
* fix clippy warning
* update changefile
* finish change file
* fix splashscreen example
* fix markdown typo [skip ci]
* remove final uses of `Params`
* add license header to new runtime module in tauri-macros
* update plugin guide to use runtime instead of params
2021-07-15 18:05:29 +08:00
Noah Klayman
f237435093
feat(macros/generate_handler): add doc comment ( #1860 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2021-05-18 22:42:34 -03:00
chip
39f8f26916
refactor(macros): explicitly pass idents ( #1812 )
2021-05-13 10:18:15 -03:00
chip
0b87532706
fix(macros): fix rest of command collisons ( #1805 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2021-05-12 12:56:16 -03:00
chip
7862ec562f
fix(macros): change invoke binding in generate handler ( #1804 )
2021-05-12 12:22:05 -03:00
Lucas Fernandes Nogueira
d36b726926
fix(macros): collision when command is named cmd ( #1802 )
2021-05-12 11:17:33 -03:00
Lucas Fernandes Nogueira
1df16b7011
chore: breaking change notice ( #1772 )
2021-05-11 01:02:19 -03:00
chip
f190f11f13
fix(core): allow !Sync futures to be used with #[command] ( #1755 )
2021-05-09 18:03:27 -03:00
chip
2f4fca7567
refactor(core): clearer case conversion + docs ( #1754 )
2021-05-09 18:02:26 -03:00
chip
e84949524c
fix(core): convert command arguments to camel case ( #1753 )
2021-05-09 15:14:48 -03:00
chip
bb8dafbe1e
feat(core): #[command] return with autoref specialization workaround fix #1672 ( #1734 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2021-05-09 08:52:20 -03:00
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
chip
1d6f418129
refactor(core): merge invoke items into single struct, allow ? ( #1683 )
2021-05-03 01:17:47 -03:00
Lucas Fernandes Nogueira
8b6f3de0ad
feat(core): add state management, closes #1655 ( #1665 )
...
* feat(core): add state management, closes #1655
* fix(tests): ignore doc example
* use a trait to manage #[command] parameters
* add docs [skip ci]
* finish command before moving into respond_async
* Revert "finish command before moving into respond_async"
This reverts commit 4651bed5bf .
* refactor: split InvokeMessage into InvokeResolver, add InvokeResponse
* feat: add managed state to the plugin interface
* feat: add commands example
* add change file [skip ci]
* cleanup clones
Co-authored-by: chip reed <chip@chip.sh >
2021-05-02 15:34:15 -03:00
Lucas Fernandes Nogueira
422dd5e2a0
fix(core): command name on plugin invoke handler ( #1577 )
2021-04-21 23:31:27 -03:00
chip
a6def7066e
Refactor(tauri): move tauri-api and tauri-updater to tauri ( #1455 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2021-04-12 01:09:41 -03:00
chip
7fab1c039b
refactor(tauri): expose all items meant to be public ( #1454 )
2021-04-11 20:44:01 -03:00
nothingismagick
bf82136466
feat(license): SPDX Headers ( #1449 )
...
* chore(licenses): api
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(licenses): scripts
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): cli/core
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): cli/tauri-bundler
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): workflows
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): require license_template in rust
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): core/tauri
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): core/tauri-api
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): core/tauri-build
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): core/tauri-codegen
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): core/tauri-macros
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): core/tauri-updater
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): core/tauri-utils
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): examples
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): cli/tauri.js
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): changefile
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): place both licenses in root
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): package.json SPDX
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): SPDX everywhere
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* fix(tauri.js): tests more time for ubuntu
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): commons conservancy language
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): add spdx file
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* fix(license): clippy
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
* chore(license): language
Signed-off-by: Daniel Thompson-Yvetot <denjell@mailscript.com >
2021-04-11 00:09:09 +02:00
Lucas Fernandes Nogueira
8b36fe0c5d
refactor: move tauri crates to /core folder ( #1444 )
2021-04-08 13:22:20 -03:00