pavex/blueprint/
linter.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
///! Tools to lint a [`Blueprint`] for common mistakes and antipatterns.

#[derive(Debug, Clone, Copy, Eq, Ord, PartialOrd, PartialEq, Hash)]
#[non_exhaustive]
/// Common mistakes and antipatterns that Pavex
/// tries to catch when analysing your [`Blueprint`].
///
/// These issues aren't considered fatal: Pavex will still
/// generate the server SDK code.
///
/// [`Blueprint`]: crate::blueprint::Blueprint
pub enum Lint {
    /// You registered a component that's never used in the generated
    /// server SDK code.
    Unused,
}