I am using IntelliJ IDEA to experiment with rust. In order to gain an understanding of how to invoke libraries created in other languages, I have created a tiny dynamic library in C whose .so file is in ../expclib1/libexp1.so.
How do I inform intellij and rust that the implementation of
#[link(name="exp1")]
extern {
fn bacon()->i32;
}
lives in ../expclib1/libexp1.so ? I know that in C you need to specify -L../expclib1 -lexp1 in the link stage and then export LD_LIBRARY_PATH=../expclib1 before trying to run it. How do I make this work from cargo, and how do I make it work from intellij's run menu? There are basically no options on the module inside of intellij, so I'm hoping that it can all be specified in the Cargo.toml.
