From 87d2006b6ee4d7eb8124f5fff2de9285f79d2979 Mon Sep 17 00:00:00 2001 From: Tpt Date: Mon, 11 Sep 2023 21:34:01 +0200 Subject: [PATCH] RocksDB: adds a feature for dynamic linking directly in the oxigraph crates --- .github/workflows/tests.yml | 4 +--- cli/Cargo.toml | 3 +++ lib/Cargo.toml | 1 + python/Cargo.toml | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d570e796..c06b05d2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -46,8 +46,6 @@ jobs: working-directory: ./lib/sparopt - run: cargo clippy -- -D warnings -D clippy::all working-directory: ./lib - - run: cargo clippy --all-targets --all-features -- -D warnings -D clippy::all - working-directory: ./lib - run: cargo clippy -- -D warnings -D clippy::all working-directory: ./python - run: cargo clippy -- -D warnings -D clippy::all @@ -193,7 +191,7 @@ jobs: submodules: true - run: rustup update && rustup default 1.70.0 - uses: Swatinem/rust-cache@v2 - - run: cargo doc --all-features + - run: cargo doc working-directory: ./lib env: RUSTDOCFLAGS: -D warnings diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 486a46bf..ef9f42de 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -18,6 +18,9 @@ rust-version.workspace = true name = "oxigraph" path = "src/main.rs" +[features] +rocksdb-pkg-config = ["oxigraph/rocksdb-pkg-config"] + [dependencies] anyhow = "1.0.72" oxhttp = { version = "0.1.7", features = ["rayon"] } diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 0ed6e9a9..f05e8a56 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -19,6 +19,7 @@ rust-version.workspace = true default = [] js = ["getrandom/js", "oxsdatatypes/js", "js-sys"] http_client = ["oxhttp", "oxhttp/rustls"] +rocksdb-pkg-config = ["oxrocksdb-sys/pkg-config"] rocksdb_debug = [] [dependencies] diff --git a/python/Cargo.toml b/python/Cargo.toml index a8f610e1..ce5df20a 100644 --- a/python/Cargo.toml +++ b/python/Cargo.toml @@ -19,6 +19,7 @@ doctest = false [features] abi3 = ["pyo3/abi3-py38"] +rocksdb-pkg-config = ["oxigraph/rocksdb-pkg-config"] [dependencies] oxigraph = { version = "0.4.0-alpha.1-dev", path="../lib", features = ["http_client"] }