File tree 3 files changed +10
-6
lines changed
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 17
17
grep " ^version = \" $from \" " " $crate_name /Cargo.toml" > /dev/null || (echo " Wrong version: $from " && exit 1)
18
18
19
19
# update package versions
20
- sed -i " " -e " s/^version = \" $from \" /version = \" $to \" /" " $crate_name /Cargo.toml"
21
- sed -i " " -e " s/^version = \" $from \" /version = \" $to \" /" " ${crate_name} _derive/Cargo.toml"
20
+ # these sed incantations are portable across BSD and GNU sed
21
+ sed -i.bak -e " s/^version = \" $from \" /version = \" $to \" /" " $crate_name /Cargo.toml"
22
+ sed -i.bak -e " s/^version = \" $from \" /version = \" $to \" /" " ${crate_name} _derive/Cargo.toml"
22
23
23
24
# update main crate's dev dependency on derive crate (if any)
24
- sed -i " " -e " s/\(${crate_name} _derive.*version\) = \" $from \" /\1 = \" $to \" /" " $crate_name /Cargo.toml"
25
+ sed -i.bak -e " s/\(${crate_name} _derive.*version\) = \" $from \" /\1 = \" $to \" /" " $crate_name /Cargo.toml"
26
+
27
+ rm " $crate_name /Cargo.toml.bak"
28
+ rm " ${crate_name} _derive/Cargo.toml.bak"
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " ethereum_ssz"
3
- version = " 1.0.0-beta.2 "
3
+ version = " 0.5.0 "
4
4
edition = " 2021"
5
5
description = " SimpleSerialize (SSZ) as used in Ethereum"
6
6
license = " Apache-2.0"
@@ -14,7 +14,7 @@ categories = ["cryptography::cryptocurrencies"]
14
14
name = " ssz"
15
15
16
16
[dev-dependencies ]
17
- ethereum_ssz_derive = { version = " 1.0.0-beta.2 " , path = " ../ssz_derive" }
17
+ ethereum_ssz_derive = { version = " 0.5.0 " , path = " ../ssz_derive" }
18
18
19
19
[dependencies ]
20
20
ethereum-types = " 0.14.1"
Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " ethereum_ssz_derive"
3
- version = " 1.0.0-beta.2 "
3
+ version = " 0.5.0 "
4
4
edition = " 2021"
5
5
description = " Procedural derive macros to accompany the ethereum_ssz crate"
6
6
license = " Apache-2.0"
You can’t perform that action at this time.
0 commit comments