Rust module for HTML

Discussion in 'WASM.ENGLISH' started by Reklle, Mar 17, 2025.

  1. Reklle

    Reklle New Member

    Blog Posts:
    0
    Joined:
    Mar 17, 2025
    Messages:
    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

    Blog Posts:
    0
    Joined:
    Oct 8, 2017
    Messages:
    4
    Чат русскоязычный, уважайте людей!
     
  3. mantissa

    mantissa Administrator Staff Member

    Blog Posts:
    0
    Joined:
    Sep 9, 2022
    Messages:
    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 likes this.