summaryrefslogtreecommitdiff
path: root/dev/root.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 21:23:22 -0300
committerGabriel Schneider <[email protected]>2026-11-18 21:43:03 -0300
commitf9a3179542012ec1a700e2020ac9f616b819f972 (patch)
tree73f4cb241876196331f7b28c9f773301bd341a7f /dev/root.zig
parenta75956bb3443aa8aac778d2ff12c42f5ef99e0e9 (diff)
downloadpardes-f9a3179542012ec1a700e2020ac9f616b819f972.tar.gz
pardes-f9a3179542012ec1a700e2020ac9f616b819f972.zip
dev: the frontends (dev/tui, dev/gui, the macOS app's Swift and resources in dev/macos), host_io, file_watch, fonts, the lsp client and Scip, Art, jump_trail, glide and vaxis_input into dev/ (the reorganisation's tree, step 2b): module `dev` (dev/root.zig) beside the core and the runtime, each naming the others; the window wired into it, sketchbook's devices imported as `sketchbook` (its `dev` would be ours); pardes.zig keeps its re-exports (host_io, file_watch, glide, fonts) so every caller reads as before; core-test and shell-test run the devices' test program too, so the same tests run (the ledger, tui and gui); nothing else changes: frames byte-identical, replicas and process-test the base's
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'dev/root.zig')
-rw-r--r--dev/root.zig34
1 files changed, 34 insertions, 0 deletions
diff --git a/dev/root.zig b/dev/root.zig
new file mode 100644
index 00000000..2c70783f
--- /dev/null
+++ b/dev/root.zig
@@ -0,0 +1,34 @@
+//! The devices: the frontends (tui, gui; the macOS app's Swift and
+//! resources in macos/), the host's services (host_io), the file watcher,
+//! the fonts installed, the language servers' client and the SCIP index,
+//! and what the frontends share (Art, jump_trail, glide, vaxis_input).
+//! Module `dev`, naming `core` and `runtime`.
+pub const tui = @import("tui/tui.zig");
+pub const gui = @import("gui/gui.zig");
+pub const host_io = @import("host_io.zig");
+pub const file_watch = @import("file_watch.zig");
+pub const fonts = @import("fonts.zig");
+pub const lsp_client = @import("lsp/lsp_client.zig");
+pub const Scip = @import("lsp/Scip.zig");
+pub const Art = @import("Art.zig");
+pub const jump_trail = @import("jump_trail.zig");
+pub const glide = @import("glide.zig");
+pub const vaxis_input = @import("vaxis_input.zig");
+
+test {
+ _ = host_io;
+ _ = host_io.Shell;
+ _ = host_io.Lsp;
+ _ = file_watch;
+ _ = fonts;
+ _ = lsp_client;
+ _ = Scip;
+ _ = glide;
+ // The frontends', which main.zig's test block collected: a shell's
+ // build (shell-test); the core without a terminal never compiled them.
+ if (comptime @import("term_options").terminal) {
+ if (comptime @import("pardes_config").platform == .tui) _ = tui;
+ if (comptime @import("pardes_config").platform == .gui) _ = gui;
+ _ = vaxis_input;
+ }
+}