mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-23 00:39:20 +08:00
Put sqlite3 extension functions behind a feature
This commit is contained in:
parent
03f368c4f4
commit
1097842a85
@ -7,5 +7,8 @@ license = "MIT"
|
||||
links = "sqlite3"
|
||||
build = "build.rs"
|
||||
|
||||
[features]
|
||||
load_extension = []
|
||||
|
||||
[build-dependencies]
|
||||
pkg-config = "~0.2"
|
||||
|
@ -1,6 +1,5 @@
|
||||
#![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` */
|
||||
/* automatically generated by rust-bindgen */
|
||||
|
||||
#[derive(Copy)]
|
||||
pub enum Struct_sqlite3 { }
|
||||
@ -1588,11 +1587,13 @@ extern "C" {
|
||||
pPrimaryKey: *mut ::libc::c_int,
|
||||
pAutoinc: *mut ::libc::c_int)
|
||||
-> ::libc::c_int;
|
||||
#[cfg(feature = "load_extension")]
|
||||
pub fn sqlite3_load_extension(db: *mut sqlite3,
|
||||
zFile: *const ::libc::c_char,
|
||||
zProc: *const ::libc::c_char,
|
||||
pzErrMsg: *mut *mut ::libc::c_char)
|
||||
-> ::libc::c_int;
|
||||
#[cfg(feature = "load_extension")]
|
||||
pub fn sqlite3_enable_load_extension(db: *mut sqlite3,
|
||||
onoff: ::libc::c_int)
|
||||
-> ::libc::c_int;
|
||||
|
Loading…
Reference in New Issue
Block a user