2

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.

1 Answer 1

2

"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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.