Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
chore: Move dependencies to a workspace Cargo.toml file (#86)
Browse files Browse the repository at this point in the history
* chore: pull package info from workspace Cargo.toml

* chore: move references to local crates into workspace toml

* chore: move serde dependency up to workspace

* chore: allow crate versions to diverge
  • Loading branch information
TomAFrench authored Feb 10, 2023
1 parent 65d6130 commit 8f3738c
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 26 deletions.
19 changes: 19 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
[workspace]

members = ["acir_field", "acir", "acvm", "stdlib"]

[workspace.package]
authors = ["The Noir Team <[email protected]>"]
edition = "2021"
license = "MIT"
rust-version = "1.66"

[workspace.dependencies]
acir = { version = "0.4.1", path = "acir" }
acir_field = { version = "0.4.1", path = "acir_field" }
stdlib = { package = "acvm_stdlib", version = "0.4.1", path = "stdlib" }

hex = "0.4.2"
num-bigint = "0.4"
num-traits = "0.2"

blake2 = "0.9.1"

serde = { version = "1.0.136", features = ["derive"] }
14 changes: 8 additions & 6 deletions acir/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
[package]
name = "acir"
version = "0.4.1"
authors = ["Kevaundray Wedderburn <[email protected]>"]
edition = "2021"
license = "MIT"
description = "ACIR is the IR that the VM processes, it is analogous to LLVM IR"
version = "0.4.1"
authors.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true

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

[dependencies]
acir_field = { version = "0.4.1", path = "../acir_field" }
serde = { version = "1.0.136", features = ["derive"] }
acir_field.workspace = true
serde.workspace = true

rmp-serde = "1.1.0"
flate2 = "1.0.24"

Expand Down
22 changes: 12 additions & 10 deletions acir_field/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
[package]
name = "acir_field"
version = "0.4.1"
authors = ["Kevaundray Wedderburn <[email protected]>"]
edition = "2021"
license = "MIT"
description = "The field implementation being used by ACIR."
version = "0.4.1"
authors.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true

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

[dependencies]
hex = "0.4.2"
blake2.workspace = true
hex.workspace = true
num-bigint.workspace = true
num-traits.workspace = true
serde.workspace = true


ark-bn254 = { version = "^0.4.0", optional = true, default-features = false, features = [
"curve",
Expand All @@ -19,12 +26,7 @@ ark-bls12-381 = { version = "^0.4.0", optional = true, default-features = false,
ark-ff = { version = "^0.4.0", optional = true, default-features = false }
ark-serialize = { version = "^0.4.0", default-features = false }

blake2 = "0.9.1"
cfg-if = "1.0.0"
serde = { version = "1.0.136", features = ["derive"] }

num-bigint = "0.4"
num-traits = "0.2.8"

[features]
default = ["bn254"]
Expand Down
22 changes: 12 additions & 10 deletions acvm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
[package]
name = "acvm"
version = "0.4.1"
authors = ["Kevaundray Wedderburn <[email protected]>"]
edition = "2021"
license = "MIT"
description = "The virtual machine that processes ACIR given a backend/proof system."
version = "0.4.1"
authors.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true

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

[dependencies]
num-bigint = "0.4"
num-traits = "0.2"
acir = { version = "0.4.1", path = "../acir" }
stdlib = { package = "acvm_stdlib", version = "0.4.1", path = "../stdlib" }
num-bigint.workspace = true
num-traits.workspace = true
blake2.workspace = true

acir.workspace = true
stdlib.workspace = true

sha2 = "0.9.3"
blake2 = "0.9.1"
hex = "0.4.2"
k256 = { version = "0.7.2", features = [
"ecdsa",
"ecdsa-core",
Expand Down

0 comments on commit 8f3738c

Please sign in to comment.