Make docs on required deps more clear

This commit is contained in:
David Pedersen 2021-08-04 15:01:44 +02:00
parent 7cf8dafdce
commit 96fac52519

View file

@ -626,17 +626,17 @@
//! //!
//! To use Axum there are a few dependencies you have pull in as well: //! To use Axum there are a few dependencies you have pull in as well:
//! //!
//! ```toml //! ```not_rust
//! [dependencies] //! [dependencies]
//! axum = "<latest-version>" //! axum = "<latest-version>"
//! //!
//! # "full" isn't strictly necessary for tokio and hyper but its the //! // "full" isn't strictly necessary for tokio and hyper but its the
//! # easiest way to get started. //! // easiest way to get started.
//! hyper = { version = "<latest-version>", features = ["full"] } //! hyper = { version = "<latest-version>", features = ["full"] }
//! tokio = { version = "<latest-version>", features = ["full"] } //! tokio = { version = "<latest-version>", features = ["full"] }
//! //!
//! # Not strictly necessary but helpful for testing. There is a //! // Not strictly necessary but helpful for testing. There is a
//! # testing example in the repo that shows how to test axum apps. //! // testing example in the repo that shows how to test axum apps.
//! tower = "<latest-version>" //! tower = "<latest-version>"
//! ``` //! ```
//! //!