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:
Jonas Platte 2022-07-28 19:14:31 +02:00 committed by GitHub
parent 141198ce19
commit f0f60681ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 27 deletions

View file

@ -2,7 +2,7 @@ name: CI
env:
CARGO_TERM_COLOR: always
MSRV: 1.56.0
MSRV: 1.56
on:
push:
@ -113,6 +113,12 @@ jobs:
command: update
args: -Z minimal-versions
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
uses: actions-rs/cargo@v1
with:
@ -121,7 +127,6 @@ jobs:
-p axum
-p axum-extra
-p axum-core
-p internal-minimal-versions
--all-features
--all-targets
--locked
@ -135,7 +140,6 @@ jobs:
command: test
args: >
-p axum-macros
-p internal-minimal-versions
--doc
--all-features
--locked

View file

@ -4,9 +4,5 @@ members = [
"axum-core",
"axum-extra",
"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"

View file

@ -25,6 +25,9 @@ query = ["serde_urlencoded"]
tower-log = ["tower/log"]
ws = ["tokio-tungstenite", "sha-1", "base64"]
# Required for intra-doc links to resolve correctly
__private_docs = ["tower/full", "tower-http/full"]
[dependencies]
async-trait = "0.1.43"
axum-core = { path = "../axum-core", version = "0.2.6" }
@ -43,7 +46,7 @@ pin-project-lite = "0.2.7"
serde = "1.0"
sync_wrapper = "0.1.1"
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-layer = "0.3"
tower-service = "0.3"
@ -56,7 +59,7 @@ multer = { version = "2.0.0", optional = true }
serde_json = { version = "1.0", features = ["raw_value"], optional = true }
serde_urlencoded = { version = "0.7", 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]
anyhow = "1.0"

View file

@ -1,3 +1,4 @@
[workspace]
members = ["*"]
exclude = ["target"]
resolver = "2"

View file

@ -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"

View file

@ -1 +0,0 @@
// intentionally left empty