Rust module for HTML

Тема в разделе "WASM.ENGLISH", создана пользователем Reklle, 17 мар 2025.

  1. Reklle

    Reklle New Member

    Публикаций:
    0
    Регистрация:
    17 мар 2025
    Сообщения:
    1
    Good day,
    Currently I'm writing rust+wgpu module for plotting graphs in html and have a fundamental problem: I cannot use my module. All works fine using #[wasm_bindgen(start)], but I cannot use the other #[wasm_bindgen] functions. I use trunk serve command to test: all wokrs with start() but nothing for other functions. What's happens?

    How properly put the wasm module into HTML and use like a common .js package?
     
  2. E.D.

    E.D. New Member

    Публикаций:
    0
    Регистрация:
    8 окт 2017
    Сообщения:
    4
    Чат русскоязычный, уважайте людей!
     
  3. mantissa

    mantissa Мембер Команда форума

    Публикаций:
    0
    Регистрация:
    9 сен 2022
    Сообщения:
    173
    Just to clarify, this forum is focused on low-level programming and not specifically about WebAssembly or web development. The domain name might be a bit misleading in that regard.
     
    Reklle нравится это.