No internet connection

What is wasm32-unknown-unknown suffix?

By Orkun Külçe @orkunkl2020-08-03 11:20:25.876Z

Follow up of https://github.com/CosmWasm/docs2/issues/22.

What is the suffix unknown-unknown? It looks scary when you first see it, can it be changed to something more friendly, if not what is the explanation @ethanfrey?

  • 1 replies
  1. Orkun Külçe @orkunkl2020-08-03 11:21:20.109Z

    Answer from @ethanfrey:
    Good question. It comes from rust - this is the best answer: https://users.rust-lang.org/t/wasm-unknown-vs-emscripten/22997

    If you try rustup target list, you get something like:

    aarch64-linux-android
    i686-pc-windows-gnu
    i686-unknown-freebsd
    

    This is called a "target triple" and is defined here

    A target triple consists of three strings separated by a hyphen, with a possible fourth string at the end preceded by a hyphen. The first is the architecture, the second is the "vendor", the third is the OS type, and the optional fourth is environment type. In theory, this specifies precisely what platform the generated binary will be able to run on