README: document SQLITE3_LIB/INCLUDE_DIR

This commit is contained in:
Dubiousjim 2020-12-07 20:24:47 -05:00
parent 682d8a837e
commit 7b9b1d2965

View File

@ -131,8 +131,8 @@ You can adjust this behavior in a number of ways:
version = "0.24.2" version = "0.24.2"
features = ["bundled"] features = ["bundled"]
``` ```
* You can set the `SQLITE3_LIB_DIR` to point to directory containing the SQLite
library. * When linking against a SQLite library already on the system (so *not* using the `bundled` feature), you can set the `SQLITE3_LIB_DIR` environment variable to point to a directory containing the library. You can also set the `SQLITE3_INCLUDE_DIR` variable to point to the directory containing `sqlite3.h`.
* Installing the sqlite3 development packages will usually be all that is required, but * Installing the sqlite3 development packages will usually be all that is required, but
the build helpers for [pkg-config](https://github.com/alexcrichton/pkg-config-rs) the build helpers for [pkg-config](https://github.com/alexcrichton/pkg-config-rs)
and [vcpkg](https://github.com/mcgoo/vcpkg-rs) have some additional configuration and [vcpkg](https://github.com/mcgoo/vcpkg-rs) have some additional configuration
@ -140,6 +140,7 @@ You can adjust this behavior in a number of ways:
which must be enabled by setting `VCPKGRS_DYNAMIC=1` environment variable before build. which must be enabled by setting `VCPKGRS_DYNAMIC=1` environment variable before build.
`vcpkg install sqlite3:x64-windows` will install the required library. `vcpkg install sqlite3:x64-windows` will install the required library.
### Binding generation ### Binding generation
We use [bindgen](https://crates.io/crates/bindgen) to generate the Rust We use [bindgen](https://crates.io/crates/bindgen) to generate the Rust