Skip to content

Commit

Permalink
Merge pull request #1 from gballet/export-modules
Browse files Browse the repository at this point in the history
Export modules, to be used by client libraries
  • Loading branch information
jsign authored Dec 18, 2023
2 parents f08455d + 553001a commit 2bbf244
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
@@ -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" },
Expand Down
4 changes: 4 additions & 0 deletions build.zig.zon
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.{
.name = "verkle-crypto",
.version = "0.1.0",
}
5 changes: 5 additions & 0 deletions src/main.zig
Original file line number Diff line number Diff line change
@@ -1,4 +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 {}

Expand Down

0 comments on commit 2bbf244

Please sign in to comment.