Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

134
Vistas
How to import WasmMemory without a bundler?

I was following the tutorial on making a WASM application with Rust. I decided on not using a bundler, but I stumbled upon a question. When using a bundler, to access WASM's memory, I can simply import { memory } from "<package>/<package>_bg", but without it, I can't make it work. What I'm doing:

import init , * as wasm from "./wasm/inner.js";

async function run() {
    await init();

    window.wasm = wasm;
    wasm.debug_mode();
}

run();

This code works, and I can call Rust's functions easily. The problem is accessing WASM's memory. How do I get a reference to it, or something? Is it even possible? I stumbled upon the possibility of doing let wasm = await init();, but the methods inside this object don't work, neither does the memory object inside of it.

Thanks in advance!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda