What changed, and why it matters
This commit only updates machine-generated API snapshot text files to add a newly exposed public function, CompactTarget::to_target, to the recorded public interface. There is no source code change, no bug fix, and no security-relevant behavior change in this commit itself.
No security action needed. Treat as routine API-snapshot maintenance. If reviewing the related feature, inspect the actual implementation of CompactTarget::to_target separately.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff updates three API manifest files under units/api/ to reflect that bitcoin_units::pow::CompactTarget::to_target is now part of the public API. These files are typically generated by cargo-public-api or a similar tool and committed to track API surface changes. The actual implementation of to_target is not present in this diff, and no logic is modified.
Changed components
units/api/all-features.txtunits/api/alloc-only.txtunits/api/no-features.txtInspect captured patch +6 / −0
diff --git a/units/api/all-features.txt b/units/api/all-features.txt
index 7a9a61b2..baa47489 100644
--- a/units/api/all-features.txt
+++ b/units/api/all-features.txt
@@ -6522,6 +6522,7 @@ pub fn bitcoin_units::pow::CompactTarget::from_consensus(bits: u32) -> Self
pub fn bitcoin_units::pow::CompactTarget::from_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::PrefixedHexError> where Self: core::marker::Sized
pub fn bitcoin_units::pow::CompactTarget::from_unprefixed_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::UnprefixedHexError> where Self: core::marker::Sized
pub const fn bitcoin_units::pow::CompactTarget::to_consensus(self) -> u32
+pub fn bitcoin_units::pow::CompactTarget::to_target(self) -> bitcoin_units::pow::Target
impl bitcoin_consensus_encoding::decode::Decode for bitcoin_units::pow::CompactTarget
pub type bitcoin_units::pow::CompactTarget::Decoder = bitcoin_units::pow::CompactTargetDecoder [impl: impl bitcoin_consensus_encoding::decode::Decode for bitcoin_units::pow::CompactTarget]
impl bitcoin_consensus_encoding::encode::Encode for bitcoin_units::pow::CompactTarget
@@ -10986,6 +10987,7 @@ pub fn bitcoin_units::pow::CompactTarget::from_consensus(bits: u32) -> Self
pub fn bitcoin_units::pow::CompactTarget::from_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::PrefixedHexError> where Self: core::marker::Sized
pub fn bitcoin_units::pow::CompactTarget::from_unprefixed_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::UnprefixedHexError> where Self: core::marker::Sized
pub const fn bitcoin_units::pow::CompactTarget::to_consensus(self) -> u32
+pub fn bitcoin_units::pow::CompactTarget::to_target(self) -> bitcoin_units::pow::Target
impl bitcoin_consensus_encoding::decode::Decode for bitcoin_units::pow::CompactTarget
pub type bitcoin_units::pow::CompactTarget::Decoder = bitcoin_units::pow::CompactTargetDecoder [impl: impl bitcoin_consensus_encoding::decode::Decode for bitcoin_units::pow::CompactTarget]
impl bitcoin_consensus_encoding::encode::Encode for bitcoin_units::pow::CompactTarget
diff --git a/units/api/alloc-only.txt b/units/api/alloc-only.txt
index fb5e0b76..482c9499 100644
--- a/units/api/alloc-only.txt
+++ b/units/api/alloc-only.txt
@@ -5391,6 +5391,7 @@ pub fn bitcoin_units::pow::CompactTarget::from_consensus(bits: u32) -> Self
pub fn bitcoin_units::pow::CompactTarget::from_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::PrefixedHexError> where Self: core::marker::Sized
pub fn bitcoin_units::pow::CompactTarget::from_unprefixed_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::UnprefixedHexError> where Self: core::marker::Sized
pub const fn bitcoin_units::pow::CompactTarget::to_consensus(self) -> u32
+pub fn bitcoin_units::pow::CompactTarget::to_target(self) -> bitcoin_units::pow::Target
impl core::clone::Clone for bitcoin_units::pow::CompactTarget
pub fn bitcoin_units::pow::CompactTarget::clone(&self) -> bitcoin_units::pow::CompactTarget [impl: impl core::clone::Clone for bitcoin_units::pow::CompactTarget]
impl core::cmp::Eq for bitcoin_units::pow::CompactTarget
@@ -9210,6 +9211,7 @@ pub fn bitcoin_units::pow::CompactTarget::from_consensus(bits: u32) -> Self
pub fn bitcoin_units::pow::CompactTarget::from_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::PrefixedHexError> where Self: core::marker::Sized
pub fn bitcoin_units::pow::CompactTarget::from_unprefixed_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::UnprefixedHexError> where Self: core::marker::Sized
pub const fn bitcoin_units::pow::CompactTarget::to_consensus(self) -> u32
+pub fn bitcoin_units::pow::CompactTarget::to_target(self) -> bitcoin_units::pow::Target
impl core::clone::Clone for bitcoin_units::pow::CompactTarget
pub fn bitcoin_units::pow::CompactTarget::clone(&self) -> bitcoin_units::pow::CompactTarget [impl: impl core::clone::Clone for bitcoin_units::pow::CompactTarget]
impl core::cmp::Eq for bitcoin_units::pow::CompactTarget
diff --git a/units/api/no-features.txt b/units/api/no-features.txt
index 55623f05..ef187a6a 100644
--- a/units/api/no-features.txt
+++ b/units/api/no-features.txt
@@ -4767,6 +4767,7 @@ pub fn bitcoin_units::pow::CompactTarget::from_consensus(bits: u32) -> Self
pub fn bitcoin_units::pow::CompactTarget::from_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::PrefixedHexError> where Self: core::marker::Sized
pub fn bitcoin_units::pow::CompactTarget::from_unprefixed_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::UnprefixedHexError> where Self: core::marker::Sized
pub const fn bitcoin_units::pow::CompactTarget::to_consensus(self) -> u32
+pub fn bitcoin_units::pow::CompactTarget::to_target(self) -> bitcoin_units::pow::Target
impl core::clone::Clone for bitcoin_units::pow::CompactTarget
pub fn bitcoin_units::pow::CompactTarget::clone(&self) -> bitcoin_units::pow::CompactTarget [impl: impl core::clone::Clone for bitcoin_units::pow::CompactTarget]
impl core::cmp::Eq for bitcoin_units::pow::CompactTarget
@@ -8278,6 +8279,7 @@ pub fn bitcoin_units::pow::CompactTarget::from_consensus(bits: u32) -> Self
pub fn bitcoin_units::pow::CompactTarget::from_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::PrefixedHexError> where Self: core::marker::Sized
pub fn bitcoin_units::pow::CompactTarget::from_unprefixed_hex(s: &str) -> core::result::Result<Self, bitcoin_units::parse_int::error::UnprefixedHexError> where Self: core::marker::Sized
pub const fn bitcoin_units::pow::CompactTarget::to_consensus(self) -> u32
+pub fn bitcoin_units::pow::CompactTarget::to_target(self) -> bitcoin_units::pow::Target
impl core::clone::Clone for bitcoin_units::pow::CompactTarget
pub fn bitcoin_units::pow::CompactTarget::clone(&self) -> bitcoin_units::pow::CompactTarget [impl: impl core::clone::Clone for bitcoin_units::pow::CompactTarget]
impl core::cmp::Eq for bitcoin_units::pow::CompactTarget
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.