mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
[ci skip] rustftmt
This commit is contained in:
parent
454899f612
commit
b9a4628b47
@ -5,7 +5,10 @@ fn main() {
|
|||||||
let out_dir = env::var("OUT_DIR").unwrap();
|
let out_dir = env::var("OUT_DIR").unwrap();
|
||||||
let out_path = Path::new(&out_dir).join("bindgen.rs");
|
let out_path = Path::new(&out_dir).join("bindgen.rs");
|
||||||
if cfg!(feature = "sqlcipher") {
|
if cfg!(feature = "sqlcipher") {
|
||||||
if cfg!(any(feature = "bundled", all(windows, feature="bundled-windows"))) {
|
if cfg!(any(
|
||||||
|
feature = "bundled",
|
||||||
|
all(windows, feature = "bundled-windows")
|
||||||
|
)) {
|
||||||
println!(
|
println!(
|
||||||
"cargo:warning={}",
|
"cargo:warning={}",
|
||||||
"Builds with bundled SQLCipher are not supported. Searching for SQLCipher to link against. \
|
"Builds with bundled SQLCipher are not supported. Searching for SQLCipher to link against. \
|
||||||
@ -142,7 +145,11 @@ mod build_linked {
|
|||||||
|
|
||||||
pub fn main(_out_dir: &str, out_path: &Path) {
|
pub fn main(_out_dir: &str, out_path: &Path) {
|
||||||
let header = find_sqlite();
|
let header = find_sqlite();
|
||||||
if cfg!(any(feature = "bundled", all(windows, feature="bundled-windows"))) && !cfg!(feature = "buildtime_bindgen") {
|
if cfg!(any(
|
||||||
|
feature = "bundled",
|
||||||
|
all(windows, feature = "bundled-windows")
|
||||||
|
)) && !cfg!(feature = "buildtime_bindgen")
|
||||||
|
{
|
||||||
// We can only get here if `bundled` and `sqlcipher` were both
|
// We can only get here if `bundled` and `sqlcipher` were both
|
||||||
// specified (and `builtime_bindgen` was not). In order to keep
|
// specified (and `builtime_bindgen` was not). In order to keep
|
||||||
// `rusqlite` relatively clean we hide the fact that `bundled` can
|
// `rusqlite` relatively clean we hide the fact that `bundled` can
|
||||||
|
Loading…
Reference in New Issue
Block a user