Browse Source

Add `build` feature to `dora-core` to make `git2` dependency optional

We don't want to include it for e.g. the `dora-node-api-c`.
tags/v0.3.12-rc0
Philipp Oppermann 7 months ago
parent
commit
003542c0fa
Failed to extract signature
3 changed files with 7 additions and 3 deletions
  1. +1
    -1
      binaries/daemon/Cargo.toml
  2. +5
    -2
      libraries/core/Cargo.toml
  3. +1
    -0
      libraries/core/src/lib.rs

+ 1
- 1
binaries/daemon/Cargo.toml View File

@@ -24,7 +24,7 @@ tracing = "0.1.36"
tracing-opentelemetry = { version = "0.18.0", optional = true }
futures-concurrency = "7.1.0"
serde_json = "1.0.86"
dora-core = { workspace = true }
dora-core = { workspace = true, features = ["build"] }
flume = "0.10.14"
dora-download = { workspace = true }
dora-tracing = { workspace = true, optional = true }


+ 5
- 2
libraries/core/Cargo.toml View File

@@ -9,6 +9,9 @@ repository.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
build = ["dep:git2", "dep:url"]

[dependencies]
dora-message = { workspace = true }
eyre = "0.6.8"
@@ -24,6 +27,6 @@ schemars = "0.8.19"
serde_json = "1.0.117"
log = { version = "0.4.21", features = ["serde"] }
dunce = "1.0.5"
url = "2.5.4"
git2 = { workspace = true }
itertools = "0.14"
url = { version = "2.5.4", optional = true }
git2 = { workspace = true, optional = true }

+ 1
- 0
libraries/core/src/lib.rs View File

@@ -7,6 +7,7 @@ use std::{

pub use dora_message::{config, uhlc};

#[cfg(feature = "build")]
pub mod build;
pub mod descriptor;
pub mod metadata;


Loading…
Cancel
Save