Skip to content

Commit

Permalink
chore(lib): fix unexpected cfg warning (#3660)
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed May 8, 2024
1 parent c62ea80 commit 56ef0cc
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- features
- ffi
- ffi-header
- unexpected-cfgs
- doc
- check-external-types
- udeps
Expand Down Expand Up @@ -220,6 +221,22 @@ jobs:
- name: Ensure that hyper.h is up to date
run: ./capi/gen_header.sh --verify

unexpected-cfgs:
runs-on: ubuntu-latest
needs: [style]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
- uses: Swatinem/rust-cache@v2
- run: cargo check --all-features
env:
RUSTFLAGS: >-
-D unexpected_cfgs
--cfg hyper_internal_check_unexpected_cfgs
--cfg hyper_unstable_tracing
--cfg hyper_unstable_ffi
--check-cfg=cfg(hyper_internal_check_unexpected_cfgs,hyper_unstable_tracing,hyper_unstable_ffi)
doc:
name: Build docs
needs: [style, test]
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
#![cfg_attr(not(hyper_internal_check_unexpected_cfgs), allow(unexpected_cfgs))]
#![cfg_attr(test, deny(rust_2018_idioms))]
#![cfg_attr(all(test, feature = "full"), deny(unreachable_pub))]
#![cfg_attr(all(test, feature = "full"), deny(warnings))]
Expand Down

1 comment on commit 56ef0cc

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Performance Alert ⚠️

Possible performance regression was detected for benchmark 'end_to_end'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold 2.

Benchmark suite Current: 56ef0cc Previous: c62ea80 Ratio
http2_parallel_x10_req_10kb_100_chunks_adaptive_window 16816505 ns/iter (± 17681822) 7776711 ns/iter (± 107787) 2.16

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.