diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3e5c3af11..9291bdbbf 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -34,7 +34,7 @@ jobs: uses: actions/checkout@v4 with: repository: rust-bitcoin/rust-bitcoin-maintainer-tools - rev: b2ac115 + ref: b2ac11556708cd0fb82c8139ff38b1be8d4a62e1 path: maintainer-tools - name: "Select toolchain" uses: dtolnay/rust-toolchain@stable @@ -58,7 +58,7 @@ jobs: uses: actions/checkout@v4 with: repository: rust-bitcoin/rust-bitcoin-maintainer-tools - rev: b2ac115 + ref: b2ac11556708cd0fb82c8139ff38b1be8d4a62e1 path: maintainer-tools - name: "Select toolchain" uses: dtolnay/rust-toolchain@v1 @@ -83,7 +83,7 @@ jobs: uses: actions/checkout@v4 with: repository: rust-bitcoin/rust-bitcoin-maintainer-tools - rev: b2ac115 + ref: b2ac11556708cd0fb82c8139ff38b1be8d4a62e1 path: maintainer-tools - name: "Select toolchain" uses: dtolnay/rust-toolchain@stable @@ -109,7 +109,7 @@ jobs: uses: actions/checkout@v4 with: repository: rust-bitcoin/rust-bitcoin-maintainer-tools - rev: b2ac115 + ref: b2ac11556708cd0fb82c8139ff38b1be8d4a62e1 path: maintainer-tools - name: "Select toolchain" uses: dtolnay/rust-toolchain@v1 @@ -136,7 +136,7 @@ jobs: uses: actions/checkout@v4 with: repository: rust-bitcoin/rust-bitcoin-maintainer-tools - rev: b2ac115 + ref: b2ac11556708cd0fb82c8139ff38b1be8d4a62e1 path: maintainer-tools - name: "Select toolchain" uses: dtolnay/rust-toolchain@stable @@ -160,7 +160,7 @@ jobs: uses: actions/checkout@v4 with: repository: rust-bitcoin/rust-bitcoin-maintainer-tools - rev: b2ac115 + ref: b2ac11556708cd0fb82c8139ff38b1be8d4a62e1 path: maintainer-tools - name: "Select toolchain" uses: dtolnay/rust-toolchain@v1 @@ -186,7 +186,7 @@ jobs: uses: actions/checkout@v4 with: repository: rust-bitcoin/rust-bitcoin-maintainer-tools - rev: b2ac115 + ref: b2ac11556708cd0fb82c8139ff38b1be8d4a62e1 path: maintainer-tools - name: "Select toolchain" uses: dtolnay/rust-toolchain@v1 diff --git a/bitcoin/src/blockdata/witness.rs b/bitcoin/src/blockdata/witness.rs index 29e2054ee..105138884 100644 --- a/bitcoin/src/blockdata/witness.rs +++ b/bitcoin/src/blockdata/witness.rs @@ -12,7 +12,7 @@ use io::{BufRead, Write}; use crate::consensus::encode::{Error, MAX_VEC_SIZE}; use crate::consensus::{Decodable, Encodable, WriteExt}; use crate::crypto::ecdsa; -use crate::prelude::Vec; +use crate::prelude::{Vec, String}; #[cfg(doc)] use crate::script::ScriptExt as _; use crate::taproot::{self, TAPROOT_ANNEX_PREFIX}; diff --git a/bitcoin/src/serde_utils.rs b/bitcoin/src/serde_utils.rs index 3891fa31e..b824098b1 100644 --- a/bitcoin/src/serde_utils.rs +++ b/bitcoin/src/serde_utils.rs @@ -25,7 +25,7 @@ pub mod btreemap_byte_values { use hex::FromHex; - use crate::prelude::BTreeMap; + use crate::prelude::{BTreeMap, Vec}; pub fn serialize(v: &BTreeMap>, s: S) -> Result where @@ -162,7 +162,7 @@ pub mod btreemap_as_seq_byte_values { // NOTE: This module can be exactly copied to use with HashMap. - use crate::prelude::BTreeMap; + use crate::prelude::{BTreeMap, Vec}; /// A custom key-value pair type that serialized the bytes as hex. #[derive(Debug, Deserialize)] diff --git a/contrib/crates.sh b/contrib/crates.sh index c3d605eee..1b98e5bbe 100644 --- a/contrib/crates.sh +++ b/contrib/crates.sh @@ -5,4 +5,4 @@ # shellcheck disable=SC2034 # Crates in this workspace to test (note "fuzz" is only built not tested). -CRATES=("addresses" "base58" "bitcoin" "hashes" "internals" "io" "units" "fuzz") +CRATES=("addresses" "base58" "bitcoin" "primitives" "hashes" "internals" "io" "units" "fuzz") diff --git a/primitives/Cargo.toml b/primitives/Cargo.toml index d4d760d87..9a293fdaf 100644 --- a/primitives/Cargo.toml +++ b/primitives/Cargo.toml @@ -18,7 +18,7 @@ exclude = ["tests", "contrib"] default = ["std"] std = ["alloc", "internals/std", "io/std", "units/std"] alloc = ["internals/alloc", "io/alloc", "units/alloc"] -serde = ["dep:serde", "internals/serde", "units/serde"] +serde = ["dep:serde", "internals/serde", "units/serde", "alloc"] [dependencies] internals = { package = "bitcoin-internals", version = "0.3.0" } diff --git a/primitives/contrib/test_vars.sh b/primitives/contrib/test_vars.sh index 8bb284700..b81461161 100644 --- a/primitives/contrib/test_vars.sh +++ b/primitives/contrib/test_vars.sh @@ -5,10 +5,10 @@ # shellcheck disable=SC2034 # Test these features with "std" enabled. -FEATURES_WITH_STD="serde" +FEATURES_WITH_STD="ordered serde" # Test these features without "std" enabled. -FEATURES_WITHOUT_STD="alloc serde" +FEATURES_WITHOUT_STD="alloc ordered serde" # Run these examples. EXAMPLES=""