1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#![deny(unknown_lints)]
#![deny(renamed_and_removed_lints)]
#![forbid(unsafe_code)]
#![deny(deprecated)]
#![forbid(private_in_public)]
#![forbid(non_fmt_panics)]
#![deny(unreachable_code)]
#![deny(unreachable_patterns)]
#![forbid(unused_doc_comments)]
#![forbid(unused_must_use)]
#![deny(while_true)]
#![deny(unused_parens)]
#![deny(redundant_semicolons)]
#![deny(non_ascii_idents)]
#![deny(confusable_idents)]
#![warn(missing_docs)]
#![warn(clippy::missing_docs_in_private_items)]
#![warn(clippy::cargo_common_metadata)]
#![warn(rustdoc::missing_crate_level_docs)]
#![deny(rustdoc::broken_intra_doc_links)]
#![warn(missing_debug_implementations)]
#![deny(clippy::mod_module_files)]
#![doc = include_str!("../README.md")]
pub mod outdated;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum Error {
#[error("Error parsing JSON: {0}")]
SerdeJsonError(#[from] serde_json::Error),
#[error("Error parsing JSON (with path): {0}")]
SerdePathError(#[from] serde_path_to_error::Error<serde_json::Error>),
#[error("Error interpreting program output as UTF-8: {0}")]
Utf8Error(#[from] std::str::Utf8Error),
#[error("I/O Error: {0}")]
StdIoError(#[from] std::io::Error),
#[error("Path conversion error")]
PathConversionError,
}