summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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