Matlab, Rust.
Cargo.toml file. We also need to specify the target. By default, the library will be compiled to an rlib format, which is for statically linking the library into other Rust programs. But in order to load the library into MATLAB, we need to specify cdylib (C-compatible dynamic library) as a target