Skip to content

Commit

Permalink
Export as a module too, rename to bincode
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque committed May 27, 2024
1 parent a99ff65 commit 484da57
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ pub fn build(b: *std.Build) !void {
.optimize = optimize,
});

_ = b.addModule("bincode", .{
.root_source_file = .{ .path = "src/root.zig" },
.imports = &.{},
});

b.installArtifact(lib);

const tests = b.addTest(.{
Expand Down
4 changes: 2 additions & 2 deletions build.zig.zon
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.{
.name = "bincode-zig",
.name = "bincode",
// This is a [Semantic Version](https://semver.org/).
// In a future version of Zig it will be used for package deduplication.
.version = "0.12.0",

// This field is optional.
// This is currently advisory only; Zig does not yet do anything
// with this value.
//.minimum_zig_version = "0.12.0",
.minimum_zig_version = "0.12.0",

// This field is optional.
// Each dependency must either provide a `url` and `hash`, or a `path`.
Expand Down

0 comments on commit 484da57

Please sign in to comment.