home ~ projects ~ socials

Rust Fundamentals: Create A New App

#+begin_note

I'm seeing this error after runing the below:

That's on the list to investigate to see if that's because I ran the commands from emacs instead of the command line directly, or if it's because I set carg-watch to --dev, or something else

#+end_note

This is what I do to make a new rust app. (All of this is run in a new directory that has the name I want to use for the app)

cargo init
  cargo install cargo-edit
  cargo add assert_cmd --dev
  cargo add cargo-watch --dev
  mkdir tests

Tests are run with:

cargo watch -c -x test

#+NOTES

- I'm getting the error: "ignoring invalid dependency cargo-watch which is missing a lib target" when setup with the above. I tried installing cargo-watch without the `--dev` flag, but that didn't help

-- end of line --