From 9b2b1bc490ae15840a1568cbdfa3bd7ffc89ed97 Mon Sep 17 00:00:00 2001 From: Maxim Chernyshov Date: Sun, 3 Mar 2024 21:53:14 +0200 Subject: [PATCH] feature(chore): remove unused deps, remove critical wee_alloc (https://github.com/rustwasm/wee_alloc/issues/106) --- registry/raw-rust-wasm/package.json | 4 +- registry/raw-rust-wasm/pnpm-lock.yaml | 52 ------------------- .../raw-rust-wasm/rust_wasm_module/src/lib.rs | 6 --- 3 files changed, 1 insertion(+), 61 deletions(-) diff --git a/registry/raw-rust-wasm/package.json b/registry/raw-rust-wasm/package.json index 612b7ed..dd0dafb 100644 --- a/registry/raw-rust-wasm/package.json +++ b/registry/raw-rust-wasm/package.json @@ -15,10 +15,8 @@ "tailwindcss": "^3.3.6", "typescript": "^5.0.2", "vite": "^4.4.5", - "vite-plugin-rsw": "^2.0.11", "vite-plugin-top-level-await": "^1.4.1", - "vite-plugin-wasm": "^3.3.0", - "vite-plugin-wasm-pack": "^0.1.12" + "vite-plugin-wasm": "^3.3.0" }, "dependencies": { "class-variance-authority": "^0.7.0", diff --git a/registry/raw-rust-wasm/pnpm-lock.yaml b/registry/raw-rust-wasm/pnpm-lock.yaml index 2fda3ad..0a65090 100644 --- a/registry/raw-rust-wasm/pnpm-lock.yaml +++ b/registry/raw-rust-wasm/pnpm-lock.yaml @@ -31,18 +31,12 @@ devDependencies: vite: specifier: ^4.4.5 version: 4.4.9 - vite-plugin-rsw: - specifier: ^2.0.11 - version: 2.0.11(vite@4.4.9) vite-plugin-top-level-await: specifier: ^1.4.1 version: 1.4.1(vite@4.4.9) vite-plugin-wasm: specifier: ^3.3.0 version: 3.3.0(vite@4.4.9) - vite-plugin-wasm-pack: - specifier: ^0.1.12 - version: 0.1.12 packages: @@ -662,15 +656,6 @@ packages: to-regex-range: 5.0.1 dev: true - /fs-extra@10.1.0: - resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==} - engines: {node: '>=12'} - dependencies: - graceful-fs: 4.2.11 - jsonfile: 6.1.0 - universalify: 2.0.1 - dev: true - /fs.realpath@1.0.0: resolution: {integrity: sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==} dev: true @@ -717,10 +702,6 @@ packages: path-is-absolute: 1.0.1 dev: true - /graceful-fs@4.2.11: - resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} - dev: true - /has-flag@4.0.0: resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} engines: {node: '>=8'} @@ -784,14 +765,6 @@ packages: hasBin: true dev: true - /jsonfile@6.1.0: - resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} - dependencies: - universalify: 2.0.1 - optionalDependencies: - graceful-fs: 4.2.11 - dev: true - /lilconfig@2.1.0: resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==} engines: {node: '>=10'} @@ -843,10 +816,6 @@ packages: hasBin: true dev: true - /narrowing@1.5.0: - resolution: {integrity: sha512-DUu4XdKgkfAPTAL28k79pdnshDE2W5T24QAnidSPo2F/W1TX6CjNzmEeXQfE5O1lxQvC0GYI6ZRDsLcyzugEYA==} - dev: true - /normalize-path@3.0.0: resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==} engines: {node: '>=0.10.0'} @@ -1163,11 +1132,6 @@ packages: hasBin: true dev: true - /universalify@2.0.1: - resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} - engines: {node: '>= 10.0.0'} - dev: true - /util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} dev: true @@ -1177,14 +1141,6 @@ packages: hasBin: true dev: true - /vite-plugin-rsw@2.0.11(vite@4.4.9): - resolution: {integrity: sha512-OqbGAtdDfK88gDoxA9wVdGowCmlzLSXEyRvD8CgTu9IP5O7tx8Tg2CtIzKOyOWZtHHZPhtdYiN+5Il6rTZCkzw==} - peerDependencies: - vite: '>2.8.0-0' - dependencies: - vite: 4.4.9 - dev: true - /vite-plugin-top-level-await@1.4.1(vite@4.4.9): resolution: {integrity: sha512-hogbZ6yT7+AqBaV6lK9JRNvJDn4/IJvHLu6ET06arNfo0t2IsyCaon7el9Xa8OumH+ESuq//SDf8xscZFE0rWw==} peerDependencies: @@ -1199,14 +1155,6 @@ packages: - rollup dev: true - /vite-plugin-wasm-pack@0.1.12: - resolution: {integrity: sha512-WliYvQp9HXluir4OKGbngkcKxtYtifU11cqLurRRJGsl770Sjr1iIkp5RuvU3IC1poT4A57Z2/YgAKI2Skm7ZA==} - dependencies: - chalk: 4.1.2 - fs-extra: 10.1.0 - narrowing: 1.5.0 - dev: true - /vite-plugin-wasm@3.3.0(vite@4.4.9): resolution: {integrity: sha512-tVhz6w+W9MVsOCHzxo6SSMSswCeIw4HTrXEi6qL3IRzATl83jl09JVO1djBqPSwfjgnpVHNLYcaMbaDX5WB/pg==} peerDependencies: diff --git a/registry/raw-rust-wasm/rust_wasm_module/src/lib.rs b/registry/raw-rust-wasm/rust_wasm_module/src/lib.rs index fb242a4..ded0058 100644 --- a/registry/raw-rust-wasm/rust_wasm_module/src/lib.rs +++ b/registry/raw-rust-wasm/rust_wasm_module/src/lib.rs @@ -2,12 +2,6 @@ mod utils; use wasm_bindgen::prelude::*; -// When the `wee_alloc` feature is enabled, use `wee_alloc` as the global -// allocator. -#[cfg(feature = "wee_alloc")] -#[global_allocator] -static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; - #[wasm_bindgen] extern { fn alert(s: &str);