mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
commit
4956e815cc
11
README.md
11
README.md
@ -94,9 +94,10 @@ features](http://doc.crates.io/manifest.html#the-features-section). They are:
|
|||||||
## Notes on building rusqlite and libsqlite3-sys
|
## Notes on building rusqlite and libsqlite3-sys
|
||||||
|
|
||||||
`libsqlite3-sys` is a separate crate from `rusqlite` that provides the Rust
|
`libsqlite3-sys` is a separate crate from `rusqlite` that provides the Rust
|
||||||
declarations for SQLite's C API. By default, `libsqlite3-sys` attempts to use
|
declarations for SQLite's C API. By default, `libsqlite3-sys` attempts to find a SQLite library that already exists on your system using pkg-config, or a
|
||||||
pkg-config to find a SQLite library that already exists on your system. You can
|
[Vcpkg](https://github.com/Microsoft/vcpkg) installation for MSVC ABI builds.
|
||||||
adjust this behavior in a couple of ways:
|
|
||||||
|
You can adjust this behavior in a number of ways:
|
||||||
|
|
||||||
* If you use the `bundled` feature, `libsqlite3-sys` will use the
|
* If you use the `bundled` feature, `libsqlite3-sys` will use the
|
||||||
[gcc](https://crates.io/crates/gcc) crate to compile SQLite from source and
|
[gcc](https://crates.io/crates/gcc) crate to compile SQLite from source and
|
||||||
@ -110,6 +111,10 @@ adjust this behavior in a couple of ways:
|
|||||||
```
|
```
|
||||||
* You can set the `SQLITE3_LIB_DIR` to point to directory containing the SQLite
|
* You can set the `SQLITE3_LIB_DIR` to point to directory containing the SQLite
|
||||||
library.
|
library.
|
||||||
|
* 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)
|
||||||
|
and [vcpkg](https://github.com/mcgoo/vcpkg-rs) have some additional configuration
|
||||||
|
options. The default when using vcpkg is to dynamically link. `vcpkg install sqlite3:x64-windows` will install the required library.
|
||||||
|
|
||||||
### Binding generation
|
### Binding generation
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user