default-features=false
but chrono
makes sqlx-mysql
part of the Cargo.lock
file
#3538
Labels
default-features=false
but chrono
makes sqlx-mysql
part of the Cargo.lock
file
#3538
Bug Description
Adding the
chrono
feature, makessqlx
depend onmysql
(in fact, it alsosqlite
andpostgres
) inside theCargo.lock
file.Note:
cargo tree
does not show themysql
dependency.Minimal Reproduction
cargo new sqlx-mysql-bug
Cargo.toml
cargo check
cat Cargo.lock
Info
0.8.2
rustc --version
: rustc 1.81.0 (eeb90cda1 2024-09-04)Additional Info
Why is this important? Adding sqlx-mysql add https://rustsec.org/advisories/RUSTSEC-2023-0071.html to my project with makes CI go Brrrr.
I am no expert on the Cargo.toml, i am wondering why
sqlx-mysql
doesnt get compiled while runningcargo check
, nor does it appear in thecargo tree
. However it gets added to Cargo.lock. maybe its an issue with rust itself, or just cargo audit. Though its kinda interesting that it only appears to trigger for thechrono
crate.The text was updated successfully, but these errors were encountered: