Skip to content

Commit c4d7a1c

Browse files
committed
Ensure primary root objects are marked as pub
1 parent 917f1df commit c4d7a1c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

build.zig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ pub fn build(b: *std.Build) void {
88

99
_ = b.addModule("ziglangSet", .{
1010
.root_source_file = .{ .path = "src/root.zig" },
11+
.target = target,
12+
.optimize = optimize,
1113
});
1214

1315
const main_tests = b.addTest(.{

docs/sources.tar

0 Bytes
Binary file not shown.

src/root.zig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121

2222
/// Set is just a short convenient "default" alias. If you don't know
2323
/// which to pick, just use Set.
24-
const Set = HashSetManaged;
24+
pub const Set = HashSetManaged;
2525

2626
/// HashSetUnmanaged is a conveniently exported "unmanaged" version of a hash-based Set.
27-
const HashSetUnmanaged = @import("hash_set/unmanaged.zig").HashSetUnmanaged;
27+
pub const HashSetUnmanaged = @import("hash_set/unmanaged.zig").HashSetUnmanaged;
2828
/// HashSetManaged is a conveniently exported "managed" version of a hash_based Set.
29-
const HashSetManaged = @import("hash_set/managed.zig").HashSetManaged;
29+
pub const HashSetManaged = @import("hash_set/managed.zig").HashSetManaged;
3030

3131
/// ArraySetUnmanaged is a conveniently exported "unmanaged" version of an array-based Set.
3232
/// This is a bit more specialized and optimized for heavy iteration.
33-
const ArraySetUnmanaged = @import("array_hash_set/unmanaged.zig").ArraySetUnmanaged;
33+
pub const ArraySetUnmanaged = @import("array_hash_set/unmanaged.zig").ArraySetUnmanaged;
3434

0 commit comments

Comments
 (0)