Skip to content

Commit 1ee8008

Browse files
committed
Merge #392: Import minireq as bitreq
b0ac9d5 Import minireq as bitreq (Tobin C. Harding) Pull request description: A while back I forked `minreq` and re-named it to `minireq`. I emailed the original author and got his blessing. Since then the name has been taken on crates.io Import the crate here and rename it to `bitreq`. We grabbed the name already on crates.io ACKs for top commit: jamillambert: ACK b0ac9d5 Tree-SHA512: ed84f09e779c4262fa4579d201a872482b082d1f649dd45f5d000f5a81ab90b7d10195cc93c295ba1dba5d6d583f8cf9d43bb63c38951e1008ec7b6ebe6f7747
2 parents 96ff9c9 + b0ac9d5 commit 1ee8008

26 files changed

+4803
-8
lines changed

Cargo-minimal.lock

Lines changed: 470 additions & 1 deletion
Large diffs are not rendered by default.

Cargo-recent.lock

Lines changed: 476 additions & 1 deletion
Large diffs are not rendered by default.

bitreq/.github/workflows/lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: lint
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
lint:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Crate
17+
uses: actions/checkout@v3
18+
- name: Set Toolchain
19+
# https://github.com/dtolnay/rust-toolchain
20+
uses: dtolnay/rust-toolchain@stable
21+
- name: Run rustfmt
22+
# rustfmt defaults to edition 2015 it seems.
23+
run: rustfmt --check --edition=2018 src/lib.rs
24+
- name: Run cargo doc
25+
run: cargo doc --features "punycode proxy https"
26+
- name: Run clippy
27+
run: |
28+
cargo clippy --all-targets --features "punycode proxy https-rustls" -- --no-deps -D warnings
29+
cargo clippy --all-targets --features "punycode proxy https-rustls-probe" -- --no-deps -D warnings

bitreq/.github/workflows/msrv.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: msrv
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: "47 5 * * 6"
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
jobs:
15+
test:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout Crate
19+
uses: actions/checkout@v3
20+
- name: Checkout Toolchain
21+
uses: dtolnay/rust-toolchain@1.63
22+
- name: Running test script
23+
run: |
24+
cargo test
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: unit-tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
test-linux:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Crate
17+
uses: actions/checkout@v3
18+
- name: Set Toolchain
19+
# https://github.com/dtolnay/rust-toolchain
20+
uses: dtolnay/rust-toolchain@stable
21+
- name: Build
22+
run: cargo build
23+
- name: Test
24+
run: |
25+
cargo test
26+
cargo test --features punycode
27+
cargo test --features proxy
28+
cargo test --features urlencoding
29+
cargo test --features https
30+
test-windows:
31+
runs-on: windows-latest
32+
steps:
33+
- name: Checkout Crate
34+
uses: actions/checkout@v3
35+
- name: Set Toolchain
36+
uses: dtolnay/rust-toolchain@stable
37+
- name: Build
38+
run: cargo build
39+
- name: Test
40+
run: |
41+
cargo test
42+
cargo test --features punycode
43+
cargo test --features proxy
44+
cargo test --features urlencoding
45+
cargo test --features https
46+
cargo test --features "punycode proxy urlencoding https"
47+
test-macos:
48+
runs-on: macos-latest
49+
steps:
50+
- name: Checkout Crate
51+
uses: actions/checkout@v3
52+
- name: Set Toolchain
53+
uses: dtolnay/rust-toolchain@stable
54+
- name: Build
55+
run: cargo build
56+
- name: Test
57+
run: |
58+
cargo test
59+
cargo test --features punycode
60+
cargo test --features proxy
61+
cargo test --features urlencoding
62+
cargo test --features https
63+
cargo test --features "punycode proxy urlencoding https"

bitreq/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
/target/
3+
**/*.rs.bk
4+
Cargo.lock
5+
.claude

0 commit comments

Comments
 (0)