From 8797e9320238ae80b0406721cb3d718d3aae4af5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Dub=C3=A9?= Date: Sun, 14 Jan 2024 08:47:25 +0000 Subject: [PATCH] wasm-bindgen-cli-support: update base64 0.9 to 0.21 (#3777) --- crates/cli-support/Cargo.toml | 2 +- crates/cli-support/src/wasm2es6js.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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, )