How to create a Rust library with WebAssembly and Webpack

preview_player
Показать описание
Add a Rust library to a Webpack project using WebAssembly.

00:00 Introduction
00:03 Getting started
00:07 Webpack example
00:20 Create a Rust library
00:35 Specify the Rust library "crate-type"
00:53 Add "wasm-bindgen" crate as "dependencies"
01:08 Import and use "wasm-bindgen" into the Rust library
01:31 Create a "greet" function
04:04 Import and initialize the Rust library in JavaScript
04:45 Use the "greet" function from the Rust library
05:05 Start Webpack "devServer" and compile Javascript and the Rust library files

-----
Documentation and links:

-----

-----
Рекомендации по теме