使用板条箱的夜间版本?

Using the nightly version of a crate?

如何使用箱子的夜间版本(来自 crates.io)?抱歉,我应该知道,但我无法在文档中的任何地方找到它。我假设我在 Cargo.toml.

中放了一些东西
Rust中的

"Nightly"指的是编译器和语言的开发版本。没有"nightly version"箱子这样的东西。

但是,您可以通过使用代码存储库作为源来使用 crate 的开发版本,例如,在您的 Cargo.toml:

[dependencies]
foobar = { git = "https://github.com/user/foobar", branch = "dev_branch" }

另见 the full syntax and other