chore(web): Update to base64 0.21 (#1235)

This commit is contained in:
tottoto
2023-01-11 12:16:59 -05:00
committed by GitHub
parent ee6ccfbcc2
commit 63f2e95be3
3 changed files with 28 additions and 3 deletions
+19
View File
@@ -67,3 +67,22 @@ impl Test for Svc {
))
}
}
pub mod util {
pub mod base64 {
use base64::{
alphabet,
engine::{
general_purpose::{GeneralPurpose, GeneralPurposeConfig},
DecodePaddingMode,
},
};
pub const STANDARD: GeneralPurpose = GeneralPurpose::new(
&alphabet::STANDARD,
GeneralPurposeConfig::new()
.with_encode_padding(true)
.with_decode_padding_mode(DecodePaddingMode::Indifferent),
);
}
}