diff options
| author | Akshay Chiwhane <achiwhane@gmail.com> | 2015-06-05 09:20:11 -0400 |
|---|---|---|
| committer | Akshay Chiwhane <achiwhane@gmail.com> | 2015-06-05 09:20:11 -0400 |
| commit | f9bfebb79087e6aa37037561aa7b1748d24f53c9 (patch) | |
| tree | 642978282b440bcba134157074959eac77b43f0b | |
| parent | ef72938a8b9171abc5c4b463d3e8345dc0e603a6 (diff) | |
| download | rust-f9bfebb79087e6aa37037561aa7b1748d24f53c9.tar.gz rust-f9bfebb79087e6aa37037561aa7b1748d24f53c9.zip | |
Clarified naming convention for Cargo
Added a sentence that tells the user that using main.rs and/or lib.rs is required for Cargo.
| -rw-r--r-- | src/doc/trpl/hello-cargo.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doc/trpl/hello-cargo.md b/src/doc/trpl/hello-cargo.md index cc8747d1fa7..ee9c84a53b3 100644 --- a/src/doc/trpl/hello-cargo.md +++ b/src/doc/trpl/hello-cargo.md @@ -33,7 +33,8 @@ $ mv main.rs src/main.rs ``` Note that since we're creating an executable, we used `main.rs`. If we -want to make a library instead, we should use `lib.rs`. +want to make a library instead, we should use `lib.rs`. This convention is required +for Cargo to successfully compile our projects. Custom file locations for the entry point can be specified with a [`[[lib]]` or `[[bin]]`][crates-custom] key in the TOML file described below. |
