7 releases
| 0.1.6 | May 8, 2023 |
|---|---|
| 0.1.5 | Apr 24, 2023 |
#45 in #declarative-macro
84 downloads per month
Used in appy
15KB
302 lines
Appy - Declarative UI Framework for Native Application
This crate contains macros for Appy.
It is published as a separate crate due to technical reasons. See this stack overflow thread.
If it is not the case any more that it needs to be separate, please let me know!
appy
Declarative cross-platform UI framework in Rust for native applications. More info in this article.

Running the examples locally
Should be as easy as cloning the code and running one of these:
cargo run --example hello --release
cargo run --example calculator --release
...
Check the examples folder for more examples. Btw, without the --release flag, it will still work, but
your impression of the performance will probably not be that good.
Running the examples on Android
First install and set up cargo-sdl-apk.
Then, running the examples on android should be as easy as locally, almost:
cargo sdl-apk run --example hello
Changing rendering backend
Appy is, by default, using SDL to render its graphics. It also supports
Glutin, which can be turned on as a feature. Check platform-examples/test-glutin
for a project that is set up to use it. Running locally is done in the same way, i.e. with cargo run, but if you want to use Glutin on Android you need to use cargo-apk instead of cargo-sdl-apk.
Live reload
If you want live reload during development this can be done with cargo-watch. Install it and run:
cargo watch -x run
Dependencies
~3MB
~61K SLoC