Add installation instructions.
This commit is contained in:
parent
6da1ed2e4c
commit
62f118a18c
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
@ -30,6 +30,25 @@ defer allocator.free(ascii);
|
||||||
std.debug.print("{s}", .{ascii}); // Output: "Blosse".
|
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?
|
## What is anyascii?
|
||||||
|
|
||||||
Taken from [official _anyascii_ description](https://github.com/anyascii/anyascii/tree/master#description).
|
Taken from [official _anyascii_ description](https://github.com/anyascii/anyascii/tree/master#description).
|
||||||
|
|
Loading…
Reference in a new issue