Closed LuckyTurtleDev closed 1 month ago
This is a bug in the way cargo resolves dependencys. Please see https://github.com/launchbadge/sqlx/issues/3211
The workaround would be to match up the libsqlite3-sys
versions as suggested in the Cargo error.
thanks, for the fast feedback. sadly the other version is out of my control.
a small hack to workaround this issue is to use [patch.crates-io]
, to patch one libsqlite3-sys
version to not use the c dependency anymore.
Cargo.toml
:
[patch.crates-io]
libsqlite3-sys = { path = "./dummy-libsqlite3-sys" }
dummy-libsqlite3-sys/Cargo.toml
:
[package]
name = "libsqlite3-sys"
version = "0.30.1"
[features]
default = []
bundled = []
pkg-config = []
unlock_notify = []
vcpkg = []
dummy-libsqlite3-sys/src/lib.rs
:
//! Hack, due cargo bug
Bug Description
Sqlx depend on libsqlite3-sys if
sqlite
feature is disabled.Minimal Reproduction
add the following dependecies to the
Cargo.toml
Additional Info
Looks like this only happen if the
migrate
is enabled.Info
rustc --version
: rustc 1.81.0 (eeb90cda1 2024-09-04)