statum-macros 0.7.0

Proc macros for representing legal workflow and protocol states explicitly in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: Error: `#[validators(TaskMachine)]` on `impl DbRow` method `is_published` uses `#[cfg]`, but Statum does not support conditionally compiled validator methods.
       Fix: move the cfg gate to the whole `#[validators(TaskMachine)]` impl or split cfg-specific rebuild surfaces into separate impls.
  --> tests/ui/invalid_validators_cfg_method.rs:37:5
   |
37 | /     #[cfg(any())]
38 | |     fn is_published(&self) -> statum::Result<()> {
39 | |         if self.status == "published" {
40 | |             Ok(())
...  |
44 | |     }
   | |_____^

error[E0601]: `main` function not found in crate `$CRATE`
  --> tests/ui/invalid_validators_cfg_method.rs:45:2
   |
45 | }
   |  ^ consider adding a `main` function to `$DIR/tests/ui/invalid_validators_cfg_method.rs`