mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Fix intra-doc links on docs.rs (#1205)
* Use version 2 of Cargo's feature resolver * Increase minimum version of tungstenite Tungstenite 0.17.1 has a higher MSRV, and there should be no reason to use it over 0.17.2. * Clean up and fix MSRV CI job * Fix some intra-doc links not resolving correctly on docs.rs * Bump minimum version of tower … to avoid dependencies with a broken minimum-versions chain.
This commit is contained in:
committed by
David Pedersen
parent
7d740866e6
commit
f424c9d512
@@ -2,7 +2,7 @@ name: CI
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
MSRV: 1.56.0
|
MSRV: 1.56
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -113,6 +113,12 @@ jobs:
|
|||||||
command: update
|
command: update
|
||||||
args: -Z minimal-versions
|
args: -Z minimal-versions
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
|
- name: Fix up Cargo.lock
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
with:
|
||||||
|
command: update
|
||||||
|
args: -p crc32fast --precise 1.1.1
|
||||||
|
toolchain: nightly
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
@@ -121,7 +127,6 @@ jobs:
|
|||||||
-p axum
|
-p axum
|
||||||
-p axum-extra
|
-p axum-extra
|
||||||
-p axum-core
|
-p axum-core
|
||||||
-p internal-minimal-versions
|
|
||||||
--all-features
|
--all-features
|
||||||
--all-targets
|
--all-targets
|
||||||
--locked
|
--locked
|
||||||
@@ -135,7 +140,6 @@ jobs:
|
|||||||
command: test
|
command: test
|
||||||
args: >
|
args: >
|
||||||
-p axum-macros
|
-p axum-macros
|
||||||
-p internal-minimal-versions
|
|
||||||
--doc
|
--doc
|
||||||
--all-features
|
--all-features
|
||||||
--locked
|
--locked
|
||||||
|
|||||||
+1
-5
@@ -4,9 +4,5 @@ members = [
|
|||||||
"axum-core",
|
"axum-core",
|
||||||
"axum-extra",
|
"axum-extra",
|
||||||
"axum-macros",
|
"axum-macros",
|
||||||
|
|
||||||
# internal crate used to bump the minimum versions we
|
|
||||||
# get for some dependencies which otherwise wouldn't build
|
|
||||||
# with `cargo +nightly update -Z minimal-versions`
|
|
||||||
"internal-minimal-versions",
|
|
||||||
]
|
]
|
||||||
|
resolver = "2"
|
||||||
|
|||||||
+5
-2
@@ -24,6 +24,9 @@ query = ["serde_urlencoded"]
|
|||||||
tower-log = ["tower/log"]
|
tower-log = ["tower/log"]
|
||||||
ws = ["tokio-tungstenite", "sha-1", "base64"]
|
ws = ["tokio-tungstenite", "sha-1", "base64"]
|
||||||
|
|
||||||
|
# Required for intra-doc links to resolve correctly
|
||||||
|
__private_docs = ["tower/full", "tower-http/full"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
async-trait = "0.1.43"
|
async-trait = "0.1.43"
|
||||||
axum-core = { path = "../axum-core", version = "0.2.8" }
|
axum-core = { path = "../axum-core", version = "0.2.8" }
|
||||||
@@ -42,7 +45,7 @@ pin-project-lite = "0.2.7"
|
|||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
sync_wrapper = "0.1.1"
|
sync_wrapper = "0.1.1"
|
||||||
tokio = { version = "1", features = ["time"] }
|
tokio = { version = "1", features = ["time"] }
|
||||||
tower = { version = "0.4.11", default-features = false, features = ["util", "make"] }
|
tower = { version = "0.4.13", default-features = false, features = ["util", "make"] }
|
||||||
tower-http = { version = "0.3.0", features = ["util", "map-response-body"] }
|
tower-http = { version = "0.3.0", features = ["util", "map-response-body"] }
|
||||||
tower-layer = "0.3"
|
tower-layer = "0.3"
|
||||||
tower-service = "0.3"
|
tower-service = "0.3"
|
||||||
@@ -55,7 +58,7 @@ multer = { version = "2.0.0", optional = true }
|
|||||||
serde_json = { version = "1.0", features = ["raw_value"], optional = true }
|
serde_json = { version = "1.0", features = ["raw_value"], optional = true }
|
||||||
serde_urlencoded = { version = "0.7", optional = true }
|
serde_urlencoded = { version = "0.7", optional = true }
|
||||||
sha-1 = { version = "0.10", optional = true }
|
sha-1 = { version = "0.10", optional = true }
|
||||||
tokio-tungstenite = { version = "0.17", optional = true }
|
tokio-tungstenite = { version = "0.17.2", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = ["*"]
|
members = ["*"]
|
||||||
exclude = ["target"]
|
exclude = ["target"]
|
||||||
|
resolver = "2"
|
||||||
|
|||||||
@@ -1,16 +0,0 @@
|
|||||||
[package]
|
|
||||||
name = "internal-minimal-versions"
|
|
||||||
version = "0.1.0"
|
|
||||||
edition = "2021"
|
|
||||||
publish = false
|
|
||||||
|
|
||||||
# these dependencies don't build if installed with `cargo +nightly update -Z
|
|
||||||
# minimal-versions` so we add them here to make sure we get a version that
|
|
||||||
# does build
|
|
||||||
#
|
|
||||||
# this only matters for axum's CI
|
|
||||||
[dependencies]
|
|
||||||
crc32fast = "1.3.2"
|
|
||||||
gcc = "0.3.55"
|
|
||||||
time = "0.3.9"
|
|
||||||
tungstenite = "0.17.2"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
// intentionally left empty
|
|
||||||
Reference in New Issue
Block a user