Use new Cargo features to avoid implicit features for optional dependencies (#1239)

* Fix changelog entry for MSRV change in axum-extra 0.3.5

* Bump MSRV to 1.60 for axum, axum-extra, axum-macros

* Use new Cargo features to avoid implicit features for optional dependencies
This commit is contained in:
Jonas Platte
2022-08-09 18:43:02 +02:00
committed by GitHub
parent d9ef24c5ff
commit 7cbb7cf135
13 changed files with 56 additions and 43 deletions
+7 -7
View File
@@ -4,7 +4,7 @@ version = "0.5.10"
categories = ["asynchronous", "network-programming", "web-programming::http-server"]
description = "Web framework that focuses on ergonomics and modularity"
edition = "2021"
rust-version = "1.56"
rust-version = "1.60"
homepage = "https://github.com/tokio-rs/axum"
keywords = ["http", "web", "framework"]
license = "MIT"
@@ -13,17 +13,17 @@ repository = "https://github.com/tokio-rs/axum"
[features]
default = ["form", "http1", "json", "matched-path", "original-uri", "query", "tower-log"]
form = ["serde_urlencoded"]
form = ["dep:serde_urlencoded"]
http1 = ["hyper/http1"]
http2 = ["hyper/http2"]
json = ["serde_json"]
macros = ["axum-macros"]
json = ["dep:serde_json"]
macros = ["dep:axum-macros"]
matched-path = []
multipart = ["multer"]
multipart = ["dep:multer"]
original-uri = []
query = ["serde_urlencoded"]
query = ["dep:serde_urlencoded"]
tower-log = ["tower/log"]
ws = ["tokio-tungstenite", "sha-1", "base64"]
ws = ["dep:tokio-tungstenite", "dep:sha-1", "dep:base64"]
# Required for intra-doc links to resolve correctly
__private_docs = ["tower/full", "tower-http/full"]