I have found these related issues/pull requests
#191
Description
$ cargo install sqlx-cli --no-default-features --features sqlite-unbundled
I got the following error:
error[E0432]: unresolved import `libsqlite3_sys::sqlite3_load_extension`
--> /Users/jasha/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-sqlite-0.8.6/src/connection/establish.rs:8:5
|
8 | sqlite3_load_extension, sqlite3_open_v2, SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION, SQLITE_OK,
| ^^^^^^^^^^^^^^^^^^^^^^
| |
| no `sqlite3_load_extension` in the root
| help: a similar name exists in the module: `sqlite3_auto_extension`
error[E0432]: unresolved import `libsqlite3_sys::sqlite3_unlock_notify`
--> /Users/jasha/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-sqlite-0.8.6/src/statement/unlock_notify.rs:6:31
|
6 | use libsqlite3_sys::{sqlite3, sqlite3_unlock_notify, SQLITE_OK};
| ^^^^^^^^^^^^^^^^^^^^^ no `sqlite3_unlock_notify` in the root
error[E0282]: type annotations needed for `*mut _`
--> /Users/jasha/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-sqlite-0.8.6/src/connection/establish.rs:232:21
|
232 | let mut error_msg = null_mut();
| ^^^^^^^^^^^^^
...
247 | if !error_msg.is_null() {
| ------- cannot call a method on a raw pointer with an unknown pointee type
|
help: consider giving `error_msg` an explicit type, where the type for type parameter `T` is specified
|
232 | let mut error_msg: *mut T = null_mut();
| ++++++++
Some errors have detailed explanations: E0282, E0432.
For more information about an error, try `rustc --explain E0282`.
error: could not compile `sqlx-sqlite` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `sqlx-cli v0.8.6`, intermediate artifacts can be found at `/var/folders/mq/jx_bczh14sj5ps4t9x3_1ly00000gp/T/cargo-installOhSk8m`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Reproduction steps
Run command above.
SQLx version
Latest from crates.io, should be sqlx-cli = "0.8.6"
Enabled SQLx features
sqlite-unbundled
Database server and version
$ sqlite3 --version # 3.43.2 2023-10-10 13:08:14 1b37c146ee9ebb7acd0160c0ab1fd11017a419fa8a3187386ed8cb32b709aapl (64-bit)
Operating system
MacOS Sequoia 15.5
Rust version
rustc 1.86.0 (05f9846f8 2025-03-31)
I have found these related issues/pull requests
#191
Description
I got the following error:
Reproduction steps
Run command above.
SQLx version
Latest from crates.io, should be sqlx-cli = "0.8.6"
Enabled SQLx features
sqlite-unbundled
Database server and version
$ sqlite3 --version # 3.43.2 2023-10-10 13:08:14 1b37c146ee9ebb7acd0160c0ab1fd11017a419fa8a3187386ed8cb32b709aapl (64-bit)
Operating system
MacOS Sequoia 15.5
Rust version
rustc 1.86.0 (05f9846f8 2025-03-31)