Skip to main content

Crate cljrs_stdlib

Crate cljrs_stdlib 

Source
Expand description

Built-in standard library namespaces for clojurust.

Registers clojure.string, clojure.set, and clojure.test into a runtime so they are available via (require ...) without needing source files on disk.

§Entry point

use cljrs_runtime::{ExecutionMode, Runtime};

let runtime = Runtime::builder()
    .execution_mode(ExecutionMode::Tiered)
    .build()
    .expect("bootstrap");
cljrs_stdlib::install(&runtime);

This package is an extension: it does not construct runtimes and does not decide execution modes. install adds namespaces to a runtime the caller already built — the CLI, an embedding host, or the AOT compiler picks the mode, source paths, and GC limits.

register is the same thing addressed by GlobalEnv, for callers that only hold an environment handle.

Modules§

io
Native implementations for clojure.rust.io.

Functions§

install
Install every built-in stdlib namespace into runtime.
register
Register all built-in stdlib namespaces into globals.