summaryrefslogtreecommitdiff
path: root/src/root.zig
diff options
context:
space:
mode:
authorseth <[email protected]>2024-09-20 22:22:24 -0400
committerGitHub <[email protected]>2024-09-20 22:22:24 -0400
commit44e4ec57de3b3e2fdfa6dfef91a3ca72b8cb2d94 (patch)
tree3876df05ecdfd650bee4b26e8153c6c1c2454985 /src/root.zig
parent6f9929cfb3f2a4bf12b383b3e6d7a9113ce5cf72 (diff)
feat: update to zig 0.13.0 (#24)
* chore: update flake.lock Flake lock file updates: • Updated input 'nixpkgs': 'github:NixOS/nixpkgs/9bb1e7571aadf31ddb4af77fc64b2d59580f9a39' (2024-09-05) → 'github:NixOS/nixpkgs/268bb5090a3c6ac5e1615b38542a868b52ef8088' (2024-09-19) • Updated input 'zig-overlay': 'github:mitchellh/zig-overlay/9e2cc0e99621be1b765dc95a8ec80740a685b660' (2024-09-06) → 'github:mitchellh/zig-overlay/2419eb9f968f451e2c342a69ec44112de5aa36b9' (2024-09-21) * style: use nixfmt * style: format with nixfmt * refactor: use flake-utils * fix: only use `zig` in dev shell Pulling in `zig.hook` sets variables like `ZIG_GLOBAL_CACHE_DIR` that don't work too nicely outside of a Nix build process -- as in, Zig can't access files and fails * feat: update to zig 0.13.0 * chore: remove library output This isn't needed for this example
Diffstat (limited to 'src/root.zig')
-rw-r--r--src/root.zig10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/root.zig b/src/root.zig
deleted file mode 100644
index ecfeade..0000000
--- 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);
-}