slint/internal/compiler/parser-test-macro
Yuri Astrakhan 4ae2627ade A few more format arg inlining
Used these commands and some manual searching

```
cargo clippy --fix  --all-targets --workspace --exclude gstreamer-player --exclude i-slint-backend-linuxkms --exclude uefi-demo --exclude ffmpeg -- -A clippy::all -W clippy::uninlined_format_args
cargo clippy --all-targets -- -A clippy::all -W clippy::uninlined_format_args
cargo clippy --fix -- -A clippy::all -W clippy::uninlined_format_args
```
2025-02-07 06:43:19 +01:00
..
Cargo.toml Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
lib.rs A few more format arg inlining 2025-02-07 06:43:19 +01:00
README.md Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00

parser_test: a proc macro attribute that generate tests for the parser functions

The parser_test macro will look at the documentation of a function for a markdown block delimited by ```test and will feeds each line to the parser function, checking that no error are reported, and that everything was consumed

A parser function must have the signature fn(&mut impl Parser)

NOTE: This library is an internal crate of the Slint project. This crate should not be used directly by applications using Slint. You should use the slint crate instead.

WARNING: This crate does not follow the semver convention for versioning and can only be used with version = "=x.y.z" in Cargo.toml.