我对某些SDK有本地依赖。我利用
extern crate local_sdk;
use local_sdk::foo;
在我的实现中使用local_sdk
。
我正在利用货物来建造。在构建时,日志会在某个阶段打印以下内容 -
编译local_sdk v0.1.0(file:/// project / project-core / sdk / rust)
即使我之前已编译过local_sdk
,也会发生这种情况。
如何防止重新编译local_sdk
?它消耗了一些重要的时间。
我Cargo.toml
的内容:
[package]
name = "service"
version = "0.1.0"
authors = ["Rajeev"]
[dependencies]
local_sdk = { path = "../../sdk/rust" }
local_sdk
包含以下Cargo.toml
:
[package]
name = "local_sdk"
version = "0.1.0"
authors = ["Rajeev"]
[dependencies]
hex = "0.3"
protobuf="2.0"
rand = "0.4.2"
zmq = { git = "https://github.com/erickt/rust-zmq", branch = "release/v0.8" }
uuid = { version = "0.5", features = ["v4"] }
log = "0.3"
libc = "0.2"
ctrlc = { version = "3.0", features = ["termination"] }
[dev-dependencies]
env_logger = "0.3"
[build-dependencies]
cc = "1.0"
glob = "0.2"
答案 0 :(得分:0)
假设您正在使用它,那就是an issue with RLS that was causing unnecessary rebuilds.
此问题已修复,要获取最新版本的RLS,请使用
$ rustup update