Matlab, Rust.
library crate type. After these changes, our Cargo.toml file looks as follows: [package] name = "matlab_rust_integration_demo" version = "0.1.0" edition = "2021" [dependencies] [lib] crate-type = ["cdylib", "rlib"] If you open the src/lib.rs file, you will find that the library was initialised with