Skip to content

Commit

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

# update package versions
sed -i "" -e "s/^version = \"$from\"/version = \"$to\"/" "$crate_name/Cargo.toml"
sed -i "" -e "s/^version = \"$from\"/version = \"$to\"/" "${crate_name}_derive/Cargo.toml"
# these sed incantations are portable across BSD and GNU sed
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 -i "" -e "s/\(${crate_name}_derive.*version\) = \"$from\"/\1 = \"$to\"/" "$crate_name/Cargo.toml"
sed -i.bak -e "s/\(${crate_name}_derive.*version\) = \"$from\"/\1 = \"$to\"/" "$crate_name/Cargo.toml"

rm "$crate_name/Cargo.toml.bak"
rm "${crate_name}_derive/Cargo.toml.bak"
4 changes: 2 additions & 2 deletions ssz/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ethereum_ssz"
version = "1.0.0-beta.2"
version = "0.5.0"
edition = "2021"
description = "SimpleSerialize (SSZ) as used in Ethereum"
license = "Apache-2.0"
Expand All @@ -14,7 +14,7 @@ categories = ["cryptography::cryptocurrencies"]
name = "ssz"

[dev-dependencies]
ethereum_ssz_derive = { version = "1.0.0-beta.2", path = "../ssz_derive" }
ethereum_ssz_derive = { version = "0.5.0", path = "../ssz_derive" }

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

0 comments on commit 30ba4c9

Please sign in to comment.