From c73ef5fa143b473677d4cab069241ff018e0c971 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Sat, 5 Jun 2021 23:10:07 +0200 Subject: refactor(web): use encoding_rs for text encoding (#10844) This commit removes all JS based text encoding / text decoding. Instead encoding now happens in Rust via encoding_rs (already in tree). This implementation retains stream support, but adds the last missing encodings. We are incredibly close to 100% WPT on text encoding now. This should reduce our baseline heap by quite a bit. --- extensions/web/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'extensions/web/Cargo.toml') diff --git a/extensions/web/Cargo.toml b/extensions/web/Cargo.toml index 1d0cd5411..3df897dc7 100644 --- a/extensions/web/Cargo.toml +++ b/extensions/web/Cargo.toml @@ -14,7 +14,10 @@ repository = "https://github.com/denoland/deno" path = "lib.rs" [dependencies] +base64 = "0.13.0" deno_core = { version = "0.88.1", path = "../../core" } +encoding_rs = "0.8.28" +serde = "1.0" [dev-dependencies] futures = "0.3.15" -- cgit v1.2.3