
The companion project to my Zig Bytes series, available as a standalone set of runnable examples.
Report Bug
·
Request Feature
Table of Contents
This project currently has support for the following systems:
OS | Support level |
---|---|
Linux | Full |
Windows | WIP |
FreeBSD | WIP |
MacOS | WIP |
Note: This is the
main
branch, which means there are probably bugs and missing sections.
This repository as a whole is also currently unfinished, which will likely make these issues worse.
Please keep these things in mind when reporting bugs or other issues.
A tagged release for Zig version
0.13.0
is currently being worked on.
Run the following commands to clone the repository and enter the project directory:
git clone https://github.com/purefns/zig-bytes
cd zig-bytes
You will need to have the Zig compiler installed on your system.
The current requred version is 0.13.0
.
You can install it via a number of different methods, with availability depending on your OS:
- Using a pre-built binary
- This is the recommended option for most people. Make sure to download the correct option for your operating system and CPU architecture.
- Using a package manager
- This can be fine if your distribution/package manager's repositories are up-to-date, but a majority of them are not. This is likely due to the fast development speed of Zig - if you have a compatible version available to install, please feel free to do so.
There is also a flake.nix
available that includes a devshell set up with the necessary dependencies.
To use it, just run the following command in the project directory:
nix develop
To get started with the first example just run zig build
.
To run a specific example use the -Dexample=[NAME]
flag, i.e. zig build -Dexample=assignment
.
To see the full list of valid example names (in order by chapter) run zig build --help
.
Below is a demo of the default example:
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
James Adam - [email protected]
Project Link: https://github.com/purefns/zig-bytes
❤️ Ziglings for helping me figure out how to create a custom build step
❤️ ZigHelp for inspiration on the course layout
❤️ Best README Template for the amazing template