book icon indicating copy to clipboard operation
book copied to clipboard

Use `cargo add` when using external crates

Open carols10cents opened this issue 1 year ago • 2 comments
trafficstars

Maybe giving a copy-pasteable cargo add rand@version command would prevent issues we've seen in the past when a newer version of rand is available with breaking changes, and people install the latest version instead of the version in the book?

Anyway, cargo add is nice and we should show it off now that it's stable!

carols10cents avatar Apr 30 '24 18:04 carols10cents

Relevant: #3331.

chriskrycho avatar Apr 30 '24 22:04 chriskrycho

AHA nice! I thought I remembered something but thought it was an issue. I should have searched PRs too. Thank you!

carols10cents avatar May 01 '24 13:05 carols10cents