From 62f118a18c8d4028de5ec4f16f23b6e802b5ba50 Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Wed, 8 Jan 2025 20:16:46 +0100 Subject: [PATCH] Add installation instructions. --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 337c8c1..8fb15d4 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,25 @@ defer allocator.free(ascii); std.debug.print("{s}", .{ascii}); // Output: "Blosse". ``` +### Install + +In your project directory: + +```shell +zig fetch --save https://code.zeptotech.net/zedd/anyascii.zig/archive/v1.0.0.tar.gz +``` + +In `build.zig`: + +```zig +// Add anyascii.zig dependency. +const anyascii = b.dependency("anyascii", .{ + .target = target, + .optimize = optimize, +}); +exe.root_module.addImport("anyascii", anyascii.module("anyascii")); +``` + ## What is anyascii? Taken from [official _anyascii_ description](https://github.com/anyascii/anyascii/tree/master#description).