Matlab, Rust.
the FFI types into the Rust types, call the function or method you want to wrap and then, if necessary, convert the output to the FFI type. We can then call this in MATLAB as follows: function result = distanceBetweenWithRust() libName = 'matlab_rust_integration_demo'; % Load the library