diff --git a/build.zig.zon b/build.zig.zon
new file mode 100644
index 0000000000000000000000000000000000000000..0d0a723f63f71f1afa6c8c71cd32414daa07122d
--- /dev/null
+++ b/build.zig.zon
@@ -0,0 +1,10 @@
+.{
+ .name = "uf",
+ .version = "0.0.1",
+
+ .dependencies = .{},
+
+ .paths = .{
+ "",
+ },
+}
diff --git a/src/main.zig b/src/main.zig
index c65a36b41bce665f55e175b5e4d0fba7113be8af..14eb65c02af62dcd3f90b6228567a2fd7bc5e6e2 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -18,16 +18,16 @@
var out_buf: [buf_size]u8 = undefined;
var out_index: u32 = 0;
- fn init() *const Self {
- return &Self{};
+ fn init() Self {
+ return Self{};
}
- fn flush(_: *const Self, out: Writer) !void {
+ fn flush(_: Self, out: Writer) !void {
_ = try out.write(out_buf[0..out_index]);
out_index = 0;
}
- fn writeChar(self: *const Self, out: Writer, c: u8) !void {
+ fn writeChar(self: Self, out: Writer, c: u8) !void {
if (out_index >= buf_size) {
try self.flush(out);
}
@@ -35,7 +35,7 @@ out_buf[out_index] = c;
out_index += 1;
}
- fn streamCopy(self: *const Self, in: File, out: File) !void {
+ fn streamCopy(self: Self, in: File, out: File) !void {
const reader = in.reader();
const writer = out.writer();
diff --git a/src/root.zig b/src/root.zig
deleted file mode 100644
index ecfeade1a3ac1a5959545293ac3f34625b4743ce..0000000000000000000000000000000000000000
--- a/src/root.zig
+++ /dev/null
@@ -1,10 +0,0 @@
-const std = @import("std");
-const testing = std.testing;
-
-export fn add(a: i32, b: i32) i32 {
- return a + b;
-}
-
-test "basic add functionality" {
- try testing.expect(add(3, 7) == 10);
-}