在我的Cargo.toml中,我将[dependencies]
定义为:
[dependencies]
my-another-package = "0.0.1"
但我不想将my_another_package
放在GitHub上,因为它是专有的。我想从我的本地磁盘安装它。使用NPM,我会做npm install ../my-another-package
之类的事情。
答案 0 :(得分:3)
你想要货物称之为"path dependency":
[dependencies.my-another-package]
path = "path/to/my-another-package"