Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,23 @@ license = "GPL-3.0-or-later"
repository = "https://github.com/NNPDF/eko"
rust-version = "1.70.0"
version = "0.0.1"

Comment thread
AkshatRai07 marked this conversation as resolved.
# all dependencies should be collected here in the workspace
[workspace.dependencies]
# Internal crates
ekore = { path = "crates/ekore", version = "0.0.1" }

# External dependencies
lz4_flex = "0.11.6"
ndarray = "0.15.4"
ndarray-npy = "0.8.1"
num = "0.4.1"
tar = "0.4.46"
thiserror = "1.0.63"
yaml-rust2 = "0.8"

# Dev dependencies
assert_fs = "1.1.2"
float-cmp = "0.9.0"
GSL = "7.0"
predicates = "3.1.2"
10 changes: 2 additions & 8 deletions crates/bump-versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,9 @@

def workspace(manifest, version):
manifest["workspace"]["package"]["version"] = version
return manifest


def crate(manifest, version):
internals = set(manifest["dependencies"].keys()).intersection(CRATES)
internals = set(manifest["workspace"]["dependencies"].keys()).intersection(CRATES)
for dep in internals:
manifest["dependencies"][dep]["version"] = version
manifest["workspace"]["dependencies"][dep]["version"] = version
return manifest


Expand All @@ -29,8 +25,6 @@ def update(path, version, edit):

def main(version):
update("..", version, workspace)
for name in CRATES:
Comment thread
AkshatRai07 marked this conversation as resolved.
update(name, version, crate)


if __name__ == "__main__":
Expand Down
16 changes: 8 additions & 8 deletions crates/dekoder/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ version.workspace = true
rustdoc-args = ["--html-in-header", "doc-header.html"]

[dependencies]
tar = "0.4.46"
yaml-rust2 = "0.8"
lz4_flex = "0.11.6"
ndarray = "0.15.4"
ndarray-npy = "0.8.1"
thiserror = "1.0.63"
tar.workspace = true
yaml-rust2.workspace = true
lz4_flex.workspace = true
ndarray.workspace = true
ndarray-npy.workspace = true
thiserror.workspace = true

[dev-dependencies]
assert_fs = "1.1.2"
predicates = "3.1.2"
assert_fs.workspace = true
predicates.workspace = true
4 changes: 2 additions & 2 deletions crates/eko/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ name = "ekors"
crate-type = ["cdylib"]

[dependencies]
num = "0.4.1"
ekore = { path = "../ekore", version = "0.0.1" }
num.workspace = true
ekore.workspace = true
6 changes: 3 additions & 3 deletions crates/ekore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ rustdoc-args = ["--html-in-header", "doc-header.html"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
num = "0.4.1"
num.workspace = true

[dev-dependencies]
float-cmp = "0.9.0"
GSL = "7.0"
float-cmp.workspace = true
GSL.workspace = true
Loading