mirror of
https://github.com/tauri-apps/tauri.git
synced 2025-01-04 17:18:56 +03:00
1453d4bf84
* 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> |
||
---|---|---|
.. | ||
dist | ||
src-tauri | ||
package.json | ||
README.md | ||
yarn.lock |
Splashscreen example
This example demonstrates how a splashscreen can be implemented when waiting on an initialization code on Rust or on the UI.
Running the example
Run the following scripts on the root directory of the repository:
# runs the example that wait on a Rust initialization script to show the main window
$ cargo run --bin splashscreen
# runs the example that wait on the UI to load to show the main window
$ cargo run --bin splashscreen --features ui