Skip to content

Commit fa1e5b5

Browse files
committed
Merge rust-bitcoin#5362: Release tracking PR: primitives v1.0.0-rc.1
e66eea5 Release tracking PR: `primitives v1.0.0-rc.1` (Tobin C. Harding) 52749bf bitcoin: Remove call to deprecated function (Tobin C. Harding) 64c9298 primitives: Remove deprecated type from API test (Tobin C. Harding) 55a00ae Pin all RC dependencies (Tobin C. Harding) Pull request description: Do another RC round. (Note I did not check if anything needs to go in the changelog because we will need to do so before the 1.0 anyways.) ACKs for top commit: apoelstra: ACK e66eea5; successfully ran local tests Tree-SHA512: 519457680b0df5d6d8ec93aa2c38c6147f7f3c1a3fec3013f68d99c310742e8d6c680dd95db897307dc65a7b8962de89425446e39259672199cb393621d16a50
2 parents b53f2f0 + e66eea5 commit fa1e5b5

File tree

13 files changed

+18
-18
lines changed

13 files changed

+18
-18
lines changed

Cargo-minimal.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ dependencies = [
138138

139139
[[package]]
140140
name = "bitcoin-primitives"
141-
version = "1.0.0-rc.0"
141+
version = "1.0.0-rc.1"
142142
dependencies = [
143143
"arbitrary",
144144
"arrayvec",

Cargo-recent.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ dependencies = [
137137

138138
[[package]]
139139
name = "bitcoin-primitives"
140-
version = "1.0.0-rc.0"
140+
version = "1.0.0-rc.1"
141141
dependencies = [
142142
"arbitrary",
143143
"arrayvec",

bitcoin/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ hashes = { package = "bitcoin_hashes", path = "../hashes", version = "0.18.0", d
3131
hex = { package = "hex-conservative", version = "0.3.0", default-features = false, features = ["alloc"] }
3232
internals = { package = "bitcoin-internals", path = "../internals", version = "0.4.2", features = ["alloc", "hex"] }
3333
io = { package = "bitcoin-io", path = "../io", version = "0.3.0", default-features = false, features = ["alloc", "hashes"] }
34-
primitives = { package = "bitcoin-primitives", path = "../primitives", version = "1.0.0-rc.0", default-features = false, features = ["alloc", "hex"] }
34+
primitives = { package = "bitcoin-primitives", path = "../primitives", version = "=1.0.0-rc.1", default-features = false, features = ["alloc", "hex"] }
3535
secp256k1 = { version = "0.32.0-beta.2", default-features = false, features = ["alloc"] }
36-
units = { package = "bitcoin-units", path = "../units", version = "1.0.0-rc.3", default-features = false, features = ["alloc"] }
36+
units = { package = "bitcoin-units", path = "../units", version = "=1.0.0-rc.3", default-features = false, features = ["alloc"] }
3737

3838
arbitrary = { version = "1.4.1", optional = true }
3939
base64 = { version = "0.22.0", optional = true, default-features = false, features = ["alloc"] }

bitcoin/examples/script.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ fn main() {
7777
assert_eq!(decoded, script_code);
7878

7979
// to/from bytes excludes the prefix, these are not encoding/decoding functions so this is sane.
80-
let bytes = script_code.to_bytes();
80+
let bytes = script_code.to_vec();
8181
let got = WitnessScriptBuf::from_bytes(bytes);
8282
assert_eq!(got, script_code);
8383
}

hashes/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ small-hash = []
2323

2424
[dependencies]
2525
internals = { package = "bitcoin-internals", path = "../internals", version = "0.4.1" }
26-
encoding = { package = "bitcoin-consensus-encoding", path = "../consensus_encoding", version = "1.0.0-rc.2", default-features = false }
26+
encoding = { package = "bitcoin-consensus-encoding", path = "../consensus_encoding", version = "=1.0.0-rc.2", default-features = false }
2727

2828
hex = { package = "hex-conservative", version = "0.3.0", default-features = false, optional = true }
2929
serde = { version = "1.0.195", default-features = false, optional = true }

io/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ alloc = ["encoding/alloc", "hashes?/alloc", "internals/alloc"]
2020

2121
[dependencies]
2222
internals = { package = "bitcoin-internals", path = "../internals", version = "0.4.1" }
23-
encoding = { package = "bitcoin-consensus-encoding", path = "../consensus_encoding", version = "1.0.0-rc.2", default-features = false }
23+
encoding = { package = "bitcoin-consensus-encoding", path = "../consensus_encoding", version = "=1.0.0-rc.2", default-features = false }
2424

2525
hashes = { package = "bitcoin_hashes", path = "../hashes", version = "0.18.0", default-features = false, optional = true }
2626

p2p/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ arbitrary = ["dep:arbitrary", "bitcoin/arbitrary"]
1919

2020
[dependencies]
2121
bitcoin = { path = "../bitcoin/", default-features = false }
22-
encoding = { package = "bitcoin-consensus-encoding", version = "1.0.0-rc.1", path = "../consensus_encoding", default-features = false }
22+
encoding = { package = "bitcoin-consensus-encoding", version = "=1.0.0-rc.2", path = "../consensus_encoding", default-features = false }
2323
hashes = { package = "bitcoin_hashes", version = "0.18.0", path = "../hashes", default-features = false }
2424
hex = { package = "hex-conservative", version = "0.3.0", default-features = false }
2525
internals = { package = "bitcoin-internals", path = "../internals", default-features = false }
2626
io = { package = "bitcoin-io", path = "../io", default-features = false }
27-
units = { package = "bitcoin-units", path = "../units", version = "1.0.0-rc.3", default-features = false }
27+
units = { package = "bitcoin-units", path = "../units", version = "=1.0.0-rc.3", default-features = false }
2828

2929
arbitrary = { version = "1.4.1", optional = true }
3030

primitives/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bitcoin-primitives"
3-
version = "1.0.0-rc.0"
3+
version = "1.0.0-rc.1"
44
authors = ["Andrew Poelstra <[email protected]>", "Tobin C. Harding <[email protected]>"]
55
license = "CC0-1.0"
66
repository = "https://github.com/rust-bitcoin/rust-bitcoin"
@@ -21,10 +21,10 @@ arbitrary = ["dep:arbitrary", "units/arbitrary"]
2121
hex = ["dep:hex-stable", "dep:hex-unstable", "hashes/hex", "internals/hex"]
2222

2323
[dependencies]
24-
encoding = { package = "bitcoin-consensus-encoding", path = "../consensus_encoding", version = "1.0.0-rc.1", default-features = false }
24+
encoding = { package = "bitcoin-consensus-encoding", path = "../consensus_encoding", version = "=1.0.0-rc.2", default-features = false }
2525
hashes = { package = "bitcoin_hashes", path = "../hashes", version = "0.18.0", default-features = false }
2626
internals = { package = "bitcoin-internals", path = "../internals", version = "0.4.1" }
27-
units = { package = "bitcoin-units", path = "../units", version = "1.0.0-rc.3", default-features = false, features = [ "encoding" ] }
27+
units = { package = "bitcoin-units", path = "../units", version = "=1.0.0-rc.3", default-features = false, features = [ "encoding" ] }
2828
arrayvec = { version = "0.7.2", default-features = false }
2929

3030
arbitrary = { version = "1.4.1", optional = true }

primitives/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub use units::{
6767
weight::{self, Weight},
6868
};
6969

70-
#[deprecated(since = "TBD", note = "use `BlockHeightInterval` instead")]
70+
#[deprecated(since = "1.0.0-rc.0", note = "use `BlockHeightInterval` instead")]
7171
#[doc(hidden)]
7272
pub type BlockInterval = BlockHeightInterval;
7373

primitives/src/pow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl CompactTarget {
3737
/// Gets the hex representation of this [`CompactTarget`].
3838
#[cfg(feature = "alloc")]
3939
#[inline]
40-
#[deprecated(since = "TBD", note = "use `format!(\"{var:x}\")` instead")]
40+
#[deprecated(since = "1.0.0-rc.0", note = "use `format!(\"{var:x}\")` instead")]
4141
pub fn to_hex(self) -> alloc::string::String { alloc::format!("{:x}", self) }
4242
}
4343

0 commit comments

Comments
 (0)