-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroot.zig
More file actions
32 lines (28 loc) · 970 Bytes
/
root.zig
File metadata and controls
32 lines (28 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//! Public library entry. Re-exports the modules another Zig project
//! would import via `@import("zopa")`.
//!
//! `proxy_wasm.zig` is intentionally not exported -- its `extern "env"`
//! declarations only resolve inside a wasm host, so it can't be linked
//! into a native build. The wasm artifact pulls it in directly from
//! `main.zig`.
pub const ast = @import("ast.zig");
pub const body_deps = @import("body_deps.zig");
pub const builtins = @import("builtins.zig");
pub const eval = @import("eval.zig");
pub const json = @import("json.zig");
pub const memory = @import("memory.zig");
pub const Value = json.Value;
pub const Module = ast.Module;
pub const Rule = ast.Rule;
pub const Expr = ast.Expr;
pub const evaluate = eval.evaluate;
test {
// Discover and run tests in every re-exported module.
const testing = @import("std").testing;
testing.refAllDecls(@This());
_ = ast;
_ = body_deps;
_ = builtins;
_ = eval;
_ = json;
}