We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adcf778 commit 8797e93Copy full SHA for 8797e93
crates/cli-support/Cargo.toml
@@ -14,7 +14,7 @@ rust-version = "1.57"
14
15
[dependencies]
16
anyhow = "1.0"
17
-base64 = "0.9"
+base64 = "0.21"
18
log = "0.4"
19
rustc-demangle = "0.1.13"
20
serde_json = "1.0"
crates/cli-support/src/wasm2es6js.rs
@@ -1,4 +1,5 @@
1
use anyhow::{bail, Error};
2
+use base64::{prelude::BASE64_STANDARD, Engine as _};
3
use std::collections::HashSet;
4
use std::fmt::Write;
5
use walrus::Module;
@@ -241,7 +242,7 @@ impl Output {
241
242
bytes = Buffer.from(base64, 'base64');
243
}}
244
",
- base64 = base64::encode(&wasm)
245
+ base64 = BASE64_STANDARD.encode(&wasm)
246
),
247
inst,
248
)
0 commit comments