From 27853d9ea045e98d3a353cedcb5a33ed632c3411 Mon Sep 17 00:00:00 2001 From: G2-Games Date: Tue, 30 Jan 2024 10:44:21 -0600 Subject: [PATCH] Bumped `unicode-jp` version to fork Current version does not compile on WASM, and has security vulnerabilities. The fork https://github.com/uzabase/unicode-jp-rs works for WASM and has updated dependencies to address security concerns. --- minidisc-rs/Cargo.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/minidisc-rs/Cargo.toml b/minidisc-rs/Cargo.toml index 6a3b59e..36e45a6 100644 --- a/minidisc-rs/Cargo.toml +++ b/minidisc-rs/Cargo.toml @@ -19,13 +19,17 @@ nofmt = "1.0.0" once_cell = "1.18.0" unicode-normalization = "0.1.22" hex = "0.4.3" -unicode-jp = "0.4.0" regex = "1.10.2" lazy_static = "1.4.0" nusb = "0.1.4" num-derive = "0.3.3" num-traits = "0.2.14" rand = "0.8.5" +getrandom = { version = "0.2.12", features = ["js"] } + +[dependencies.unicode-jp] +# Relying on this fork for now as it has up-to-date deps +git = "https://github.com/uzabase/unicode-jp-rs.git" [lib] crate-type = ["cdylib", "rlib"]