Skip to content

Commit

Permalink
Update to latest zig and build.zig.zon requirements. (#42)
Browse files Browse the repository at this point in the history
* updated to latest zig build

* adding a build.zig.zon file
  • Loading branch information
Arwalk authored Mar 13, 2024
1 parent 66bc96a commit bb4b67b
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ RUN git config --global core.autocrlf input

ADD . .

RUN bash ./install-zig.sh 0.12.0-dev.3079+a1b083b66
RUN bash ./install-zig.sh 0.12.0-dev.3283+b8920bceb

ENV AGREE=true
49 changes: 49 additions & 0 deletions build.zig.zon
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
.{
.name = "protobuf",
// This is a [Semantic Version](https://semver.org/).
// In a future version of Zig it will be used for package deduplication.
.version = "0.0.0",

// This field is optional.
// This is currently advisory only; Zig does not yet do anything
// with this value.
//.minimum_zig_version = "0.11.0",

// This field is optional.
// Each dependency must either provide a `url` and `hash`, or a `path`.
// `zig build --fetch` can be used to fetch all dependencies of a package, recursively.
// Once all dependencies are fetched, `zig build` no longer requires
// internet connectivity.
//.dependencies = .{
//},

// Specifies the set of files and directories that are included in this package.
// Only files and directories listed here are included in the `hash` that
// is computed for this package.
// Paths are relative to the build root. Use the empty string (`""`) to refer to
// the build root itself.
// A directory listed here means that all files within, recursively, are included.
.paths = .{
// This makes *all* files, recursively, included in this package. It is generally
// better to explicitly list the files and directories instead, to insure that
// fetching from tarballs, file system paths, and version control all result
// in the same contents hash.
"",
// For example...
//"build.zig",
//"build.zig.zon",
//"src",
//"LICENSE",
//"README.md",
"build.zig",
"build.zig.zon",
"LICENSE.md",
"README.md",
".gitignore",
".devcontainer",
".github",
"bootstrapped-generator",
"src",
"tests"
},
}

0 comments on commit bb4b67b

Please sign in to comment.