From 048a442bc6886a9f561dd8058aea9b3ed738dab0 Mon Sep 17 00:00:00 2001 From: gwenn Date: Sat, 10 Jun 2023 12:14:41 +0200 Subject: [PATCH] Fix test build error --- Cargo.toml | 3 +-- src/lib.rs | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index eca3e34..fba0ccd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -134,7 +134,6 @@ unicase = "2.6.0" # Use `bencher` over criterion because it builds much faster and we don't have # many benchmarks bencher = "0.1" -rusqlite-macros = { path = "rusqlite-macros", version = "0.1.0" } [dependencies.libsqlite3-sys] path = "libsqlite3-sys" @@ -159,7 +158,7 @@ name = "exec" harness = false [package.metadata.docs.rs] -features = ["modern-full"] +features = ["modern-full", "rusqlite-macros"] all-features = false no-default-features = true default-target = "x86_64-unknown-linux-gnu" diff --git a/src/lib.rs b/src/lib.rs index 12a5d31..b390a42 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2137,6 +2137,7 @@ mod test { } #[test] + #[cfg(feature = "rusqlite-macros")] fn prepare_and_bind() -> Result<()> { let db = Connection::open_in_memory()?; let name = "Lisa";