Skip to content

Commit 5fdef10

Browse files
authored
chore: remove doc_auto_cfg in volo, volo-http and volo-grpc (#635)
* chore: remove doc_auto_cfg in volo, volo-http and volo-grpc `doc_auto_cfg` has been removed in 1.92.0, ref: <rust-lang/rust#138907> * chore: add cfg `docsrs` in test commands of rustdoc * chore: bump versions of volo, volo-http, volo-grpc --------- Signed-off-by: Yu Li <liyu.yukiteru@bytedance.com>
1 parent d5352de commit 5fdef10

9 files changed

Lines changed: 19 additions & 20 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ jobs:
5757
toolchain: ${{matrix.rust}}
5858
- name: Docs check
5959
run: |
60-
cargo rustdoc -p volo --all-features -- --deny warnings
61-
cargo rustdoc -p volo-build --all-features -- --deny warnings
62-
cargo rustdoc -p volo-grpc --all-features -- --deny warnings
63-
cargo rustdoc -p volo-http --all-features -- --deny warnings
64-
cargo rustdoc -p volo-thrift --all-features -- --deny warnings
60+
cargo +nightly rustdoc -p volo --all-features --config 'build.rustdocflags=["--cfg", "docsrs"]' -- --deny warnings
61+
cargo +nightly rustdoc -p volo-build --all-features --config 'build.rustdocflags=["--cfg", "docsrs"]' -- --deny warnings
62+
cargo +nightly rustdoc -p volo-grpc --all-features --config 'build.rustdocflags=["--cfg", "docsrs"]' -- --deny warnings
63+
cargo +nightly rustdoc -p volo-http --all-features --config 'build.rustdocflags=["--cfg", "docsrs"]' -- --deny warnings
64+
cargo +nightly rustdoc -p volo-thrift --all-features --config 'build.rustdocflags=["--cfg", "docsrs"]' -- --deny warnings
6565
6666
test-linux:
6767
runs-on: [self-hosted, Linux, amd64]
@@ -182,4 +182,4 @@ jobs:
182182
with:
183183
files: lcov.info
184184
fail_ci_if_error: true
185-
verbose: true
185+
verbose: true

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/selftest.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ fmt_check() {
2222
}
2323

2424
docs_check() {
25-
echo_and_run cargo rustdoc -p volo --all-features -- --deny warnings
26-
echo_and_run cargo rustdoc -p volo-build --all-features -- --deny warnings
27-
echo_and_run cargo rustdoc -p volo-grpc --all-features -- --deny warnings
28-
echo_and_run cargo rustdoc -p volo-http --all-features -- --deny warnings
29-
echo_and_run cargo rustdoc -p volo-thrift --all-features -- --deny warnings
25+
echo_and_run cargo +nightly rustdoc -p volo --all-features --config 'build.rustdocflags=["--cfg", "docsrs"]' -- --deny warnings
26+
echo_and_run cargo +nightly rustdoc -p volo-build --all-features --config 'build.rustdocflags=["--cfg", "docsrs"]' -- --deny warnings
27+
echo_and_run cargo +nightly rustdoc -p volo-grpc --all-features --config 'build.rustdocflags=["--cfg", "docsrs"]' -- --deny warnings
28+
echo_and_run cargo +nightly rustdoc -p volo-http --all-features --config 'build.rustdocflags=["--cfg", "docsrs"]' -- --deny warnings
29+
echo_and_run cargo +nightly rustdoc -p volo-thrift --all-features --config 'build.rustdocflags=["--cfg", "docsrs"]' -- --deny warnings
3030
}
3131

3232
clippy_and_test() {

volo-grpc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "volo-grpc"
3-
version = "0.12.0"
3+
version = "0.12.1"
44
edition.workspace = true
55
homepage.workspace = true
66
repository.workspace = true

volo-grpc/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
)]
44
#![cfg_attr(not(doctest), doc = include_str!("../README.md"))]
55
#![cfg_attr(docsrs, feature(doc_cfg))]
6-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
76
#![allow(clippy::result_large_err)]
87

98
pub mod body;

volo-http/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "volo-http"
3-
version = "0.5.1"
3+
version = "0.5.2"
44
edition.workspace = true
55
homepage.workspace = true
66
repository.workspace = true

volo-http/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
html_logo_url = "https://github.com/cloudwego/volo/raw/main/.github/assets/logo.png?sanitize=true"
33
)]
44
#![cfg_attr(not(doctest), doc = include_str!("../README.md"))]
5-
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
5+
#![cfg_attr(docsrs, feature(doc_cfg))]
66
#![deny(missing_docs)]
77

88
pub mod body;

volo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "volo"
3-
version = "0.12.0"
3+
version = "0.12.1"
44
edition.workspace = true
55
homepage.workspace = true
66
repository.workspace = true

volo/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
html_logo_url = "https://github.com/cloudwego/volo/raw/main/.github/assets/logo.png?sanitize=true"
33
)]
44
#![cfg_attr(not(doctest), doc = include_str!("../README.md"))]
5-
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
5+
#![cfg_attr(docsrs, feature(doc_cfg))]
66

77
pub use motore::{Service, layer, layer::Layer, service};
88
pub use tokio::main;

0 commit comments

Comments
 (0)