【问题标题】:Using the nightly version of a crate?使用每晚版本的箱子?
【发布时间】:2019-06-17 19:49:39
【问题描述】:

如何使用每晚版本的 crate(来自 crates.io)?抱歉,我应该知道,但我在文档中的任何地方都找不到。我假设我在Cargo.toml 中放了一些东西。

【问题讨论】:

    标签: rust rust-cargo


    【解决方案1】:

    Rust 中的“Nightly”指的是编译器和语言的开发版本。没有“夜间版本”的箱子这种东西。

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

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

    另请参阅 the full syntaxother related questions

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-09-01
      • 2014-12-26
      • 2019-08-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多