Put sqlite3 extension functions behind a feature

This commit is contained in:
John Gallagher 2015-02-23 19:32:53 -05:00
parent 03f368c4f4
commit 1097842a85
2 changed files with 5 additions and 1 deletions

View File

@ -7,5 +7,8 @@ license = "MIT"
links = "sqlite3" links = "sqlite3"
build = "build.rs" build = "build.rs"
[features]
load_extension = []
[build-dependencies] [build-dependencies]
pkg-config = "~0.2" pkg-config = "~0.2"

View File

@ -1,6 +1,5 @@
#![allow(raw_pointer_derive, non_snake_case, non_camel_case_types)] #![allow(raw_pointer_derive, non_snake_case, non_camel_case_types)]
/* Running `target/bindgen /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sqlite3.h -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include` */ /* Running `target/bindgen /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sqlite3.h -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/include` */
/* automatically generated by rust-bindgen */
#[derive(Copy)] #[derive(Copy)]
pub enum Struct_sqlite3 { } pub enum Struct_sqlite3 { }
@ -1588,11 +1587,13 @@ extern "C" {
pPrimaryKey: *mut ::libc::c_int, pPrimaryKey: *mut ::libc::c_int,
pAutoinc: *mut ::libc::c_int) pAutoinc: *mut ::libc::c_int)
-> ::libc::c_int; -> ::libc::c_int;
#[cfg(feature = "load_extension")]
pub fn sqlite3_load_extension(db: *mut sqlite3, pub fn sqlite3_load_extension(db: *mut sqlite3,
zFile: *const ::libc::c_char, zFile: *const ::libc::c_char,
zProc: *const ::libc::c_char, zProc: *const ::libc::c_char,
pzErrMsg: *mut *mut ::libc::c_char) pzErrMsg: *mut *mut ::libc::c_char)
-> ::libc::c_int; -> ::libc::c_int;
#[cfg(feature = "load_extension")]
pub fn sqlite3_enable_load_extension(db: *mut sqlite3, pub fn sqlite3_enable_load_extension(db: *mut sqlite3,
onoff: ::libc::c_int) onoff: ::libc::c_int)
-> ::libc::c_int; -> ::libc::c_int;