declarative
A proc-macro library that implements a generic DSL to create complex reactive view code easier to edit and maintain.
To use it, add to your Cargo.toml:
[]
= '0.6.0'
To learn how to use macros, currently the best way is to clone the repository, read the source code of the examples in alphabetical order and run them like this:
The examples depend on gtk-rs, so you should familiarize yourself with gtk-rs a bit before:
https://gtk-rs.org/gtk4-rs/stable/latest/book/
In addition to macro features, the examples also show some usage patterns (templates, components, Elm, etc.). GTK has a pattern of its own due to its object orientation and declarative integrates well, but there is no example about it (it would be verbose and exclusive to GTK, while declarative is not GTK based).
Counter application example
The following is an implementation of the Elm architecture with gtk-rs:

use ;
use ;
// syntactic sugar for sending messages:
To execute, run:
Basic maintenance
The following commands must be executed and must not give any problems:
# and now run and check each example
If you need a changelog, maybe the commit log will help (the last ones try to have the most important details).
License
Licensed under either of Apache License, Version 2.0 (Apache-2.0.txt or http://www.apache.org/licenses/LICENSE-2.0) or MIT license (MIT.txt or http://opensource.org/licenses/MIT) at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.