Document guidance around multithreading and Wasmtime (#2812)

* Document guidance around multithreading and Wasmtime

This commit writes a page of documentation for the Wasmtime book to
serve as guidance for embedders looking to add multithreading with
Wasmtime support. As always with any safe Rust API this reading is
optional because you can't mis-use Wasmtime without `unsafe`, but I'm
hoping that this documentation can serve as a point of reference for
folks who want to add multithreading but are confused/annoyed that
Wasmtime's types do not implement the `Send` and `Sync` traits.

Closes #793

* I can type
This commit is contained in:
Alex Crichton
2021-04-07 16:34:07 -05:00
committed by GitHub
parent 195bf0e29a
commit e43d94033f
2 changed files with 149 additions and 0 deletions

View File

@@ -17,6 +17,7 @@
- [Linking Modules](./examples-rust-linking.md)
- [Debugging](./examples-rust-debugging.md)
- [Using Multi-Value](./examples-rust-multi-value.md)
- [Multi-threading](./examples-rust-multithreading.md)
- [Embedding in C](./examples-c-embed.md)
- [Hello, World!](./examples-c-hello-world.md)
- [Calculating the GCD](./examples-c-gcd.md)