chore: Update to base64 0.21 (#1228)

This commit is contained in:
tottoto
2023-01-11 11:25:38 -05:00
committed by GitHub
parent 54c37a7c51
commit ee6ccfbcc2
7 changed files with 61 additions and 12 deletions
+19
View File
@@ -139,3 +139,22 @@ where
)
.layer(GrpcWebService::new(service))
}
pub(crate) mod util {
pub(crate) mod base64 {
use base64::{
alphabet,
engine::{
general_purpose::{GeneralPurpose, GeneralPurposeConfig},
DecodePaddingMode,
},
};
pub(crate) const STANDARD: GeneralPurpose = GeneralPurpose::new(
&alphabet::STANDARD,
GeneralPurposeConfig::new()
.with_encode_padding(true)
.with_decode_padding_mode(DecodePaddingMode::Indifferent),
);
}
}