elinvar 0.1.1

Find the holes in a design before you build it: a relational model finder, its command line, and an MCP server
Documentation
//! The `elinvar` command line and its MCP server (DESIGN.md sections 9.3,
//! 9.7, and 9.8). These modules serve the binary, `xtask`, and the
//! integration tests, and are not part of the stable public Rust API.

#[doc(hidden)]
pub mod audit;
#[doc(hidden)]
pub mod ci;
pub(crate) mod dates;
#[doc(hidden)]
pub mod discover;
#[doc(hidden)]
pub mod fuzz;
#[doc(hidden)]
pub mod mcp;
#[doc(hidden)]
pub mod migrations;
#[doc(hidden)]
pub mod schemas;
#[doc(hidden)]
pub mod verbs;

/// The stack of every thread that reads, translates, or solves a model.
///
/// Those passes recurse once per level of an expression tree, and the
/// readers allow trees up to 20,000 levels tall (nesting plus chained
/// operators), which the default stacks cannot hold: 1 MiB on the Windows
/// main thread, 8 MiB on the macOS and Linux one, 2 MiB on spawned threads.
/// Only touched pages are committed, so the size is a reservation.
#[doc(hidden)]
pub const MODEL_STACK: usize = 1 << 30;

/// A thread builder for model work, with a `MODEL_STACK` stack.
#[doc(hidden)]
pub fn model_thread() -> std::thread::Builder {
    std::thread::Builder::new().stack_size(MODEL_STACK)
}