@@ -17,16 +17,6 @@ lto = "fat"
1717panic = " abort"
1818codegen-units = 2
1919
20- [features ]
21- # Build variants
22- # - default (odbc-dynamic): ODBC enabled, dynamically linked (works on Linux, macOS, Windows)
23- # - odbc-static: ODBC enabled, statically linked to the driver manager (Linux only)
24- # - disable ODBC entirely: use `--no-default-features`
25- default = [" odbc-dynamic" ]
26- odbc = [" sqlx/odbc" ]
27- odbc-dynamic = [" odbc" ]
28- odbc-static = [" odbc" , " odbc-sys/static" ]
29-
3020[dependencies ]
3121sqlx = { package = " sqlx-oldapi" , git = " https://github.com/sqlpage/sqlx-oldapi" , version = " 0.6.49-beta.6" , default-features = false , features = [
3222 " any" ,
@@ -36,6 +26,7 @@ sqlx = { package = "sqlx-oldapi", git = "https://github.com/sqlpage/sqlx-oldapi"
3626 " postgres" ,
3727 " mysql" ,
3828 " mssql" ,
29+ " odbc" ,
3930 " chrono" ,
4031 " bigdecimal" ,
4132 " json" ,
@@ -84,13 +75,15 @@ clap = { version = "4.5.17", features = ["derive"] }
8475tokio-util = " 0.7.12"
8576openidconnect = { version = " 4.0.0" , default-features = false }
8677encoding_rs = " 0.8.35"
87- odbc-sys = { version = " 0.27" , optional = true }
8878
8979[target .'cfg(any(target_os = "linux", target_os = "macos"))' .dependencies ]
90- odbc-sys = { version = " 0.27" , optional = true , features = [" iodbc" , " static" ] }
80+ odbc-sys = { version = " 0.27" , features = [" iodbc" , " static" ] }
81+
82+ [target .'cfg(any(target_os = "windows"))' .dependencies ]
83+ odbc-sys = { version = " 0.27" , features = [" iodbc" , " static" ] }
9184
9285[patch .crates-io ]
93- odbc-sys = { git = " https://github.com/sqlpage/odbc-sys" , branch = " main" }
86+ odbc-sys = { git = " https://github.com/sqlpage/odbc-sys" , branch = " main" } # see https://github.com/pacman82/odbc-sys/pull/60
9487
9588[build-dependencies ]
9689awc = { version = " 3" , features = [" rustls-0_23-webpki-roots" ] }
0 commit comments