Codebase list rust-libslirp / 3413bce
block-buffer: really make block-padding non-optional This is another workaround for #977627. what we really want is to collapse the features via debcargo. Daniel Kahn Gillmor 3 years ago
2 changed file(s) with 33 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 rust-block-buffer (0.9.0-4) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Team upload.
3 * Package block-buffer 0.9.0 from crates.io using debcargo 2.4.3
4 * truly make block-padding non-optional (working around #977627)
5
6 -- Daniel Kahn Gillmor <dkg@fifthhorseman.net> Thu, 17 Dec 2020 16:52:34 -0500
7
08 rust-block-buffer (0.9.0-3) unstable; urgency=medium
19
210 * Package block-buffer 0.9.0 from crates.io using debcargo 2.4.3
0 This is a workaround due to the lack of a "collapse_features"
1 mechanism in debcargo. See https://bugs.debian.org/977627
2
03 --- a/Cargo.toml
14 +++ b/Cargo.toml
25 @@ -23,7 +23,6 @@
710
811 [dependencies.generic-array]
912 version = "0.14"
13 --- a/src/lib.rs
14 +++ b/src/lib.rs
15 @@ -1,11 +1,9 @@
16 #![no_std]
17 pub use generic_array;
18 -#[cfg(feature = "block-padding")]
19 pub use block_padding;
20
21 use core::{slice, convert::TryInto};
22 use generic_array::{GenericArray, ArrayLength};
23 -#[cfg(feature = "block-padding")]
24 use block_padding::{Padding, PadError};
25
26 /// Buffer for block processing of data
27 @@ -186,7 +184,6 @@
28 ///
29 /// Returns `PadError` if internall buffer is full, which can only happen if
30 /// `input_lazy` was used.
31 - #[cfg(feature = "block-padding")]
32 #[inline]
33 pub fn pad_with<P: Padding>(&mut self)
34 -> Result<&mut GenericArray<u8, BlockSize>, PadError>