Skip to content

Commit 8797e93

Browse files
authored
wasm-bindgen-cli-support: update base64 0.9 to 0.21 (#3777)
1 parent adcf778 commit 8797e93

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

crates/cli-support/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rust-version = "1.57"
1414

1515
[dependencies]
1616
anyhow = "1.0"
17-
base64 = "0.9"
17+
base64 = "0.21"
1818
log = "0.4"
1919
rustc-demangle = "0.1.13"
2020
serde_json = "1.0"

crates/cli-support/src/wasm2es6js.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use anyhow::{bail, Error};
2+
use base64::{prelude::BASE64_STANDARD, Engine as _};
23
use std::collections::HashSet;
34
use std::fmt::Write;
45
use walrus::Module;
@@ -241,7 +242,7 @@ impl Output {
241242
bytes = Buffer.from(base64, 'base64');
242243
}}
243244
",
244-
base64 = base64::encode(&wasm)
245+
base64 = BASE64_STANDARD.encode(&wasm)
245246
),
246247
inst,
247248
)

0 commit comments

Comments
 (0)