Can I install a library using Cargo without a Cargo.toml?
问题 I am going through Rust's getting started and I need to get the rand crate on my system. I'm not doing the Cargo packaging stuff (e.g. creating Cargo.toml ) because I was interested in the language, not packaging. Can I install the rand library on my system without creating a Cargo.toml using the cargo command? $ cargo install rand Updating registry `https://github.com/rust-lang/crates.io-index` specified package has no binaries 回答1: Practical answer No. Use Cargo. It's extremely easy to use