#declarative-ui #ui-framework #declarative #cross-platform-gui #ui #compose-ui

ribir_dev_helper

A non-intrusive declarative GUI framework, to build modern native/wasm cross-platform applications

28 releases (4 breaking)

new 0.4.0-alpha.1 Jun 12, 2024
0.3.0-alpha.5 May 1, 2024
0.3.0-alpha.1 Mar 27, 2024
0.0.1-alpha.5 Jul 4, 2023

#8 in #compose-ui

Download history 61/week @ 2024-02-14 118/week @ 2024-02-21 321/week @ 2024-02-28 171/week @ 2024-03-06 142/week @ 2024-03-13 252/week @ 2024-03-20 157/week @ 2024-03-27 136/week @ 2024-04-03 91/week @ 2024-04-10 90/week @ 2024-04-17 97/week @ 2024-05-01 3/week @ 2024-05-22 130/week @ 2024-05-29

133 downloads per month

MIT and AGPL-3.0

265KB
6K SLoC

Development Helper

This library offers macros to facilitate testing for Ribir.

Dependencies

To utilize these macros, include paste and ribir_dev_helper in the [dev-dependencies] section of your Cargo.toml. For more details, refer to the macro documentation.

Test Case Files

These macros may require reading files for testing. All such files are sourced from the test_cases directory located at the root of your workspace.

Use the RIBIR_IMG_TEST=overwrite environment variable to overwrite or generate the files. For instance, RIBIR_IMG_TEST=overwrite cargo test can be used to overwrite all test case files. For a specific test, use RIBIR_IMG_TEST=overwrite cargo test -- test_name.

For image tests, if the actual image differs from the expected one, both the actual image and the difference image are saved alongside the expected image. The difference image represents the discrepancies between the actual and expected images.

Dependencies

~31–63MB
~1M SLoC