What changed, and why it matters
This commit only updates generated API snapshot files to reflect that two new public functions, `new_with_limit`, were added to existing decoder types. It contains no actual code changes, no bug fixes, and no security-related content.
No action required; this is a non-functional API-snapshot update.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff updates consensus_encoding/api/all-features.txt and consensus_encoding/api/alloc-only.txt, which are public-API snapshot files used to track the crate’s exposed interface. The only additions are declarations for ByteVecDecoder::new_with_limit(limit: usize) and VecDecoder<T>::new_with_limit(limit: usize). These snapshots do not contain implementation logic, and the commit message is purely ‘api: update api files’.
Changed components
consensus_encoding/api/all-features.txtconsensus_encoding/api/alloc-only.txtInspect captured patch +4 / −0
diff --git a/consensus_encoding/api/all-features.txt b/consensus_encoding/api/all-features.txt
index e18f77a5..023a0a86 100644
--- a/consensus_encoding/api/all-features.txt
+++ b/consensus_encoding/api/all-features.txt
@@ -955,6 +955,7 @@ pub fn bitcoin_consensus_encoding::ArrayRefEncoder<'e, N>::from(t: T) -> T
pub struct bitcoin_consensus_encoding::ByteVecDecoder
impl bitcoin_consensus_encoding::ByteVecDecoder
pub const fn bitcoin_consensus_encoding::ByteVecDecoder::new() -> Self
+pub const fn bitcoin_consensus_encoding::ByteVecDecoder::new_with_limit(limit: usize) -> Self
impl bitcoin_consensus_encoding::Decoder for bitcoin_consensus_encoding::ByteVecDecoder
pub type bitcoin_consensus_encoding::ByteVecDecoder::Error = bitcoin_consensus_encoding::error::ByteVecDecoderError
pub type bitcoin_consensus_encoding::ByteVecDecoder::Output = alloc::vec::Vec<u8>
@@ -1816,6 +1817,7 @@ pub fn bitcoin_consensus_encoding::error::UnexpectedEofError::from(t: T) -> T
pub struct bitcoin_consensus_encoding::VecDecoder<T: bitcoin_consensus_encoding::Decodable>
impl<T: bitcoin_consensus_encoding::Decodable> bitcoin_consensus_encoding::VecDecoder<T>
pub const fn bitcoin_consensus_encoding::VecDecoder<T>::new() -> Self
+pub const fn bitcoin_consensus_encoding::VecDecoder<T>::new_with_limit(limit: usize) -> Self
impl<T: bitcoin_consensus_encoding::Decodable> bitcoin_consensus_encoding::Decoder for bitcoin_consensus_encoding::VecDecoder<T>
pub type bitcoin_consensus_encoding::VecDecoder<T>::Error = bitcoin_consensus_encoding::error::VecDecoderError<<<T as bitcoin_consensus_encoding::Decodable>::Decoder as bitcoin_consensus_encoding::Decoder>::Error>
pub type bitcoin_consensus_encoding::VecDecoder<T>::Output = alloc::vec::Vec<T>
diff --git a/consensus_encoding/api/alloc-only.txt b/consensus_encoding/api/alloc-only.txt
index c0d583c7..6e73e8f6 100644
--- a/consensus_encoding/api/alloc-only.txt
+++ b/consensus_encoding/api/alloc-only.txt
@@ -853,6 +853,7 @@ pub fn bitcoin_consensus_encoding::ArrayRefEncoder<'e, N>::from(t: T) -> T
pub struct bitcoin_consensus_encoding::ByteVecDecoder
impl bitcoin_consensus_encoding::ByteVecDecoder
pub const fn bitcoin_consensus_encoding::ByteVecDecoder::new() -> Self
+pub const fn bitcoin_consensus_encoding::ByteVecDecoder::new_with_limit(limit: usize) -> Self
impl bitcoin_consensus_encoding::Decoder for bitcoin_consensus_encoding::ByteVecDecoder
pub type bitcoin_consensus_encoding::ByteVecDecoder::Error = bitcoin_consensus_encoding::error::ByteVecDecoderError
pub type bitcoin_consensus_encoding::ByteVecDecoder::Output = alloc::vec::Vec<u8>
@@ -1706,6 +1707,7 @@ pub fn bitcoin_consensus_encoding::error::UnexpectedEofError::from(t: T) -> T
pub struct bitcoin_consensus_encoding::VecDecoder<T: bitcoin_consensus_encoding::Decodable>
impl<T: bitcoin_consensus_encoding::Decodable> bitcoin_consensus_encoding::VecDecoder<T>
pub const fn bitcoin_consensus_encoding::VecDecoder<T>::new() -> Self
+pub const fn bitcoin_consensus_encoding::VecDecoder<T>::new_with_limit(limit: usize) -> Self
impl<T: bitcoin_consensus_encoding::Decodable> bitcoin_consensus_encoding::Decoder for bitcoin_consensus_encoding::VecDecoder<T>
pub type bitcoin_consensus_encoding::VecDecoder<T>::Error = bitcoin_consensus_encoding::error::VecDecoderError<<<T as bitcoin_consensus_encoding::Decodable>::Decoder as bitcoin_consensus_encoding::Decoder>::Error>
pub type bitcoin_consensus_encoding::VecDecoder<T>::Output = alloc::vec::Vec<T>
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.