3 unstable releases

Uses new Rust 2024

new 0.2.0 May 6, 2025
0.1.1 Apr 26, 2025
0.1.0 Apr 22, 2025

#639 in Procedural macros

Download history 191/week @ 2025-04-21 33/week @ 2025-04-28

224 downloads per month

MIT/Apache

50KB
1K SLoC

Tests for proc-macro-api.

Run

Use cargo test to run the tests.

Test-option features

test_* features are test-option features. Test-option features are used for enabling optional tests. In order to enable an optional test, enable the corresponding test-option features.

  • test_normal is provided for exhaustiveness, and the tests in it are not optional.
  • test_comp_err_* will cause a compiling error. It is used for testing the error detecting and the error messages, manually.
  • test_err_* will be compiled successfully, but specific doc-tests in it will always fail to be compiled. It is used for testing the error detecting and the error messages, manually.

See Cargo.toml for the list of the test-option features.

Combination of test-options

Compatible test-option features can be enabled together. Incompatible test-option features will cause a compiling error.

A test_comp_err_* feature should not be enabled together with other test-option features.

Examples

cargo test --package proc-macro-api-tests --features test_normal

Dependencies

~72KB