add bootstrap node, MWP peer discovery, and DNS resolution

This commit is contained in:
2026-02-19 17:45:32 -03:00
parent 6b8067ce9b
commit 3150b3be5a
4 changed files with 742 additions and 9 deletions

View File

@@ -227,6 +227,31 @@ pub fn build(b: *std.Build) void {
const run_mwp_step = b.step("run-mwp", "Run the MWP demo");
run_mwp_step.dependOn(&run_mwp.step);
// Bootstrap Node (headless, for VPS deployment)
const bootstrap_module = b.createModule(.{
.root_source_file = b.path("examples/bootstrap_node.zig"),
.target = target,
.optimize = optimize,
});
bootstrap_module.addImport("p2p", p2p_module);
bootstrap_module.addImport("core", core_module);
bootstrap_module.addImport("network", network_module);
bootstrap_module.addImport("mwp", mwp_module);
const bootstrap_exe = b.addExecutable(.{
.name = "bootstrap-node",
.root_module = bootstrap_module,
});
b.installArtifact(bootstrap_exe);
const run_bootstrap = b.addRunArtifact(bootstrap_exe);
run_bootstrap.step.dependOn(b.getInstallStep());
if (b.args) |args| {
run_bootstrap.addArgs(args);
}
const run_bootstrap_step = b.step("run-bootstrap", "Run the headless bootstrap node");
run_bootstrap_step.dependOn(&run_bootstrap.step);
// WebRTC Bridge demo
const bridge_demo_module = b.createModule(.{
.root_source_file = b.path("examples/webrtc_bridge_demo.zig"),
@@ -273,6 +298,7 @@ pub fn build(b: *std.Build) void {
bridge_tui_module.addImport("core", core_module);
bridge_tui_module.addImport("files", files_module);
bridge_tui_module.addImport("vaxis", vaxis_mod);
bridge_tui_module.addImport("mwp", mwp_module);
const bridge_tui = b.addExecutable(.{
.name = "webrtc-bridge-tui",