add: MIT-LICENSE with README updates
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 32s
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 32s
This commit is contained in:
15
README.md
15
README.md
@@ -7,8 +7,21 @@
|
||||
|
||||
## Usage
|
||||
|
||||
To include `zterm` as a dependency in your project run the following command:
|
||||
To add or update `zterm` as a dependency in your project run the following command:
|
||||
|
||||
```sh
|
||||
zig fetch --save git+https://gitea.yves-biener.de/yves-biener/zterm
|
||||
```
|
||||
|
||||
Add the dependency to your module as follows in your _build.zig_:
|
||||
|
||||
```zig
|
||||
const zterm: *Dependency = b.dependency("zterm", .{
|
||||
.target = target,
|
||||
.optimize = optimize,
|
||||
});
|
||||
// ...
|
||||
exe.root_module.addImport("zterm", zterm.module("zterm"));
|
||||
```
|
||||
|
||||
For an example you can take a look at [build.zig](build.zig) for an example.
|
||||
|
||||
Reference in New Issue
Block a user