How do I link with a library that isn't installed in a system directory?

I put all my custom libraries into some folder in my git directory. In C I use rpath and -L to link with it.
How do I let rust know where to find the library? it's .so or .a or .la

See this page: Page Moved