Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI Improvements #113

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 40 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Run tests
run: cargo test --verbose

lint:
lints:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -37,3 +37,42 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: pre-commit/action@v3.0.0

doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
run: rustup toolchain install nightly
- name: Doc (stable)
run: cargo doc --all-features
- name: Doc (nightly)
run: RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features

check-external-types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
- name: Setup
run: cargo install cargo-check-external-types --locked
- name: Check Ext Types (wtransport)
working-directory: wtransport/
run: cargo check-external-types --all-features
- name: Check Ext Types (wtransport-proto)
working-directory: wtransport-proto/
run: cargo check-external-types --all-features

unused-deps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
- name: Check Unused Deps
uses: aig787/cargo-udeps-action@v1
with:
args: "--all-targets"
2 changes: 1 addition & 1 deletion .github/workflows/msrv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Setup
run: cargo install cargo-msrv
run: cargo install cargo-msrv --locked
- name: Msrv Check WTransport
run: cargo msrv --path wtransport --log-level trace verify
- name: Msrv Check WTransport-Proto
Expand Down
5 changes: 5 additions & 0 deletions wtransport-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ async = []
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[package.metadata.cargo_check_external_types]
allowed_external_types = [
"url::parser::ParseError",
]
19 changes: 19 additions & 0 deletions wtransport/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,22 @@ self-signed = ["dep:rcgen", "dep:time"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[package.metadata.cargo_check_external_types]
allowed_external_types = [
"bytes::bytes::Bytes",
"quinn",
"quinn::recv_stream::ReadError",
"quinn::recv_stream::RecvStream",
"quinn::send_stream::SendStream",
"quinn::send_stream::WriteError",
"quinn_proto::config::ClientConfig",
"quinn_proto::config::ServerConfig",
"quinn_proto::connection::ConnectionError",
"rustls",
"rustls::client::client_conn::ClientConfig",
"rustls::server::server_conn::ServerConfig",
"tokio::io::async_read::AsyncRead",
"tokio::io::async_write::AsyncWrite",
"wtransport_proto::*",
]
Loading