Eliminate the build script

This commit is contained in:
Ivan Ukhov 2016-02-27 12:54:03 +01:00
parent a157cf36b2
commit b4cd56521d
3 changed files with 0 additions and 19 deletions

View File

@ -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"

View File

@ -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);
}
}
}

View File

@ -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<F>(callback: *mut c_void, attempts: c_int) -> c_int