【发布时间】:2019-06-17 19:49:39
【问题描述】:
如何使用每晚版本的 crate(来自 crates.io)?抱歉,我应该知道,但我在文档中的任何地方都找不到。我假设我在Cargo.toml 中放了一些东西。
【问题讨论】:
标签: rust rust-cargo
如何使用每晚版本的 crate(来自 crates.io)?抱歉,我应该知道,但我在文档中的任何地方都找不到。我假设我在Cargo.toml 中放了一些东西。
【问题讨论】:
标签: rust rust-cargo
Rust 中的“Nightly”指的是编译器和语言的开发版本。没有“夜间版本”的箱子这种东西。
但是,您可以通过使用代码存储库作为源来使用 crate 的开发版本,例如,在您的 Cargo.toml 中:
[dependencies]
foobar = { git = "https://github.com/user/foobar", branch = "dev_branch" }
另请参阅 the full syntax 和 other related questions。
【讨论】: