Skip to content

Commit

Permalink
"chore: use workspace package metadata" (lambdaclass#1292)
Browse files Browse the repository at this point in the history
* chore: use workspace package metadata

* chore: use more workspace deps

* fix: restore ensure-no_std

---------

Co-authored-by: Juan Bono <juanbono94@gmail.com>
  • Loading branch information
2 people authored and lukisanumi committed Jul 25, 2023
1 parent 3610582 commit 0682872
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 27 deletions.
14 changes: 11 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,18 @@ members = [
]
exclude = ["ensure-no_std"]

[workspace.package]
version = "0.8.0"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/lambdaclass/cairo-vm/"
readme = "README.md"

[workspace.dependencies]
felt = { package = "cairo-felt", path = "./felt", version = "0.8.0", default-features = false, features = [
"alloc",
] }
cairo-vm = { path = "./vm", version = "0.8.0", default-features = false }
mimalloc = { version = "0.1.29", default-features = false }
num-bigint = { version = "0.4", default-features = false, features = [
"serde",
Expand Down Expand Up @@ -45,9 +56,6 @@ hashbrown = { version = "0.13.2", features = ["serde"] }
anyhow = { version = "1.0.69", default-features = false }
thiserror-no-std = { version = "2.0.2", default-features = false }

felt = { package = "cairo-felt", path = "./felt", version = "0.8.0", default-features = false, features = [
"alloc",
] }
bitvec = { version = "1", default-features = false, features = ["alloc"] }

# Dependencies for cairo-1-hints feature
Expand Down
9 changes: 2 additions & 7 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@
`git checkout -b release-N`
- [ ] Update the version field in the package entry of `Cargo.toml` files.
- The versions must be the same.
- There are 4 relevant `Cargo.toml` files in the repo:
- `Cargo.toml`: update the version string.
- `cairo-vm-cli/Cargo.toml`: update the version string and also the
`cairo-vm` dependency version to match the above.
- `felt/Cargo.toml`: update the version string.
- [Here](https://github.com/lambdaclass/cairo-rs/pull/1257/files) is an
example pull request with these changes.
- You need to update the workspace dependencies `felt` and `cairo-vm`, which
you can find in the root cargo manifest under the section `[workspace.dependencies]`.
- [ ] Run `cargo update` and `git add Cargo.lock`
- [ ] Update `CHANGELOG.md`:
- Verify that the changelog is up to date.
Expand Down
9 changes: 6 additions & 3 deletions cairo-vm-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
[package]
name = "cairo-vm-cli"
version = "0.8.0"
edition = "2021"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
readme.workspace = true

[dependencies]
bincode = { version = "2.0.0-rc.2", tag = "v2.0.0-rc.2", git = "https://github.com/bincode-org/bincode.git" }
cairo-vm = { path = "../vm", version = "0.8.0" }
cairo-vm = { workspace = true, features = ["std"] }
clap = { version = "3.2.5", features = ["derive"] }
mimalloc = { version = "0.1.29", default-features = false, optional = true }
nom = "7"
Expand Down
8 changes: 5 additions & 3 deletions felt/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[package]
name = "cairo-felt"
version = "0.8.0"
edition = "2021"
license = "Apache-2.0"
description = "Field elements representation for the Cairo VM"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
readme.workspace = true

[features]
default = ["std"]
Expand Down
15 changes: 9 additions & 6 deletions hint_accountant/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
[package]
name = "hint_accountant"
version = "0.8.0"
edition = "2021"
license = "Apache-2.0"
description = "A script to check which whitelisted hints we're missing"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
readme.workspace = true
publish = false

[dependencies]
cairo-vm = { path = "../vm", version = "0.8.0" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
cairo-vm.workspace = true
serde.workspace = true
serde_json.workspace = true
10 changes: 5 additions & 5 deletions vm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "cairo-vm"
version = "0.8.0"
edition = "2021"
license = "Apache-2.0"
description = "Blazing fast Cairo interpreter"
repository = "https://github.com/lambdaclass/cairo-rs/"
readme= "../README.md"
version.workspace = true
edition.workspace = true
license.workspace = true
repository.workspace = true
readme.workspace = true

[features]
default = ["std", "with_mimalloc"]
Expand Down

0 comments on commit 0682872

Please sign in to comment.