diff --git a/.travis.yml b/.travis.yml index ae6427c..d520dab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,6 @@ script: - cargo test --features load_extension - cargo test --features trace - cargo test --features functions - - cargo test --features cache - cargo test --features chrono - cargo test --features serde_json - - cargo test --features "backup blob cache chrono functions load_extension serde_json trace" + - cargo test --features "backup blob chrono functions load_extension serde_json trace" diff --git a/Cargo.toml b/Cargo.toml index 6d6f717..ccabe9d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,7 +16,6 @@ name = "rusqlite" load_extension = [] backup = [] blob = [] -cache = [] functions = [] trace = [] diff --git a/appveyor.yml b/appveyor.yml index 329665d..e15cb90 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -16,7 +16,7 @@ build: false test_script: - cargo test --lib --verbose - - cargo test --lib --features "backup blob cache chrono functions load_extension serde_json trace" + - cargo test --lib --features "backup blob chrono functions load_extension serde_json trace" cache: - C:\Users\appveyor\.cargo diff --git a/src/lib.rs b/src/lib.rs index 15e38db..8889deb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -80,12 +80,14 @@ use raw_statement::RawStatement; pub use transaction::{SqliteTransaction, Transaction, TransactionBehavior}; pub use error::{SqliteError, Error}; +pub use cache::CachedStatement; #[cfg(feature = "load_extension")] pub use load_extension_guard::{SqliteLoadExtensionGuard, LoadExtensionGuard}; pub mod types; mod transaction; +mod cache; mod named_params; mod error; mod convenient; @@ -93,7 +95,6 @@ mod raw_statement; #[cfg(feature = "load_extension")]mod load_extension_guard; #[cfg(feature = "trace")]pub mod trace; #[cfg(feature = "backup")]pub mod backup; -#[cfg(feature = "cache")]mod cache; #[cfg(feature = "functions")]pub mod functions; #[cfg(feature = "blob")]pub mod blob; diff --git a/src/raw_statement.rs b/src/raw_statement.rs index 896508e..9676d94 100644 --- a/src/raw_statement.rs +++ b/src/raw_statement.rs @@ -44,7 +44,6 @@ impl RawStatement { } } - #[cfg(feature = "cache")] pub fn clear_bindings(&self) -> c_int { unsafe { ffi::sqlite3_clear_bindings(self.0) } }