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
//! `tighterror-build` is a library, part of the `tighterror` framework, that
//! implements Rust code generation from a specification provided in a markup
//! language file.

#![deny(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]

/// The default spec file path when none is provided.
///
/// The value of this constant depends on the set of enabled markup language
/// features. If the `yaml` feature is enabled, the value is `tighterror.yaml`.
/// Otherwise the value is `tighterror.toml`.
#[cfg(feature = "yaml")]
pub const DEFAULT_SPEC_PATH: &str = "tighterror.yaml";
#[cfg(not(feature = "yaml"))]
pub const DEFAULT_SPEC_PATH: &str = "tighterror.toml";

mod coder;
pub use coder::*;

pub mod errors;

#[allow(dead_code)]
mod linter;
pub use linter::*;

pub(crate) mod parser;
pub(crate) mod spec;
pub(crate) mod util;