#![forbid(unsafe_code)]
pub mod config;
pub mod edit;
pub mod error;
pub mod exec;
pub mod json_schema;
pub mod keycheck;
pub mod migrate;
pub mod module;
pub mod modules;
#[cfg(feature = "persistant")]
pub mod persistant;
pub mod project;
pub mod schema;
pub mod schema_edit;
mod typo;
pub mod value;
pub mod view;
pub mod wizard;
pub const MAX_TEXT_BYTES: usize = 1 << 20;
pub(crate) fn too_large(text: &str) -> Option<String> {
(text.len() > MAX_TEXT_BYTES).then(|| {
format!(
"the text is {} bytes, larger than the {MAX_TEXT_BYTES} this reads",
text.len()
)
})
}
pub use config::{Config, DEFAULT_ORDER, ExplainLine, Explanation, FromValue, Layer, Loader};
pub use error::{ConfigError, Errors, Origin};
pub use migrate::{MigrateError, Migrated};
pub use module::{
Action, ActionKind, Choice, ChoiceList, INTERFACE_VERSION, MIN_INTERFACE_VERSION, Module,
ModuleError, Modules, Needs, Plan,
};
pub use project::{HostFormat, HostSupplied, Projection, Skipped, Var};
pub use schema::{
Bound, MapDef, Migration, Mount, Op, Project, Schema, SchemaError, Step, TableDef, ValueDef,
When,
};
pub use value::{Row, Value, ValueType};