summaryrefslogtreecommitdiff
path: root/runtime/root.zig
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/root.zig')
-rw-r--r--runtime/root.zig26
1 files changed, 26 insertions, 0 deletions
diff --git a/runtime/root.zig b/runtime/root.zig
new file mode 100644
index 00000000..86fd9a75
--- /dev/null
+++ b/runtime/root.zig
@@ -0,0 +1,26 @@
+//! What runs a session: the daemon and a session's link to it, the
+//! upgrade, the crash file, `--addon-test`, the 9P listener and client
+//! (9p_io) over cloud9's options (9p). Module `runtime`; a product's root
+//! (main.zig, macos.zig) sits beside it as a module of its own, naming it
+//! and `core`.
+pub const daemon = @import("daemon.zig");
+pub const upgrade = @import("upgrade.zig");
+pub const crash = @import("crash.zig");
+pub const addon_test = @import("addon_test.zig");
+pub const ninep_io = @import("9p_io.zig");
+pub const ninep = @import("9p.zig");
+
+test {
+ _ = daemon;
+ _ = upgrade;
+ _ = ninep_io;
+ _ = ninep_io.Client;
+ _ = ninep;
+ // main.zig's test block collected the crash file's: a shell's build
+ // (shell-test); the core without a terminal (core-test) never compiled it.
+ if (comptime @import("term_options").terminal) _ = crash;
+ // A window's build links the window's C (font.c over FreeType and
+ // HarfBuzz) into each of its programs, and their allocator (ui_malloc
+ // and the rest) is gui.zig's.
+ if (comptime @import("term_options").terminal and @import("pardes_config").platform == .gui) _ = @import("core").gui;
+}