Add a --lib argument to cargo new

The defaults will be changing soon!
This commit is contained in:
Alex Crichton 2018-03-22 19:08:53 -07:00
parent d258ea4e2a
commit a8799c049f

View File

@ -62,7 +62,7 @@ the latter will install the `wasm-bindgen` CLI tool we'll be using later.
Next up let's make our project
```
$ cargo new js-hello-world
$ cargo new js-hello-world --lib
```
Now let's add a dependency on this project inside `Cargo.toml` as well as