When developing a library in node,
if you wish to develop against a library that only exists locally,
before you npm publish
,
you can use npm link /path/to/other/node_library
.
What is the equivalent of this for Rust? How do you create another a foo executable that links to bar library, without pushing bar library to a git remote first?
The official rust tutorial shows how to do this using raw rustc
,
how can this be done in Cargo.toml
?
(The cargo documentation shows you how to build a lib, but now how to link to one that doesn't have a remote repository.)