rust-cookbook icon indicating copy to clipboard operation
rust-cookbook copied to clipboard

[wishlist] Include a reference to `cargo.toml`

Open kaboomdigital opened this issue 5 years ago • 3 comments

Including a reference to the books cargo.toml file would be helpful with trying out the examples. Link to cargo.toml

For example: somewhere in About/How to use the recipes

This dependency took some Googling to find out. I just never realized I could find the cargo file in the repo. 🤦‍♂️

tokio = { version = "0.2", features = ["full"] }

kaboomdigital avatar Jun 09 '20 15:06 kaboomdigital

Could you provide a rough draft of what kind of information you'd like to include?

KappaDistributive avatar Jun 14 '20 08:06 KappaDistributive

I think we can embed the Cargo.toml file within about.md in the How to use recipes section by using {{#link ../../Cargo.toml}} but we should also add a note about features in the recipes that require it (I know the new async recipes need features = ["full"] added to the recipe description).

AndyGauge avatar Jun 14 '20 16:06 AndyGauge