Skip to content

Commit

Permalink
Version 0.5.0 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelsproul authored Jan 17, 2023
1 parent 0da7aac commit c69165f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
9 changes: 6 additions & 3 deletions bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@ to=$2
grep "^version = \"$from\"" "$crate_name/Cargo.toml" > /dev/null || (echo "Wrong version: $from" && exit 1)

# update package versions
sed -e "s/^version = \"$from\"/version = \"$to\"/" "$crate_name/Cargo.toml" -i
sed -e "s/^version = \"$from\"/version = \"$to\"/" "${crate_name}_derive/Cargo.toml" -i
sed -i.bak -e "s/^version = \"$from\"/version = \"$to\"/" "$crate_name/Cargo.toml"
sed -i.bak -e "s/^version = \"$from\"/version = \"$to\"/" "${crate_name}_derive/Cargo.toml"

# update main crate's dev dependency on derive crate (if any)
sed -e "s/\(${crate_name}_derive.*version\) = \"$from\"/\1 = \"$to\"/" "$crate_name/Cargo.toml" -i
sed -i.bak -e "s/\(${crate_name}_derive.*version\) = \"$from\"/\1 = \"$to\"/" "$crate_name/Cargo.toml" -i

rm "$crate_name/Cargo.toml.bak"
rm "${crate_name}_derive/Cargo.toml.bak"
4 changes: 2 additions & 2 deletions tree_hash/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tree_hash"
version = "1.0.0-beta.0"
version = "0.5.0"
edition = "2021"
description = "Efficient Merkle-hashing as used in Ethereum consensus"
license = "Apache-2.0"
Expand All @@ -17,7 +17,7 @@ smallvec = "1.6.1"

[dev-dependencies]
rand = "0.8.5"
tree_hash_derive = { path = "../tree_hash_derive", version = "1.0.0-beta.0" }
tree_hash_derive = { path = "../tree_hash_derive", version = "0.5.0" }
ethereum_ssz = "1.0.0-beta.2"
ethereum_ssz_derive = "1.0.0-beta.2"

Expand Down
2 changes: 1 addition & 1 deletion tree_hash_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tree_hash_derive"
version = "1.0.0-beta.0"
version = "0.5.0"
edition = "2021"
description = "Procedural derive macros to accompany the tree_hash crate"
license = "Apache-2.0"
Expand Down

0 comments on commit c69165f

Please sign in to comment.