cljrs_runtime/lib.rs
1//! The clojurust runtime: environment, builtins, tree walker, and tiered evaluation.
2//!
3//! This package is the merge of four formerly separate packages. Each is now a
4//! module:
5//!
6//! | Module | Former package | Responsibility |
7//! |---|---|---|
8//! | [`env`] | `cljrs-env` | Namespaces, vars, dynamic bindings, GC roots, loader |
9//! | [`builtins`] | `cljrs-builtins` | Native `clojure.core` functions and bootstrap source |
10//! | [`interp`] | `cljrs-interp` | Tree-walking interpreter, special forms, macros |
11//! | [`tiered`] | `cljrs-eval` | IR lowering, tier-1 IR interpreter, JIT dispatch state |
12//!
13//! The four former packages remain as thin re-export shims for one migration
14//! stage; new code should depend on `cljrs-runtime` and use these module paths.
15
16// EvalError::Thrown wraps a full Value; boxing would require pervasive changes.
17#![allow(clippy::result_large_err)]
18// Namespace/GlobalEnv use Mutex<HashMap<Arc<str>, GcPtr<Var>>> — intentionally verbose for clarity.
19#![allow(clippy::type_complexity)]
20#![allow(clippy::arc_with_non_send_sync)]
21
22pub mod builtins;
23pub mod env;
24pub mod interp;
25pub mod tiered;