authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-09-14 18:19:54 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-09-14 18:19:54 -07:00
log2e5742ea7869077bed479a497ff5ee653076c9a5
tree87d7eb6a26664bbe2e11fd736405f17dd4b03b2b

init


9 files changed, 72 insertions(+), 0 deletions(-)

.gitattributes created+3
......@@ -0,0 +1,3 @@
1* text=auto
2*.zig text eol=lf
3zigmod.* text eol=lf
.gitignore created+4
......@@ -0,0 +1,4 @@
1zig-*
2.zigmod
3deps.zig
4files.zig
LICENSE created+21
......@@ -0,0 +1,21 @@
1MIT License
2
3Copyright (c) 2023 Meghan Denny
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in all
13copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21SOFTWARE.
build.zig created+27
......@@ -0,0 +1,27 @@
1const std = @import("std");
2const deps = @import("./deps.zig");
3
4pub fn build(b: *std.Build) void {
5 const target = b.standardTargetOptions(.{});
6 const mode = b.option(std.builtin.Mode, "mode", "") orelse .Debug;
7
8 const exe = b.addExecutable(.{
9 .name = "zig-color",
10 .root_source_file = .{ .path = "main.zig" },
11 .target = target,
12 .optimize = mode,
13 });
14 deps.addAllTo(exe);
15 b.installArtifact(exe);
16
17 const run_cmd = b.addRunArtifact(exe);
18
19 run_cmd.step.dependOn(b.getInstallStep());
20
21 if (b.args) |args| {
22 run_cmd.addArgs(args);
23 }
24
25 const run_step = b.step("run", "Run the app");
26 run_step.dependOn(&run_cmd.step);
27}
licenses.txt created+3
......@@ -0,0 +1,3 @@
1MIT:
2= https://spdx.org/licenses/MIT
3- This
main.zig created+5
......@@ -0,0 +1,5 @@
1const std = @import("std");
2
3pub fn main() !void {
4 std.debug.print("All your {s} are belong to us.\n", .{"codebase"});
5}
mod.zig created+2
......@@ -0,0 +1,2 @@
1const std = @import("std");
2const color = @This();
zigmod.lock created+1
......@@ -0,0 +1 @@
12
zigmod.yml created+6
......@@ -0,0 +1,6 @@
1id: 64sua5o7jqpoobsji25ctt8rgm04j6gyylpny1ecqxyhg1pk
2name: color
3main: mod.zig
4license: MIT
5description: Color init and transformation library for Zig
6dependencies: