You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+51-25Lines changed: 51 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,31 +127,57 @@ declarations for DuckDB's C API. By default, `libduckdb-sys` attempts to find a
127
127
128
128
You can adjust this behavior in a number of ways:
129
129
130
-
- If you use the `bundled` feature, `libduckdb-sys` will use the
131
-
[cc](https://crates.io/crates/cc) crate to compile DuckDB from source and
132
-
link against that. This source is embedded in the `libduckdb-sys` crate and
133
-
as we are still in development, we will update it regularly. After we are more stable,
134
-
we will use the stable released version from [duckdb](https://github.com/duckdb/duckdb/releases).
135
-
This is probably the simplest solution to any build problems. You can enable this by adding the following in your `Cargo.toml` file:
136
-
137
-
```bash
138
-
cargo add duckdb --features bundled
139
-
```
140
-
141
-
`Cargo.toml` will be updated.
142
-
143
-
```toml
144
-
[dependencies]
145
-
# Assume that version DuckDB version 0.9.2 is used.
146
-
duckdb = { version = "0.9.2", features = ["bundled"] }
147
-
```
148
-
149
-
* When linking against a DuckDB library already on the system (so _not_ using any of the `bundled` features), you can set the `DUCKDB_LIB_DIR` environment variable to point to a directory containing the library. You can also set the `DUCKDB_INCLUDE_DIR` variable to point to the directory containing `duckdb.h`.
150
-
* Installing the duckdb development packages will usually be all that is required, but
151
-
the build helpers for [pkg-config](https://github.com/alexcrichton/pkg-config-rs)
152
-
and [vcpkg](https://github.com/mcgoo/vcpkg-rs) have some additional configuration
153
-
options. The default when using vcpkg is to dynamically link,
154
-
which must be enabled by setting `VCPKGRS_DYNAMIC=1` environment variable before build.
130
+
1. If you use the `bundled` feature, `libduckdb-sys` will use the
131
+
[cc](https://crates.io/crates/cc) crate to compile DuckDB from source and
132
+
link against that. This source is embedded in the `libduckdb-sys` crate and
133
+
as we are still in development, we will update it regularly. After we are more stable,
134
+
we will use the stable released version from [duckdb](https://github.com/duckdb/duckdb/releases).
135
+
This is probably the simplest solution to any build problems. You can enable this by adding the following in your `Cargo.toml` file:
136
+
137
+
```bash
138
+
cargo add duckdb --features bundled
139
+
```
140
+
141
+
`Cargo.toml` will be updated.
142
+
143
+
```toml
144
+
[dependencies]
145
+
duckdb = { version = "1.3.2", features = ["bundled"] }
146
+
```
147
+
148
+
2. When linking against a DuckDB library already on the system (so _not_ using any of the `bundled` features), you can set the `DUCKDB_LIB_DIR` environment variable to point to a directory containing the library. You can also set the `DUCKDB_INCLUDE_DIR` variable to point to the directory containing `duckdb.h`.
0 commit comments