New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why mention a modified toml file #2

Closed
tshepang opened this Issue May 21, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@tshepang

tshepang commented May 21, 2017

In README, we have this line:

Run cargo doc --open after modified the toml file.

I don't understand why the toml file is mentioned, so maybe it needs some explanation.

@biluohc

This comment has been minimized.

Show comment
Hide comment
@biluohc

biluohc May 21, 2017

Owner

I give you a example.

cargo new --bin name

 Created binary (application) `name` project

tree name/

name/
├── Cargo.toml
└── src
└── main.rs

cat name/Cargo.toml

[package]
name = "name"
version = "0.1.0"
[dependencies]

echo "app = \"0.5.6\"" >>name/Cargo.toml

Add dependency to the toml file: app = "0.5.6"

You could use other editor to modify the file

cat name/Cargo.toml

[package]
name = "name"
version = "0.1.0"
[dependencies]
app = "0.5.6"

cd name/

cargo doc --open

cargo will use your default brower open the Document

Owner

biluohc commented May 21, 2017

I give you a example.

cargo new --bin name

 Created binary (application) `name` project

tree name/

name/
├── Cargo.toml
└── src
└── main.rs

cat name/Cargo.toml

[package]
name = "name"
version = "0.1.0"
[dependencies]

echo "app = \"0.5.6\"" >>name/Cargo.toml

Add dependency to the toml file: app = "0.5.6"

You could use other editor to modify the file

cat name/Cargo.toml

[package]
name = "name"
version = "0.1.0"
[dependencies]
app = "0.5.6"

cd name/

cargo doc --open

cargo will use your default brower open the Document

@biluohc biluohc closed this May 30, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment