From 44e432acbca63c607007862ee26a851c13bf64fd Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Fri, 29 May 2026 15:18:40 -0700 Subject: [PATCH] init --- .gitattributes | 3 +++ .gitignore | 6 ++++++ LICENSE | 21 +++++++++++++++++++++ build.zig | 20 ++++++++++++++++++++ sys_darwin.zig | 1 + test.zig | 2 ++ zigmod.yml | 7 +++++++ 7 files changed, 60 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 build.zig create mode 100644 sys_darwin.zig create mode 100644 test.zig create mode 100644 zigmod.yml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000000000000000000000000000000000000..403c8ef104b8bf3476b7a5155be3158eae28734e --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +* text=auto +*.zig text eol=lf +zigmod.* text eol=lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..755aa68f03a30361a954cb1bfbf823ba9fa604ae --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +.zig-cache +zig-out +.zigmod +deps.zig +files.zig +zigmod.lock diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..95b48baf6e5e8d43acaa62c76b01bf7b5520b105 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Meghan Denny + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/build.zig b/build.zig new file mode 100644 index 0000000000000000000000000000000000000000..f9ffeeac66f66074b0a7bbaee04d2452b06067c5 --- /dev/null +++ b/build.zig @@ -0,0 +1,20 @@ +const std = @import("std"); +const deps = @import("./deps.zig"); + +pub fn build(b: *std.Build) void { + const target = b.standardTargetOptions(.{}); + const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug; + + const tests = b.addTest(.{ + .root_source_file = b.path("test.zig"), + .target = target, + .optimize = mode, + }); + deps.addAllTo(tests); + + const test_step = b.step("test", "Run all library tests"); + const tests_run = b.addRunArtifact(tests); + tests_run.setCwd(b.path(".")); + tests_run.has_side_effects = true; + test_step.dependOn(&tests_run.step); +} diff --git a/sys_darwin.zig b/sys_darwin.zig new file mode 100644 index 0000000000000000000000000000000000000000..95a0b682a71942e4010a9c8ee96461fb9a3b53a3 --- /dev/null +++ b/sys_darwin.zig @@ -0,0 +1 @@ +const std = @import("std"); diff --git a/test.zig b/test.zig new file mode 100644 index 0000000000000000000000000000000000000000..58baf01a80f3bf87690fa811c0dd5f2e34e0d6c0 --- /dev/null +++ b/test.zig @@ -0,0 +1,2 @@ +const std = @import("std"); +const sys_darwin = @import("sys-darwin"); diff --git a/zigmod.yml b/zigmod.yml new file mode 100644 index 0000000000000000000000000000000000000000..95c1f9d03be5e617f32e2f4b1a6a974d32cad5b8 --- /dev/null +++ b/zigmod.yml @@ -0,0 +1,7 @@ +id: 73bukkeci2u6865xm3of4o7ie760r29t21pbkwjiavb0a8jl +name: sys-darwin +main: sys_darwin.zig +license: MIT +description: OS bindings layer for interacting with macOS +min_zig_version: 0.14.1 +dependencies: -- 2.54.0