1

How do I use the nightly version of a crate (from crates.io)? Sorry, I should know, but I cannot find this anywhere in the documentation. I assume that I put something in Cargo.toml.

Boiethios
  • 38,438
  • 19
  • 134
  • 183
Martin Ellison
  • 1,043
  • 1
  • 13
  • 25

1 Answers1

1

"Nightly" in Rust refers to the development version of the compiler and language. There is no such a thing as a "nightly version" of a crate.

However, you can use the development version of a crate by using the code repository as a source, for example, in your Cargo.toml:

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

See also the full syntax and other related questions.

u32i64
  • 2,384
  • 3
  • 22
  • 36
Boiethios
  • 38,438
  • 19
  • 134
  • 183