This talk demonstrates how to reuse existing Rust backend functionality in a web application by using WebAssembly. We will showcase a real-world project involving geological subsurface models, where computationally expensive calculations were successfully implemented in both the backend and 3D web viewer using Rust.
We showcase the required procedure based on a real world project. As part of a database and visualization system for geological subsurface models, we had pre-existing functionality to generate a virtual borehole through potentially large models. This functionality is implemented in Rust and was previously used in our backend code. As part of another project we sought to reuse these computationally expensive calculations in our 3D web viewer for calculating information based on the current content displayed. In this talk we will look at the different steps required for a successful implementation.