Call Rust code from Python (WASM and PythonMonkey)

preview_player
Показать описание
Use PythonMonkey to load WebAssembly modules from Rust into Python and execute Rust functions from a Rust library.

Follow along with this GitHub repository:

View the medium post for this video

This tutorial covers
- Compiling a Rust library to WebAssembly using wasm-bindgen and wasm-pack
- Executing WASM code from Python

If you're interested in PythonMonkey or WebAssembly check these out

Test PythonMonkey on Google Colab:

0:00 Intro & Overview
0:14 PythonMonkey
0:57 Installing Rust and Python
2:33 Writing a sample Rust Library
5:28 Rewriting nodejs in Python (temporary)
9:03 Calling Rust from Python
9:50 Fixing an error
11:30 Adding a function to our rust library
13:37 Conclusion
Рекомендации по теме
Комментарии
Автор

I'm a simple guy: I see WASM, I see Rust, I like!

nwest_ninja