Skip to content

Commit 0e20522

Browse files
committed
init
1 parent 64f9904 commit 0e20522

4 files changed

Lines changed: 21 additions & 44 deletions

File tree

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.zig-cache/
2+
zig-out/
3+
/release/
4+
/debug/
5+
/build/
6+
/build-*/
7+
/docgen_tmp/
8+
9+
# Although this was renamed to .zig-cache, let's leave it here for a few
10+
# releases to make it less annoying to work with multiple branches.
11+
zig-cache/

build.zig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ pub fn build(b: *std.Build) void {
4242
// Modules can depend on one another using the `std.Build.Module.addImport` function.
4343
// This is what allows Zig source code to use `@import("foo")` where 'foo' is not a
4444
// file path. In this case, we set up `exe_mod` to import `lib_mod`.
45-
exe_mod.addImport("zig_plscommig_lib", lib_mod);
45+
exe_mod.addImport("zig_plscommit_lib", lib_mod);
4646

4747
// Now, we will create a static library based on the module we created above.
4848
// This creates a `std.Build.Step.Compile`, which is the build step responsible
4949
// for actually invoking the compiler.
5050
const lib = b.addLibrary(.{
5151
.linkage = .static,
52-
.name = "zig_plscommig",
52+
.name = "zig_plscommit",
5353
.root_module = lib_mod,
5454
});
5555

@@ -61,7 +61,7 @@ pub fn build(b: *std.Build) void {
6161
// This creates another `std.Build.Step.Compile`, but this one builds an executable
6262
// rather than a static library.
6363
const exe = b.addExecutable(.{
64-
.name = "zig_plscommig",
64+
.name = "zig_plscommit",
6565
.root_module = exe_mod,
6666
});
6767

build.zig.zon

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
//
77
// It is redundant to include "zig" in this name because it is already
88
// within the Zig package namespace.
9-
.name = .zig_plscommig,
9+
.name = .zig_plscommit,
1010

1111
// This is a [Semantic Version](https://semver.org/).
1212
// In a future version of Zig it will be used for package deduplication.
@@ -24,7 +24,7 @@
2424
// original project's identity. Thus it is recommended to leave the comment
2525
// on the following line intact, so that it shows up in code reviews that
2626
// modify the field.
27-
.fingerprint = 0xda1b26808fe012b0, // Changing this has security and trust implications.
27+
.fingerprint = 0x5ea5675ea0977e15, // Changing this has security and trust implications.
2828

2929
// Tracks the earliest Zig version that the package considers to be a
3030
// supported use case.
@@ -36,45 +36,11 @@
3636
// Once all dependencies are fetched, `zig build` no longer requires
3737
// internet connectivity.
3838
.dependencies = .{
39-
// See `zig fetch --save <url>` for a command-line interface for adding dependencies.
40-
//.example = .{
41-
// // When updating this field to a new URL, be sure to delete the corresponding
42-
// // `hash`, otherwise you are communicating that you expect to find the old hash at
43-
// // the new URL. If the contents of a URL change this will result in a hash mismatch
44-
// // which will prevent zig from using it.
45-
// .url = "https://example.com/foo.tar.gz",
46-
//
47-
// // This is computed from the file contents of the directory of files that is
48-
// // obtained after fetching `url` and applying the inclusion rules given by
49-
// // `paths`.
50-
// //
51-
// // This field is the source of truth; packages do not come from a `url`; they
52-
// // come from a `hash`. `url` is just one of many possible mirrors for how to
53-
// // obtain a package matching this `hash`.
54-
// //
55-
// // Uses the [multihash](https://multiformats.io/multihash/) format.
56-
// .hash = "...",
57-
//
58-
// // When this is provided, the package is found in a directory relative to the
59-
// // build root. In this case the package's hash is irrelevant and therefore not
60-
// // computed. This field and `url` are mutually exclusive.
61-
// .path = "foo",
62-
//
63-
// // When this is set to `true`, a package is declared to be lazily
64-
// // fetched. This makes the dependency only get fetched if it is
65-
// // actually used.
66-
// .lazy = false,
67-
//},
39+
.prompter = .{
40+
.url = "git+https://github.com/GabrieleInvernizzi/zig-prompter/#f25b7b6857aa2fd462fce08ca355f00ed21b3cbd",
41+
.hash = "prompter-0.1.0-AAAAAOhNAACt95dy_7uBKnZivd-CfSCF-y7IGjdyENCf",
42+
},
6843
},
69-
70-
// Specifies the set of files and directories that are included in this package.
71-
// Only files and directories listed here are included in the `hash` that
72-
// is computed for this package. Only files listed here will remain on disk
73-
// when using the zig package manager. As a rule of thumb, one should list
74-
// files required for compilation plus any license(s).
75-
// Paths are relative to the build root. Use the empty string (`""`) to refer to
76-
// the build root itself.
77-
// A directory listed here means that all files within, recursively, are included.
7844
.paths = .{
7945
"build.zig",
8046
"build.zig.zon",

src/main.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ test "fuzz example" {
4343
const std = @import("std");
4444

4545
/// This imports the separate module containing `root.zig`. Take a look in `build.zig` for details.
46-
const lib = @import("zig_plscommig_lib");
46+
const lib = @import("zig_plscommit_lib");

0 commit comments

Comments
 (0)