Skip to content

Commit

Permalink
Upgrade base64 to 0.21 (#123)
Browse files Browse the repository at this point in the history
Summary: Pull Request resolved: facebookresearch/Private-ID#123

Reviewed By: zertosh

Differential Revision: D61737689

fbshipit-source-id: dc98887dd6b346f11d8efe7ffa085311f6110c37
  • Loading branch information
capickett authored and facebook-github-bot committed Aug 28, 2024
1 parent 1f720eb commit 62d3102
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async-scoped = { version = "0.9", features = ["use-tokio"] }
async-trait = "0.1.24"
atomic = "0.5.1"
backtrace = "0.3.51"
base64 = "0.13.0"
base64 = "0.21.7"
bincode = "1.3.3"
blake3 = { version = "1.3.1", features = ["default", "digest", "rayon", "std", "traits-preview"] }
bumpalo = "3.11.1"
Expand Down
4 changes: 3 additions & 1 deletion app/buck2_explain/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
use std::fs;
use std::io::Cursor;

use base64::engine::general_purpose::STANDARD;
use base64::Engine;
use buck2_core::fs::paths::abs_path::AbsPathBuf;

#[allow(unused_imports)]
Expand All @@ -33,7 +35,7 @@ pub async fn main(
let fbs = flatbuffers::gen_fbs(data)?;

let fbs = fbs.finished_data();
let base64 = base64::encode(&fbs);
let base64 = STANDARD.encode(&fbs);

// For dev purposes, dump the base64 encoded flatbuffer to a file
if let Some(fbs_dump) = fbs_dump {
Expand Down
2 changes: 1 addition & 1 deletion shim/third-party/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ async-scoped = { version = "0.8", features = ["use-tokio"] }
async-trait = "0.1.24"
atomic = "0.5.1"
backtrace = "0.3.51"
base64 = "0.13.0"
base64 = "0.21.7"
bincode = "1.3.3"
bitflags = "2.4"
blake3 = { version = "1.3.1", features = [ "default", "digest", "rayon", "std", "traits-preview" ] }
Expand Down

0 comments on commit 62d3102

Please sign in to comment.