diplomat_core/lib.rs
1//! The Diplomat core module contains common logic between
2//! the macro expansion and code generation. Right now, this
3//! is primarily the AST types that Diplomat generates while
4//! extracting APIs.
5
6#![allow(clippy::needless_lifetimes)] // we use named lifetimes for clarity
7#![warn(clippy::exhaustive_structs, clippy::exhaustive_enums)]
8
9pub mod ast;
10#[cfg(feature = "hir")]
11pub mod hir;
12
13mod environment;
14
15pub use environment::{Env, ModuleEnv};