From 5efe16d085220f1022b86d29919334d807fff815 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Sun, 8 Oct 2023 20:39:46 +0200 Subject: [PATCH 1/3] export modules --- build.zig | 7 ++++++- src/main.zig | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 7fd39d2..02d1df2 100644 --- a/build.zig +++ b/build.zig @@ -1,9 +1,14 @@ const std = @import("std"); -pub fn build(b: *std.Build) void { +pub fn build(b: *std.Build) !void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); + const verkle_crypto_module = b.createModule(.{ + .source_file = .{ .path = "src/main.zig" }, + }); + try b.modules.put(b.dupe("verkle-crypto"), verkle_crypto_module); + const lib = b.addStaticLibrary(.{ .name = "verkle-crypto", .root_source_file = .{ .path = "src/main.zig" }, diff --git a/src/main.zig b/src/main.zig index 48c6dda..00c4dc7 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1,4 +1,6 @@ const std = @import("std"); +pub const banderwagon = @import("banderwagon/banderwagon.zig"); +pub const bandersnatch = @import("bandersnatch/bandersnatch.zig"); pub fn main() !void {} From 31eb72737b1b9353815d272a830db86e78803098 Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Sun, 8 Oct 2023 20:51:27 +0200 Subject: [PATCH 2/3] add build.zig.zon --- build.zig.zon | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 build.zig.zon diff --git a/build.zig.zon b/build.zig.zon new file mode 100644 index 0000000..3e7da9b --- /dev/null +++ b/build.zig.zon @@ -0,0 +1,4 @@ +.{ + .name = "verkle-crypto", + .version = "0.1.0", +} From 553001ac158776fbfb9d76499786544bcfd0490c Mon Sep 17 00:00:00 2001 From: Guillaume Ballet <3272758+gballet@users.noreply.github.com> Date: Mon, 9 Oct 2023 10:51:57 +0200 Subject: [PATCH 3/3] export more needed modules --- src/main.zig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.zig b/src/main.zig index 00c4dc7..e8f0e42 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1,6 +1,9 @@ const std = @import("std"); pub const banderwagon = @import("banderwagon/banderwagon.zig"); pub const bandersnatch = @import("bandersnatch/bandersnatch.zig"); +pub const crs = @import("crs/crs.zig"); +pub const ipa = @import("ipa/ipa.zig"); +pub const multiproof = @import("multiproof/multiproof.zig"); pub fn main() !void {}