Giter Club home page Giter Club logo

zig-toolsets's Introduction

Zig Toolsets

Zig Toolsets

The Zig compiler and standard library packaged for use in MSBuild.

License Commits Build Discussions Discord Zulip


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.

  • For every official release of Zig, a set of NuGet packages with the name pattern Vezel.Zig.Toolsets.<rid> is published, where <rid> is replaced with linux-arm64, osx-x64, win-x86, etc.
  • Only the RIDs that .NET runs on are covered (so e.g. Vezel.Zig.Toolsets.linux-x86 is not available).
  • The package version matches the official Zig release's version, with an extra fourth component added indicating the packaging version.

Usage

This project offers the following packages:

Package Description Downloads
Vezel.Zig.Toolsets.linux-arm Provides the toolset for the linux-arm build platform. Downloads
Vezel.Zig.Toolsets.linux-arm64 Provides the toolset for the linux-arm64 build platform. Downloads
Vezel.Zig.Toolsets.linux-ppc64le Provides the toolset for the linux-ppc64le build platform. Downloads
Vezel.Zig.Toolsets.linux-riscv64 Provides the toolset for the linux-riscv64 build platform. Downloads
Vezel.Zig.Toolsets.linux-x64 Provides the toolset for the linux-x64 build platform. Downloads
Vezel.Zig.Toolsets.osx-arm64 Provides the toolset for the osx-arm64 build platform. Downloads
Vezel.Zig.Toolsets.osx-x64 Provides the toolset for the osx-x64 build platform. Downloads
Vezel.Zig.Toolsets.win-arm64 Provides the toolset for the win-arm64 build platform. Downloads
Vezel.Zig.Toolsets.win-x64 Provides the toolset for the win-x64 build platform. Downloads
Vezel.Zig.Toolsets.win-x86 Provides the toolset for the win-x86 build platform. Downloads

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.

Building

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.

License

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.