I have a Rust project that depends on DLLs that exist in a separate location on my system and are controlled by a dependency manager. Is there a way I can use "cargo run/test" without needing to copy these DLLs into the target directory in order for the executable to find them? I am wondering if this can be done using either a build script or config file.
According to dynamic library paths I can add search paths using rustc-link-search, but "Paths outside of the target
directory are removed. It is the responsibility of the user running Cargo to properly set the environment if additional libraries on the system are needed in the search path."
Does this mean that I would need to append the DLL paths to my "PATH" variable? If so, is there a recommended way of doing so?
Thanks.