Skip to content

Commit

Permalink
wasm-bindgen-cli-support: update base64 0.9 to 0.21 (#3777)
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Jan 14, 2024
1 parent adcf778 commit 8797e93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/cli-support/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ rust-version = "1.57"

[dependencies]
anyhow = "1.0"
base64 = "0.9"
base64 = "0.21"
log = "0.4"
rustc-demangle = "0.1.13"
serde_json = "1.0"
Expand Down
3 changes: 2 additions & 1 deletion crates/cli-support/src/wasm2es6js.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
use anyhow::{bail, Error};
use base64::{prelude::BASE64_STANDARD, Engine as _};
use std::collections::HashSet;
use std::fmt::Write;
use walrus::Module;
Expand Down Expand Up @@ -241,7 +242,7 @@ impl Output {
bytes = Buffer.from(base64, 'base64');
}}
",
base64 = base64::encode(&wasm)
base64 = BASE64_STANDARD.encode(&wasm)
),
inst,
)
Expand Down

0 comments on commit 8797e93

Please sign in to comment.