diff --git a/Cargo.toml b/Cargo.toml index 483a627..e8551f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,6 @@ repository = "https://github.com/stainless-steel/sqlite" homepage = "https://github.com/stainless-steel/sqlite" documentation = "https://stainless-steel.github.io/sqlite" description = "The package provides an interface to SQLite." -build = "build.rs" [dependencies] libc = "0.2" diff --git a/build.rs b/build.rs deleted file mode 100644 index e858925..0000000 --- a/build.rs +++ /dev/null @@ -1,9 +0,0 @@ -use std::env; - -fn main() { - if let Ok(features) = env::var("DEP_SQLITE3_FEATURES") { - for feature in features.split(' ') { - println!(r#"cargo:rustc-cfg=feature="{}""#, feature); - } - } -} diff --git a/src/connection.rs b/src/connection.rs index 630b0f4..4123938 100644 --- a/src/connection.rs +++ b/src/connection.rs @@ -96,21 +96,12 @@ impl Connection { } impl Drop for Connection { - #[cfg(not(feature = "sqlite3-close-v2"))] #[inline] #[allow(unused_must_use)] fn drop(&mut self) { self.remove_busy_handler(); unsafe { ffi::sqlite3_close(self.raw) }; } - - #[cfg(feature = "sqlite3-close-v2")] - #[inline] - #[allow(unused_must_use)] - fn drop(&mut self) { - self.remove_busy_handler(); - unsafe { ffi::sqlite3_close_v2(self.raw) }; - } } extern fn busy_callback(callback: *mut c_void, attempts: c_int) -> c_int