Packing and publishing using wasm-pack
The most amazing (and, of course, the most important) thing for a library developer to do is to pack and publish artifacts. That is why we spend our days and nights carefully crafting the application, publishing it to the world, receiving feedback (either negative or positive), and then enhancing the application based on that.
The critical point for any project is its first release, which defines the fate of the project. Even though it is simply an MVP, it will give the world a glimpse of what we are working on and gives us a glimpse of what we have to work on in the future.
wasm-pack
helps us to build, pack, and publish Rust- and WebAssembly-based projects into the npm registry. We have already seen how wasm-pack
makes it simpler to build Rust into the WebAssembly binary along with the binding JavaScript file using wasm-bindgen
underneath. Let's further explore what we can do with its pack
and publish
flags.
wasm-pack
provides...