Files
axum/src/docs/required_dependencies.md
T
David Pedersen 857ecd7314 Break root module docs into separate files (#432)
For 0.3 I'm thinking about some changes I wanna make to the docs. I
don't like how information is currently spread over so many places.
Still thinking about how I wanna re-organize it.

However I do think it makes sense to break the root module docs into
separate files that get included with `#![doc = include_str!("file")]`.
Makes working on a single section easier and more focused. It looks the
same for the user reading the docs.

This means axum's MSRV is now 1.54 but since thats two releases ago I'm
fine with that.
2021-10-31 20:37:56 +01:00

671 B

Required dependencies

To use axum there are a few dependencies you have pull in as well:

[dependencies]
axum = "<latest-version>"
hyper = { version = "<latest-version>", features = ["full"] }
tokio = { version = "<latest-version>", features = ["full"] }
tower = "<latest-version>"

The "full" feature for hyper and tokio isn't strictly necessary but its the easiest way to get started.

Note that [hyper::Server] is re-exported by axum so if thats all you need then you don't have to explicitly depend on hyper.

Tower isn't strictly necessary either but helpful for testing. See the testing example in the repo to learn more about testing axum apps.