Matlab, Rust.
loadlibrary('../rust/target/debug/matlab_rust_integration_demo.dll', '../rust/bindings.h'); % Call the do_something_with_array_ffi function result = calllib(libName, 'do_something_with_array_ffi', array, numel(array)); % Unload the library unloadlibrary(libName); end This works as you would expect: