Skip to content

Documentation on using Emscripten targets #243

Open
@tlively

Description

@tlively

Although most community focus for Web projects is on using the wasm32-unknown-unknown target, wasm-bindgen, and wasm-pack to integrate Rust into traditional Web development, the Emscripten targets are still useful for other Web use cases. For example, when compiling full applications that use OpenGL, SDL, file system support, etc. Emscripten can do all of the heavy lifting to achieve portability between the desktop and the Web.

Unfortunately, getting everything set up right to successfully use Rust and Emscripten is a bit tricky and the requirements are not documented anywhere. The best documentation I know of is this blog post by @therocode. However, that blog post is harder to discover than I would like it to be, so I would like to add a section to this book covering the basics of using Rust and Emscripten together and linking to that blog post.

I have a couple questions about this:

  1. Is this book a good place for Rust+Emscripten documentation to live? An alternative location would be the Emscripten website, but IMO it makes more sense to have these docs in a Rust-centric location because that better reflects the dependency the wasm32-unknown-emscripten Rust target has on Emscripten.

  2. How should Rust+Emscripten docs be integrated into the existing book? They don't seem to fit into any existing sections, so it seems like adding a new section at the end and just a mention in the introduction might be the best way to go.

I look forward to hearing the community's thoughts! cc @RReverser

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions