Skip to content
Merged
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
2 changes: 2 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
cargo llvm-cov --no-report --no-default-features --package http-cache --features manager-cacache,cacache-smol,with-http-types,manager-moka,streaming-smol
cargo llvm-cov --no-report --no-default-features --package http-cache --features manager-cacache,cacache-tokio,with-http-types,manager-moka,streaming-tokio
cargo llvm-cov --no-report --package http-cache-surf --all-features
cargo llvm-cov --no-report --package http-cache-ureq --no-default-features --features manager-cacache
cargo llvm-cov --no-report --package http-cache-ureq --all-features
cargo llvm-cov --no-report --package http-cache-reqwest --all-features
cargo llvm-cov --no-report --package http-cache-tower --all-features
cargo llvm-cov --no-report --package http-cache-quickcache --all-features
Expand Down
73 changes: 73 additions & 0 deletions .github/workflows/http-cache-ureq.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: http-cache-ureq

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

concurrency:
group: ${{ github.ref }}-http-cache-ureq
cancel-in-progress: true

defaults:
run:
working-directory: ./http-cache-ureq

jobs:
fmt:
name: Check formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: "rustfmt"
- run: cargo fmt -- --check

test:
name: Test stable on ${{ matrix.os }}
needs: [fmt]
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: |
cargo test --all-targets --no-default-features --features manager-cacache
cargo test --all-targets --all-features

clippy:
name: Check clippy
needs: [fmt, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: "clippy"
- run: |
cargo clippy --lib --tests --all-targets --no-default-features --features manager-cacache -- -D warnings
cargo clippy --lib --tests --all-targets --all-features -- -D warnings

docs:
name: Build docs
needs: [fmt, test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
env:
RUSTFLAGS: --cfg docsrs
RUSTDOCFLAGS: --cfg docsrs -Dwarnings
- run: |
cargo doc --no-deps --document-private-items
cargo test --doc --all-features
6 changes: 6 additions & 0 deletions .github/workflows/http-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
- run: |
cargo test --all-targets --no-default-features --features manager-cacache,cacache-smol,with-http-types,manager-moka,streaming-smol
cargo test --all-targets --no-default-features --features manager-cacache,cacache-tokio,with-http-types,manager-moka,streaming-tokio
cargo test --all-targets --no-default-features --features manager-cacache,cacache-smol,with-http-types,manager-moka,streaming-smol,rate-limiting
cargo test --all-targets --no-default-features --features manager-cacache,cacache-tokio,with-http-types,manager-moka,streaming-tokio,rate-limiting

clippy:
name: Check clippy
Expand All @@ -57,6 +59,8 @@ jobs:
- run: |
cargo clippy --lib --tests --all-targets --no-default-features --features manager-cacache,cacache-smol,with-http-types,manager-moka,streaming-smol -- -D warnings
cargo clippy --lib --tests --all-targets --no-default-features --features manager-cacache,cacache-tokio,with-http-types,manager-moka,streaming-tokio -- -D warnings
cargo clippy --lib --tests --all-targets --no-default-features --features manager-cacache,cacache-smol,with-http-types,manager-moka,streaming-smol,rate-limiting -- -D warnings
cargo clippy --lib --tests --all-targets --no-default-features --features manager-cacache,cacache-tokio,with-http-types,manager-moka,streaming-tokio,rate-limiting -- -D warnings

docs:
name: Build docs
Expand All @@ -72,3 +76,5 @@ jobs:
cargo doc --no-deps --document-private-items
cargo test --doc --no-default-features --features manager-cacache,cacache-smol,with-http-types,manager-moka,streaming-smol
cargo test --doc --no-default-features --features manager-cacache,cacache-tokio,with-http-types,manager-moka,streaming-tokio
cargo test --doc --no-default-features --features manager-cacache,cacache-smol,with-http-types,manager-moka,streaming-smol,rate-limiting
cargo test --doc --no-default-features --features manager-cacache,cacache-tokio,with-http-types,manager-moka,streaming-tokio,rate-limiting
1 change: 1 addition & 0 deletions .github/workflows/msrv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- http-cache
- http-cache-reqwest
- http-cache-surf
- http-cache-ureq
- http-cache-tower
- http-cache-quickcache
steps:
Expand Down
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ members = [
"http-cache-reqwest",
"http-cache-surf",
"http-cache-quickcache",
"http-cache-tower"
"http-cache-tower",
"http-cache-ureq"
]
2 changes: 2 additions & 0 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

- [Introduction](./introduction.md)
- [Cache Modes](./cache-modes.md)
- [Rate Limiting](./rate-limiting.md)
- [Development](./development/development.md)
- [Supporting a Backend Cache Manager](./development/supporting-a-backend-cache-manager.md)
- [Supporting an HTTP Client](./development/supporting-an-http-client.md)
- [Client Implementations](./clients/clients.md)
- [reqwest](./clients/reqwest.md)
- [surf](./clients/surf.md)
- [ureq](./clients/ureq.md)
- [tower](./clients/tower.md)
- [Backend Cache Manager Implementations](./managers/managers.md)
- [cacache](./managers/cacache.md)
Expand Down
Loading
Loading