slint/internal/compiler/parser-test-macro
Simon Hausmann 96d7bb132c reuse: remove glob for markdown files
Instead, place the copyright and license right into the source.

To satisfy reuse, this also removes the unnecessary MIT.txt
symlinks.
2023-08-17 08:55:28 +02:00
..
Cargo.toml Bump version number to 1.2.0 2023-07-25 10:44:53 +00:00
lib.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
README.md reuse: remove glob for markdown files 2023-08-17 08:55:28 +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.