Build raw sqlite interface as libsqlite3-sys

Use pkg-config to find it.
This commit is contained in:
John Gallagher
2015-02-23 15:22:34 -05:00
parent 94ed61c44c
commit 03f368c4f4
8 changed files with 36 additions and 5 deletions

View File

@@ -52,6 +52,7 @@
#![cfg_attr(test, feature(test))]
extern crate libc;
extern crate "libsqlite3-sys" as ffi;
#[macro_use] extern crate rustc_bitflags;
use std::mem;
@@ -76,9 +77,6 @@ pub use transaction::{SqliteTransactionBehavior,
pub mod types;
mod transaction;
/// Automatically generated FFI bindings (via [bindgen](https://github.com/crabtw/rust-bindgen)).
#[allow(dead_code,non_snake_case,non_camel_case_types)] pub mod ffi;
/// A typedef of the result returned by many methods.
pub type SqliteResult<T> = Result<T, SqliteError>;
@@ -705,6 +703,7 @@ impl<'stmt> SqliteRow<'stmt> {
#[cfg(test)]
mod test {
extern crate "libsqlite3-sys" as ffi;
use super::*;
fn checked_memory_handle() -> SqliteConnection {