Hi,
I'm totally new to rust but have a piece of code that I need to get working. It uses clap to parse the command line.
I have tries to install clap and these are the results:
1 - cargo install cargo-edit
Installed package cargo-edit v0.7.0
(executables cargo-add
, cargo-rm
, cargo-upgrade
)
2 - cargo add clap
Command failed due to unhandled error: Unable to find Cargo.toml
3 - my .cargo directory looks like:
.
..
.crates.toml
.crates2.json
.package-cache
bin
env
registry
I have search the web extensively and have not found a single mention of this issue and, being a novice, I have no idea what to do to fix it.
Help would be greatly appreciated.