mach/dev/template
Wrench[bot] a3a0417c21 all: update Zig to version 0.11.0-dev.1000+94780f7cd
Signed-off-by: Wrench[bot] <wrench@hexops.com>
2022-12-30 12:52:31 -07:00
..
.github all: update Zig to version 0.11.0-dev.1000+94780f7cd 2022-12-30 12:52:31 -07:00
.gitattributes dev/template: add template for creating new sub-projects 2022-08-22 20:49:44 -07:00
.gitignore dev/template: add template for creating new sub-projects 2022-08-22 20:49:44 -07:00
LICENSE dev/template: make LICENSE year consistent 2022-08-23 08:13:54 -07:00
LICENSE-APACHE dev/template: add template for creating new sub-projects 2022-08-22 20:49:44 -07:00
LICENSE-MIT dev/template: make LICENSE year consistent 2022-08-23 08:13:54 -07:00
README.md dev/template: add template for creating new sub-projects 2022-08-22 20:49:44 -07:00

mach/foobar - a project template

This repository is a separate copy of the same library in the main Mach repository, and is automatically kept in sync, so that anyone can use this library in their own project if they like!

Getting started

Adding dependency

In a libs subdirectory of the root of your project:

git clone https://github.com/hexops/mach-foobar

Then in your build.zig add:

...
const foobar = @import("libs/mach-foobar/build.zig");

pub fn build(b: *Builder) void {
    ...
    exe.addPackage(foobar.pkg);
    foobar.link(b, exe, .{});
}

Join the community

Join the Mach community on Discord or Matrix to discuss this project, ask questions, get help, etc.

Issues

Issues are tracked in the main Mach repository.

Contributing

Contributions are very welcome. Pull requests must be sent to the main repository to avoid some complex merge conflicts we'd get by accepting contributions in both repositories. Once the changes are merged there, they'll get sync'd to this repository automatically.