Skip to content

Commit

Permalink
docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jinzhongjia committed Mar 5, 2025
1 parent 56a6da1 commit 6f4a2b4
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,9 @@ Only limited unit testing has been conducted, which does not cover everything.

## Getting Started

### `0.11`
> About 0.13 and previous versions
1. Add to `build.zig.zon`

```zig
.@"zig-msgpack" = .{
// It is recommended to replace the following branch with commit id
.url = "https://github.com/zigcc/zig-msgpack/archive/{commit or branch}.tar.gz",
.hash = <hash value>,
},
```

2. Config `build.zig`

```zig
const msgpack = b.dependency("zig-msgpack", .{
.target = target,
.optimize = optimize,
});
// add module
exe.addModule("msgpack", msgpack.module("msgpack"));
```

### `0.12` \ `0.13` \ `nightly`
### `0.14.0` \ `nightly`

1. Add to `build.zig.zon`

Expand Down

0 comments on commit 6f4a2b4

Please sign in to comment.