什么是``npm install ../my-another-package''在Rust的Cargo?

时间:2015-03-19 13:37:11

标签: rust rust-cargo

在我的Cargo.toml中,我将[dependencies]定义为:

[dependencies]
my-another-package = "0.0.1"

但我不想将my_another_package放在GitHub上,因为它是专有的。我想从我的本地磁盘安装它。使用NPM,我会做npm install ../my-another-package之类的事情。

1 个答案:

答案 0 :(得分:3)

你想要货物称之为"path dependency"

[dependencies.my-another-package]
path = "path/to/my-another-package"