mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-16 04:32:19 +08:00
Build raw sqlite interface as libsqlite3-sys
Use pkg-config to find it.
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user