diff options
| author | 2024-12-08 14:58:22 +0100 | |
|---|---|---|
| committer | 2024-12-08 14:58:23 +0100 | |
| commit | 372e76c4558f1f38e4ed13f59143b8b2ec60b02b (patch) | |
| tree | db3918e7a148090225b6f36fa06771328f9a5d73 /README.md | |
| parent | update readme (diff) | |
| download | zig-sqlite-372e76c4558f1f38e4ed13f59143b8b2ec60b02b.tar.gz zig-sqlite-372e76c4558f1f38e4ed13f59143b8b2ec60b02b.tar.xz zig-sqlite-372e76c4558f1f38e4ed13f59143b8b2ec60b02b.zip | |
readme: stop recommending zigmod
`zig fetch` works well enough
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 27 |
1 files changed, 0 insertions, 27 deletions
| @@ -76,12 +76,6 @@ For sqlite, you have options depending on your target: | |||
| 76 | 76 | ||
| 77 | # Installation | 77 | # Installation |
| 78 | 78 | ||
| 79 | There are three main ways to include `zig-sqlite` in your project: | ||
| 80 | * using zig's official package manager | ||
| 81 | * using the [zigmod](https://github.com/nektro/zigmod) package manager | ||
| 82 | |||
| 83 | ## Official package manager | ||
| 84 | |||
| 85 | Use the following `zig fetch` command: | 79 | Use the following `zig fetch` command: |
| 86 | 80 | ||
| 87 | ``` | 81 | ``` |
| @@ -97,27 +91,6 @@ const sqlite = b.dependency("sqlite", .{ | |||
| 97 | exe.root_module.addImport("sqlite", sqlite.module("sqlite")); | 91 | exe.root_module.addImport("sqlite", sqlite.module("sqlite")); |
| 98 | ``` | 92 | ``` |
| 99 | 93 | ||
| 100 | ## zigmod | ||
| 101 | |||
| 102 | Add this to your `zig.mod` file: | ||
| 103 | ``` | ||
| 104 | dependencies: | ||
| 105 | - src: git https://github.com/vrischmann/zig-sqlite branch-master | ||
| 106 | ``` | ||
| 107 | |||
| 108 | Note that if you're building an executable and not a library you should use `dev_dependencies` instead. | ||
| 109 | |||
| 110 | Next run `zigmod fetch`; it should create a `deps.zig` file. | ||
| 111 | |||
| 112 | Now in your `build.zig` you can access the package like this: | ||
| 113 | ```zig | ||
| 114 | const deps = @import("deps.zig"); | ||
| 115 | ... | ||
| 116 | deps.addAllTo(exe); | ||
| 117 | ``` | ||
| 118 | |||
| 119 | This is the easiest way to add `zig-sqlite` because it uses the bundled source code, avoiding all sorts of linking problems. | ||
| 120 | |||
| 121 | # Usage | 94 | # Usage |
| 122 | 95 | ||
| 123 | ## Demo | 96 | ## Demo |