1pub mod attestation;
2pub mod compact;
3pub mod graph;
4pub mod qual_file;
5pub mod scoring;
6
7#[cfg(feature = "cli")]
8pub mod cli;
9
10#[derive(Debug, thiserror::Error)]
12pub enum Error {
13 #[error("I/O error: {0}")]
14 Io(#[from] std::io::Error),
15
16 #[error("JSON error: {0}")]
17 Json(#[from] serde_json::Error),
18
19 #[error("cycle detected in {context}: {detail}")]
20 Cycle { context: String, detail: String },
21
22 #[error("{0}")]
23 Validation(String),
24
25 #[error("{0}")]
26 CheckFailed(String),
27}
28
29pub type Result<T> = std::result::Result<T, Error>;