Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 1.02 KB

README.md

File metadata and controls

62 lines (47 loc) · 1.02 KB

utc

The universal transpiler collection

Usage

  1. Add utc as a dependency in your build.zig.zon
.{
    .name = "<name_of_your_package>",
    .version = "<version_of_your_package>",
    .dependencies = .{
        .zodbc = .{
            .url = "https://github.com/rupurt/utc/archive/<git_tag_or_commit_hash>.tar.gz",
            .hash = "<package_hash>",
        },
    },
}

Set <package_hash> to 12200000000000000000000000000000000000000000000000000000000000000000, and Zig will provide the correct found value in an error message.

  1. Add utc as a dependency module in your build.zig
// ...
const utc_dep = b.dependency("utc", .{ .target = target, .optimize = optimize });
exe.root_module.addImport("utc", zodbc_dep.module("utc"));

Development

> nix develop -c $SHELL
> make
> make test
> make run
> make clean
> make build
> make exec

License

utc is released under the MIT license