lust/
lib.rs

1#![allow(improper_ctypes)]
2#![cfg_attr(not(feature = "std"), no_std)]
3
4extern crate alloc;
5
6pub mod ast;
7pub mod builtins;
8pub mod bytecode;
9pub mod config;
10#[cfg(feature = "std")]
11pub mod embed;
12pub mod error;
13#[cfg(feature = "std")]
14pub mod ffi;
15pub mod jit;
16mod lazy;
17pub mod lexer;
18pub mod modules;
19pub mod number;
20#[cfg(all(feature = "packages", not(target_arch = "wasm32")))]
21pub mod packages;
22pub mod parser;
23pub mod typechecker;
24pub mod vm;
25#[cfg(target_arch = "wasm32")]
26pub mod wasm;
27pub use ast::{Expr, Item, Span, Stmt, Type};
28pub use bytecode::{Chunk, Compiler, Function, Instruction, Value};
29pub use config::{ConfigError, LustConfig};
30#[cfg(feature = "std")]
31pub use embed::{
32    struct_field, ArrayHandle, EmbeddedBuilder, EmbeddedProgram, EnumInstance, FromLustValue,
33    FunctionArgs, IntoLustValue, MapHandle, StructField, StructInstance, ValueRef,
34};
35pub use error::{LustError, Result};
36pub use jit::{JitCompiler, JitState};
37pub use lexer::{Lexer, Token, TokenKind};
38pub use modules::{LoadedModule, ModuleImports, ModuleLoader, Program};
39pub use number::{LustFloat, LustInt};
40#[cfg(all(feature = "packages", not(target_arch = "wasm32")))]
41pub use packages::{
42    build_local_module, collect_stub_files, load_local_module, stub_files_from_exports,
43    write_stub_files, LoadedRustModule, LocalBuildOutput, LocalModuleError, PackageKind,
44    PackageManager, PackageSpecifier, StubFile,
45};
46pub use parser::Parser;
47pub use typechecker::{FunctionSignature, TypeChecker, TypeCollection};
48pub use vm::{NativeExport, NativeExportParam, VM};