tmc_langs_util/
lib.rs

1#![deny(clippy::print_stdout, clippy::print_stderr, clippy::unwrap_used)]
2
3//! Contains various helpful utilities to be used throughout the tmc-langs project.
4
5pub mod deserialize;
6pub mod error;
7pub mod file_util;
8pub mod notification_reporter;
9pub mod parse_util;
10pub mod path_util;
11pub mod progress_reporter;
12pub mod serialize;
13
14pub use error::FileError;
15use thiserror::Error;
16
17pub type JsonError = serde_path_to_error::Error<serde_json::Error>;
18#[derive(Debug, Error)]
19#[error(transparent)]
20pub enum TomlError {
21    Path(#[from] serde_path_to_error::Error<toml::de::Error>),
22    Toml(#[from] toml::de::Error),
23}
24pub type YamlError = serde_path_to_error::Error<serde_yaml::Error>;