Consolidate dependency management using workspace

Declaring all dependencies in one place ensures they are consistent across the project.

Even though some dependencies might be used only once, in my experience it is far easier to keep them consistently in one place, than to have a separation between shared vs non-shared ones, and also to move them once something becomes shared. Easier to just keep everything together and consistent.
pull/741/head
Yuri Astrakhan 1 year ago
parent 0b1aabfcdd
commit 3a4c8d4a2a
  1. 55
      Cargo.toml
  2. 18
      fuzz/Cargo.toml

@ -77,6 +77,61 @@ url = "2.4"
wasm-bindgen = "0.2.83" wasm-bindgen = "0.2.83"
zstd = ">=0.12, <0.14" zstd = ">=0.12, <0.14"
[workspace.dependencies]
anyhow = "1.0.72"
arbitrary = { version = "1.3", features = ["derive"] }
assert_cmd = "2.0"
assert_fs = "1.0"
bindgen = ">=0.60, <0.70"
cc = { version = "1.0.73", features = ["parallel"] }
clap = { version = "4.0", features = ["derive"] }
codspeed-criterion-compat = "2.3.3"
console_error_panic_hook = "0.1.7"
digest = "0.10"
escargot = "0.5"
flate2 = "1.0"
getrandom = "0.2.8"
hex = "0.4"
js-sys = "0.3.60"
json-event-parser = "0.2.0-alpha.2"
libc = "0.2.147"
libfuzzer-sys = "0.4"
md-5 = "0.10"
memchr = "2.5"
oxhttp = "0.2.0-alpha.3"
oxilangtag = "0.1"
oxiri = "0.2.3-alpha.1"
peg = "0.8"
pkg-config = "0.3.25"
predicates = ">=2.0, <4.0"
pyo3 = { version = "0.20.1", features = ["extension-module"] }
quick-xml = ">=0.29, <0.32"
rand = "0.8"
rayon-core = "1.11"
regex = "1.7"
sha1 = "0.10"
sha2 = "0.10"
siphasher = ">=0.3, <2.0"
text-diff = "0.4"
time = { version = "0.3", features = ["formatting"] }
tokio = "1.29"
url = "2.4"
wasm-bindgen = "0.2.83"
zstd = ">=0.12, <0.14"
# Internal dependencies
oxigraph = { path = "lib", version = "0.4.0-alpha.3" }
oxrdf = { path = "lib/oxrdf", version = "0.2.0-alpha.1" }
oxrdfio = { path = "lib/oxrdfio", version = "0.1.0-alpha.2" }
oxrdfxml = { path = "lib/oxrdfxml", version = "0.1.0-alpha.1" }
oxrocksdb-sys = { path = "oxrocksdb-sys", version = "0.4.0-alpha.3" }
oxsdatatypes = { path = "lib/oxsdatatypes", version = "0.2.0-alpha.1" }
oxttl = { path = "lib/oxttl", version = "0.1.0-alpha.2" }
sparesults = { path = "lib/sparesults", version = "0.2.0-alpha.1" }
spargebra = { path = "lib/spargebra", version = "0.3.0-alpha.1" }
sparopt = { path = "lib/sparopt", version = "0.1.0-alpha.1" }
sparql-smith = { path = "lib/sparql-smith" }
[workspace.lints.rust] [workspace.lints.rust]
absolute_paths_not_starting_with_crate = "warn" absolute_paths_not_starting_with_crate = "warn"
elided_lifetimes_in_paths = "warn" elided_lifetimes_in_paths = "warn"

@ -8,15 +8,15 @@ edition = "2021"
cargo-fuzz = true cargo-fuzz = true
[dependencies] [dependencies]
anyhow = "1.0.72" anyhow.workspace = true
libfuzzer-sys = "0.4" libfuzzer-sys.workspace = true
oxigraph = { path = "../lib/oxigraph" } oxigraph.workspace = true
oxrdf = { path = "../lib/oxrdf", features = ["rdf-star"] } oxrdf = { workspace = true, features = ["rdf-star"] }
oxrdfxml = { path = "../lib/oxrdfxml" } oxrdfxml.workspace = true
oxttl = { path = "../lib/oxttl", features = ["rdf-star"] } oxttl = { workspace = true, features = ["rdf-star"] }
sparesults = { path = "../lib/sparesults", features = ["rdf-star"] } sparesults = { workspace = true, features = ["rdf-star"] }
spargebra = { path = "../lib/spargebra", features = ["rdf-star", "sep-0006"] } spargebra = { workspace = true, features = ["rdf-star", "sep-0006"] }
sparql-smith = { path = "../lib/sparql-smith", features = ["sep-0006"] } sparql-smith = { workspace = true, features = ["sep-0006"] }
[profile.release] [profile.release]
codegen-units = 1 codegen-units = 1

Loading…
Cancel
Save