From 35cb9ffef3b93ec8c8ca154f542f1d7317dfa110 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Champin Date: Fri, 14 Aug 2020 10:34:59 +0200 Subject: [PATCH] add feature-flags on test files this allows to run 'cargo test' with only a subset of features enabled, i.e. cargo test or cargo test --features sled --- lib/tests/rocksdb_store.rs | 2 ++ lib/tests/sled_store.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/tests/rocksdb_store.rs b/lib/tests/rocksdb_store.rs index d6336763..ec045161 100644 --- a/lib/tests/rocksdb_store.rs +++ b/lib/tests/rocksdb_store.rs @@ -1,3 +1,5 @@ +#![cfg(features = "rocksdb")] + use oxigraph::model::vocab::{rdf, xsd}; use oxigraph::model::*; use oxigraph::RocksDbStore; diff --git a/lib/tests/sled_store.rs b/lib/tests/sled_store.rs index 6543b49b..591af749 100644 --- a/lib/tests/sled_store.rs +++ b/lib/tests/sled_store.rs @@ -1,3 +1,5 @@ +#![cfg(features = "sled")] + use oxigraph::io::{DatasetFormat, GraphFormat}; use oxigraph::model::vocab::{rdf, xsd}; use oxigraph::model::*;