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
cargo-edit v0.7.0 (executables
2 - cargo add clap
Command failed due to unhandled error: Unable to find Cargo.toml
3 - my .cargo directory looks like:
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.