From 0842eb2dab57f9aaf888fd123fa46c99640de0ad Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Mon, 7 Dec 2020 14:53:07 -0800 Subject: [PATCH] zebra: move to 1.x-based versioning. (#1476) Previously we set the crate versions to 3.x, so that the major version was aligned with the NU version. But we want to be able to make API changes independently of the NU schedule. --- zebra-chain/Cargo.toml | 2 +- zebra-client/Cargo.toml | 2 +- zebra-consensus/Cargo.toml | 2 +- zebra-network/Cargo.toml | 2 +- zebra-network/src/constants.rs | 3 ++- zebra-rpc/Cargo.toml | 2 +- zebra-script/Cargo.toml | 2 +- zebra-state/Cargo.toml | 2 +- zebra-test/Cargo.toml | 2 +- zebra-utils/Cargo.toml | 2 +- 10 files changed, 11 insertions(+), 10 deletions(-) diff --git a/zebra-chain/Cargo.toml b/zebra-chain/Cargo.toml index ff21f389e..22f8c2079 100644 --- a/zebra-chain/Cargo.toml +++ b/zebra-chain/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zebra-chain" -version = "3.0.0-alpha.0" +version = "1.0.0-alpha.0" authors = ["Zcash Foundation "] license = "MIT OR Apache-2.0" edition = "2018" diff --git a/zebra-client/Cargo.toml b/zebra-client/Cargo.toml index 2aac1c30f..cd86b3987 100644 --- a/zebra-client/Cargo.toml +++ b/zebra-client/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zebra-client" -version = "3.0.0-alpha.0" +version = "1.0.0-alpha.0" authors = ["Zcash Foundation "] license = "MIT OR Apache-2.0" edition = "2018" diff --git a/zebra-consensus/Cargo.toml b/zebra-consensus/Cargo.toml index 8597668d1..f118e23ae 100644 --- a/zebra-consensus/Cargo.toml +++ b/zebra-consensus/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zebra-consensus" -version = "3.0.0-alpha.0" +version = "1.0.0-alpha.0" authors = ["Zcash Foundation "] license = "MIT OR Apache-2.0" edition = "2018" diff --git a/zebra-network/Cargo.toml b/zebra-network/Cargo.toml index ec1cdccfb..9fa0b82f0 100644 --- a/zebra-network/Cargo.toml +++ b/zebra-network/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zebra-network" -version = "3.0.0-alpha.0" +version = "1.0.0-alpha.0" authors = ["Zcash Foundation "] license = "MIT OR Apache-2.0" edition = "2018" diff --git a/zebra-network/src/constants.rs b/zebra-network/src/constants.rs index 32f9f6c68..2e089442b 100644 --- a/zebra-network/src/constants.rs +++ b/zebra-network/src/constants.rs @@ -57,7 +57,8 @@ pub const TIMESTAMP_TRUNCATION_SECONDS: i64 = 30 * 60; /// This must be a valid [BIP 14] user agent. /// /// [BIP 14]: https://github.com/bitcoin/bips/blob/master/bip-0014.mediawiki -pub const USER_AGENT: &str = "/🦓Zebra🦓:3.0.0-alpha.0/"; +// XXX can we generate this from crate metadata? +pub const USER_AGENT: &str = "/🦓Zebra🦓:1.0.0-alpha.0/"; /// The Zcash network protocol version implemented by this crate, and advertised /// during connection setup. diff --git a/zebra-rpc/Cargo.toml b/zebra-rpc/Cargo.toml index 07ae17ae5..b2e1aa3fc 100644 --- a/zebra-rpc/Cargo.toml +++ b/zebra-rpc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zebra-rpc" -version = "3.0.0-alpha.0" +version = "1.0.0-alpha.0" authors = ["Zcash Foundation "] license = "MIT OR Apache-2.0" edition = "2018" diff --git a/zebra-script/Cargo.toml b/zebra-script/Cargo.toml index 7fa9812d0..a97ed0eb7 100644 --- a/zebra-script/Cargo.toml +++ b/zebra-script/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zebra-script" -version = "3.0.0-alpha.0" +version = "1.0.0-alpha.0" authors = ["Zcash Foundation "] license = "MIT OR Apache-2.0" edition = "2018" diff --git a/zebra-state/Cargo.toml b/zebra-state/Cargo.toml index 1a9e91625..651e444c2 100644 --- a/zebra-state/Cargo.toml +++ b/zebra-state/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zebra-state" -version = "3.0.0-alpha.0" +version = "1.0.0-alpha.0" authors = ["Zcash Foundation "] license = "MIT OR Apache-2.0" edition = "2018" diff --git a/zebra-test/Cargo.toml b/zebra-test/Cargo.toml index 13f5f013c..431ec8b57 100644 --- a/zebra-test/Cargo.toml +++ b/zebra-test/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zebra-test" -version = "3.0.0-alpha.0" +version = "1.0.0-alpha.0" authors = ["Zcash Foundation "] license = "MIT OR Apache-2.0" edition = "2018" diff --git a/zebra-utils/Cargo.toml b/zebra-utils/Cargo.toml index ba4fd2f52..add199021 100644 --- a/zebra-utils/Cargo.toml +++ b/zebra-utils/Cargo.toml @@ -2,7 +2,7 @@ name = "zebra-utils" authors = ["Zcash Foundation "] license = "MIT OR Apache-2.0" -version = "3.0.0-alpha.0" +version = "1.0.0-alpha.0" edition = "2018" # Prevent accidental publication of this utility crate. publish = false