Rust: How to Quickly Add Dependencies From crates.io
Rating: 6
You can quickly copy a dependency declaration with the version from crates.io
:

This copies the following, which can then be pasted in Cargo.toml
:
rand = "0.8.5"
Related Facts
- 7 Rust: from_fn [#210] Sep 15, 2022
- 6 Rust: You Can Change the Path of Files Loaded by mod [#131] Jun 23, 2022
- 6 Rust: Bring a Trait Into Scope Without Bringing Its Name Into Scope [#139] Jul 5, 2022
- 6 Rust: You Can Simulate Defer With the Scopeguard Crate [#157] Jul 21, 2022
- 6 Rust: You Can Conditionally Enable Attributes [#162] Jul 26, 2022
8 more...
- 6 Rust: identity Function [#196] Aug 31, 2022
- 6 Rust: Cargo Has Short Versions of Commands [#216] Oct 2, 2022
- 5 Rust: Raw String Literals [#185] Aug 18, 2022
- 4 Rust: Struct Destructuring to Extract Values From Tuple Structs [#114] May 31, 2022
- 4 Rust: False < True [#130] Jun 23, 2022
- 4 Rust: Underscore Does Not Bind Values [#181] Aug 14, 2022
- 3 Rust: ptr_eq [#147] Jul 11, 2022
- 1 Rust: Arrays Do Not Implement `fmt::Display` [#25] Nov 26, 2021