rust-lang-nursery / rust-cookbook

https://rust-lang-nursery.github.io/rust-cookbook
Creative Commons Zero v1.0 Universal
2.25k stars 284 forks source link

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

Open kaboomdigital opened 4 years ago

kaboomdigital commented 4 years ago

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"] }

KappaDistributive commented 4 years ago

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

AndyGauge commented 4 years ago

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).