summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2024-12-08 14:58:22 +0100
committerGravatar Vincent Rischmann2024-12-08 14:58:23 +0100
commit372e76c4558f1f38e4ed13f59143b8b2ec60b02b (patch)
treedb3918e7a148090225b6f36fa06771328f9a5d73 /README.md
parentupdate readme (diff)
downloadzig-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 '')
-rw-r--r--README.md27
1 files changed, 0 insertions, 27 deletions
diff --git a/README.md b/README.md
index e57348a..13e1fc8 100644
--- a/README.md
+++ b/README.md
@@ -76,12 +76,6 @@ For sqlite, you have options depending on your target:
76 76
77# Installation 77# Installation
78 78
79There 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
85Use the following `zig fetch` command: 79Use the following `zig fetch` command:
86 80
87``` 81```
@@ -97,27 +91,6 @@ const sqlite = b.dependency("sqlite", .{
97exe.root_module.addImport("sqlite", sqlite.module("sqlite")); 91exe.root_module.addImport("sqlite", sqlite.module("sqlite"));
98``` 92```
99 93
100## zigmod
101
102Add this to your `zig.mod` file:
103```
104dependencies:
105 - src: git https://github.com/vrischmann/zig-sqlite branch-master
106```
107
108Note that if you're building an executable and not a library you should use `dev_dependencies` instead.
109
110Next run `zigmod fetch`; it should create a `deps.zig` file.
111
112Now in your `build.zig` you can access the package like this:
113```zig
114const deps = @import("deps.zig");
115...
116deps.addAllTo(exe);
117```
118
119This 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