pyenum-derive 0.0.2

#[derive(PyEnum)] procedural macro for the `pyenum` crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Compile-time contract for `#[derive(PyEnum)]`.
//!
//! Runs every fixture under `tests/ui/accept/` (must compile) and every
//! fixture under `tests/ui/fail/` (must fail to compile against the
//! committed `.stderr` snapshot).
//!
//! Regenerate snapshots explicitly:
//!     TRYBUILD=overwrite cargo test -p pyenum-derive --test trybuild

#[test]
fn ui() {
    let t = trybuild::TestCases::new();
    t.pass("tests/ui/accept/*.rs");
    t.compile_fail("tests/ui/fail/*.rs");
}