vezel-dev/zig-toolsets
The Zig compiler and standard library packaged for use in MSBuild.
The Zig compiler and standard library packaged for use in MSBuild.
This project packs and distributes the Zig compiler and standard library in a set of NuGet packages for each platform that .NET runs on. These packages are mainly used by the Zig SDK but can also be used by other projects.
Vezel.Zig.Toolsets.<rid>
is published, where <rid>
is replaced
with linux-arm64
, osx-x64
, win-x86
, etc.Vezel.Zig.Toolsets.linux-x86
is not available).This project offers the following packages:
To install a package, run dotnet add package <name>
.
The following MSBuild properties will be injected into your project:
ZigToolsetPath
: Path to the extracted toolset package directory in the NuGet
package cache.ZigExePath
: Path to the Zig compiler executable (zig
or zig.exe
).ZigLibPath
: Path to the Zig standard library.ZigDocPath
: Path to the Zig standard library documentation.You will need the .NET SDK installed. Simply run ./cake
(a Bash script) to build artifacts.
Note that, on Windows, you must have a tar
program capable of extracting
.tar.xz
archives. For example, tar
from
Git for Windows or MSYS2
will satisfy this requirement.
This project is licensed under the terms found in
LICENSE-0BSD
.
The Zig compiler and standard library are licensed under the terms found in
LICENSE-MIT
.
The Zig logo is licensed under the terms found in
LICENSE-CC-BY-SA-4.0
.