Skip to content

Commit 12dde46

Browse files
authored
Merge pull request #116 from 06chaynes/feat/ureq
feat: ureq
2 parents dcf29b1 + b7ea9bd commit 12dde46

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+8853
-1876
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
cargo llvm-cov --no-report --no-default-features --package http-cache --features manager-cacache,cacache-smol,with-http-types,manager-moka,streaming-smol
2828
cargo llvm-cov --no-report --no-default-features --package http-cache --features manager-cacache,cacache-tokio,with-http-types,manager-moka,streaming-tokio
2929
cargo llvm-cov --no-report --package http-cache-surf --all-features
30+
cargo llvm-cov --no-report --package http-cache-ureq --no-default-features --features manager-cacache
31+
cargo llvm-cov --no-report --package http-cache-ureq --all-features
3032
cargo llvm-cov --no-report --package http-cache-reqwest --all-features
3133
cargo llvm-cov --no-report --package http-cache-tower --all-features
3234
cargo llvm-cov --no-report --package http-cache-quickcache --all-features
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: http-cache-ureq
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
concurrency:
13+
group: ${{ github.ref }}-http-cache-ureq
14+
cancel-in-progress: true
15+
16+
defaults:
17+
run:
18+
working-directory: ./http-cache-ureq
19+
20+
jobs:
21+
fmt:
22+
name: Check formatting
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
- uses: dtolnay/rust-toolchain@stable
27+
with:
28+
components: "rustfmt"
29+
- run: cargo fmt -- --check
30+
31+
test:
32+
name: Test stable on ${{ matrix.os }}
33+
needs: [fmt]
34+
strategy:
35+
matrix:
36+
os:
37+
- ubuntu-latest
38+
- windows-latest
39+
- macos-latest
40+
runs-on: ${{ matrix.os }}
41+
steps:
42+
- uses: actions/checkout@v4
43+
- uses: dtolnay/rust-toolchain@stable
44+
- run: |
45+
cargo test --all-targets --no-default-features --features manager-cacache
46+
cargo test --all-targets --all-features
47+
48+
clippy:
49+
name: Check clippy
50+
needs: [fmt, test]
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
- uses: dtolnay/rust-toolchain@stable
55+
with:
56+
components: "clippy"
57+
- run: |
58+
cargo clippy --lib --tests --all-targets --no-default-features --features manager-cacache -- -D warnings
59+
cargo clippy --lib --tests --all-targets --all-features -- -D warnings
60+
61+
docs:
62+
name: Build docs
63+
needs: [fmt, test]
64+
runs-on: ubuntu-latest
65+
steps:
66+
- uses: actions/checkout@v4
67+
- uses: dtolnay/rust-toolchain@nightly
68+
env:
69+
RUSTFLAGS: --cfg docsrs
70+
RUSTDOCFLAGS: --cfg docsrs -Dwarnings
71+
- run: |
72+
cargo doc --no-deps --document-private-items
73+
cargo test --doc --all-features

.github/workflows/http-cache.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ jobs:
4444
- run: |
4545
cargo test --all-targets --no-default-features --features manager-cacache,cacache-smol,with-http-types,manager-moka,streaming-smol
4646
cargo test --all-targets --no-default-features --features manager-cacache,cacache-tokio,with-http-types,manager-moka,streaming-tokio
47+
cargo test --all-targets --no-default-features --features manager-cacache,cacache-smol,with-http-types,manager-moka,streaming-smol,rate-limiting
48+
cargo test --all-targets --no-default-features --features manager-cacache,cacache-tokio,with-http-types,manager-moka,streaming-tokio,rate-limiting
4749
4850
clippy:
4951
name: Check clippy
@@ -57,6 +59,8 @@ jobs:
5759
- run: |
5860
cargo clippy --lib --tests --all-targets --no-default-features --features manager-cacache,cacache-smol,with-http-types,manager-moka,streaming-smol -- -D warnings
5961
cargo clippy --lib --tests --all-targets --no-default-features --features manager-cacache,cacache-tokio,with-http-types,manager-moka,streaming-tokio -- -D warnings
62+
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
63+
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
6064
6165
docs:
6266
name: Build docs
@@ -72,3 +76,5 @@ jobs:
7276
cargo doc --no-deps --document-private-items
7377
cargo test --doc --no-default-features --features manager-cacache,cacache-smol,with-http-types,manager-moka,streaming-smol
7478
cargo test --doc --no-default-features --features manager-cacache,cacache-tokio,with-http-types,manager-moka,streaming-tokio
79+
cargo test --doc --no-default-features --features manager-cacache,cacache-smol,with-http-types,manager-moka,streaming-smol,rate-limiting
80+
cargo test --doc --no-default-features --features manager-cacache,cacache-tokio,with-http-types,manager-moka,streaming-tokio,rate-limiting

.github/workflows/msrv.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- http-cache
2424
- http-cache-reqwest
2525
- http-cache-surf
26+
- http-cache-ureq
2627
- http-cache-tower
2728
- http-cache-quickcache
2829
steps:

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ members = [
55
"http-cache-reqwest",
66
"http-cache-surf",
77
"http-cache-quickcache",
8-
"http-cache-tower"
8+
"http-cache-tower",
9+
"http-cache-ureq"
910
]

docs/src/SUMMARY.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
- [Introduction](./introduction.md)
44
- [Cache Modes](./cache-modes.md)
5+
- [Rate Limiting](./rate-limiting.md)
56
- [Development](./development/development.md)
67
- [Supporting a Backend Cache Manager](./development/supporting-a-backend-cache-manager.md)
78
- [Supporting an HTTP Client](./development/supporting-an-http-client.md)
89
- [Client Implementations](./clients/clients.md)
910
- [reqwest](./clients/reqwest.md)
1011
- [surf](./clients/surf.md)
12+
- [ureq](./clients/ureq.md)
1113
- [tower](./clients/tower.md)
1214
- [Backend Cache Manager Implementations](./managers/managers.md)
1315
- [cacache](./managers/cacache.md)

0 commit comments

Comments
 (0)