Compile Rust to WebAssembly to run on the web (web-sys/js-sys/wasm-bindgen)

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ • 5

  • @1stCyborgOnMars
    @1stCyborgOnMars 6 місяців тому

    Thanks for a great beginner episode 👌

  • @yapayzeka
    @yapayzeka 4 місяці тому +1

    log part is wrong.
    if you use externs like here "log" you would write log("hello"). but in your example you defined log but didnt use. you used the web-sys. with web-sys you write consele::log_1 etc. sorry for pointing out but didnt see a correction in the description.

    • @monroeprograms
      @monroeprograms  4 місяці тому +1

      you're right, not sure why I did that

  • @DavidAlsh
    @DavidAlsh 6 місяців тому

    How do threads, channels and exporting non blocking functions from Rust/wasm work? I know it's a pain with Nodejs+napi (thread safe functions and all that craziness) - can you accidentally block or deadlock the main JS thread from wasm like you can with Nodejs+napi?

  • @taimoori
    @taimoori Рік тому +1

    I'm finding hard that rust fn should call the ts function. I want to send json req from rust to '.ts' fn . is there any guide on that?