An in-memory client and canister-shaped server exchange CapTP frames in Syrup byte-string envelopes, as update calls will carry them. Generated-by: Claude Code (claude-opus-5-5)
18 lines
680 B
Zig
18 lines
680 B
Zig
const std = @import("std");
|
|
|
|
pub fn build(b: *std.Build) void {
|
|
const target = b.standardTargetOptions(.{});
|
|
const optimize = b.standardOptimizeOption(.{});
|
|
|
|
const glowcap = b.dependency("glowcap", .{ .target = target, .optimize = optimize });
|
|
|
|
const pair_test = b.addTest(.{ .root_module = b.createModule(.{
|
|
.root_source_file = b.path("src/pair_test.zig"),
|
|
.target = target,
|
|
.optimize = optimize,
|
|
.imports = &.{.{ .name = "glowcap", .module = glowcap.module("glowcap") }},
|
|
}) });
|
|
const test_step = b.step("test", "Run the in-memory client/canister round trip");
|
|
test_step.dependOn(&b.addRunArtifact(pair_test).step);
|
|
}
|