diff --git a/crates/cli-support/Cargo.toml b/crates/cli-support/Cargo.toml index cff82de10a9..0dae8e03959 100644 --- a/crates/cli-support/Cargo.toml +++ b/crates/cli-support/Cargo.toml @@ -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" diff --git a/crates/cli-support/src/wasm2es6js.rs b/crates/cli-support/src/wasm2es6js.rs index 981dce62952..77a51d8b445 100644 --- a/crates/cli-support/src/wasm2es6js.rs +++ b/crates/cli-support/src/wasm2es6js.rs @@ -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; @@ -241,7 +242,7 @@ impl Output { bytes = Buffer.from(base64, 'base64'); }} ", - base64 = base64::encode(&wasm) + base64 = BASE64_STANDARD.encode(&wasm) ), inst, )