Enables the "sled" feature by default

pull/171/head
Tpt 4 years ago
parent 1662bd7e57
commit 431ec26536
  1. 3
      lib/Cargo.toml
  2. 1
      lib/src/lib.rs
  3. 3
      lib/src/store/mod.rs
  4. 2
      lib/src/store/sled.rs
  5. 3
      lib/src/store/sophia.rs
  6. 2
      python/Cargo.toml
  7. 2
      server/Cargo.toml
  8. 2
      testsuite/Cargo.toml
  9. 2
      wikibase/Cargo.toml

@ -22,7 +22,7 @@ sophia = ["sophia_api"]
http_client = ["httparse", "native-tls"]
[dependencies]
sled = { version = "0.34", optional = true }
sled = "0.34"
quick-xml = "0.22"
rand = "0.8"
md-5 = "0.9"
@ -53,4 +53,3 @@ sophia_api = { version = "0.6.2", features = ["test_macro"] }
[[bench]]
name = "store"
harness = false
required-features = ["sled"]

@ -115,5 +115,4 @@ pub mod model;
pub mod sparql;
pub mod store;
#[cfg(feature = "sled")]
pub use crate::store::sled::SledStore;

@ -1,15 +1,12 @@
//! RDF [RDF dataset](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-dataset) storage implementations.
#[cfg(feature = "sled")]
mod binary_encoder;
pub(crate) mod numeric_encoder;
#[cfg(feature = "sled")]
pub mod sled;
pub(crate) mod small_string;
#[cfg(feature = "sophia")]
mod sophia;
#[cfg(feature = "sled")]
pub use crate::store::sled::SledStore;
use crate::error::invalid_input_error;

@ -30,8 +30,6 @@ use std::{fmt, io, str};
/// Store based on the [Sled](https://sled.rs/) key-value database.
/// It encodes a [RDF dataset](https://www.w3.org/TR/rdf11-concepts/#dfn-rdf-dataset) and allows to query it using SPARQL.
///
/// To use it, the `"sled"` feature needs to be activated.
///
/// Warning: Sled is not stable yet and might break its storage format.
///
/// Usage example:

@ -411,7 +411,6 @@ macro_rules! impl_dataset {
};
}
#[cfg(feature = "sled")]
mod sled {
use super::*;
@ -486,7 +485,6 @@ mod sled {
}
// helper functions
#[cfg(feature = "sled")]
fn io_quad_map<'a>(
res: Result<Quad, std::io::Error>,
) -> Result<StreamedSophiaQuad<'a>, std::io::Error> {
@ -496,7 +494,6 @@ fn io_quad_map<'a>(
})
}
#[cfg(feature = "sled")]
fn io_err_map(err: EvaluationError) -> std::io::Error {
match err {
EvaluationError::Io(err) => err,

@ -16,7 +16,7 @@ name = "pyoxigraph"
doctest = false
[dependencies]
oxigraph = {version = "0.2", path="../lib", features = ["sled", "http_client"]}
oxigraph = {version = "0.2", path="../lib", features = ["http_client"]}
pyo3 = {version = "0.13", features = ["extension-module", "abi3-py36"]}
native-tls = {version = "0.2", features = ["vendored"]}

@ -16,7 +16,7 @@ argh = "0.1"
async-std = { version = "1", features = ["attributes"] }
async-h1 = "2"
http-types = "2"
oxigraph = { version = "0.2", path="../lib", features = ["sled", "http_client"] }
oxigraph = { version = "0.2", path="../lib", features = ["http_client"] }
rand = "0.8"
url = "2"
oxiri = "0.1"

@ -14,7 +14,7 @@ publish = false
[dependencies]
anyhow = "1"
chrono = "0.4"
oxigraph = { version = "0.2", path="../lib", features=["sled"] }
oxigraph = { version = "0.2", path="../lib" }
text-diff = "0.4"
[dev-dependencies]

@ -17,6 +17,6 @@ async-h1 = "2"
chrono = "0.4"
http-client = { version = "6", features = ["h1_client"] }
http-types = "2"
oxigraph = { version = "0.2", path ="../lib", features = ["sled", "http_client"] }
oxigraph = { version = "0.2", path ="../lib", features = ["http_client"] }
serde_json = "1"
url = "2"
Loading…
Cancel
Save