type-state-builder 0.5.1

Type-state builder pattern derive macro with compile-time safety and enhanced ergonomics.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// UI tests for TypeStateBuilder macro
///
/// These tests verify that the macro properly rejects invalid code with appropriate
/// compile-time error messages. They use the `trybuild` crate to test compilation
/// failures and ensure error messages are helpful and accurate.
///
/// To run UI tests locally: `cargo test --features ui-tests`

#[test]
#[cfg(feature = "ui-tests")]
fn ui_tests() {
    let t = trybuild::TestCases::new();
    t.compile_fail("tests/ui/*.rs");
}