1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! The Diplomat core module contains common logic between
//! the macro expansion and code generation. Right now, this
//! is primarily the AST types that Diplomat generates while
//! extracting APIs.

#![allow(clippy::needless_lifetimes)] // we use named lifetimes for clarity
#![warn(clippy::exhaustive_structs, clippy::exhaustive_enums)]

pub mod ast;
#[cfg(feature = "hir")]
pub mod hir;

mod environment;

pub use environment::{Env, ModuleEnv};