I'm using the image crate and Visual Studio with Rust plugin. The code is like this:
extern crate image;
When I use the command line cargo build
, everything was fine. With the Visual Studio build I get
src\main.rs(4,1): error : found staticlib `image` instead of rlib or dylib
help: please recompile this crate using --crate-type lib
How can I use the crate in Visual Studio?