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
471 changes: 470 additions & 1 deletion Cargo-minimal.lock

Large diffs are not rendered by default.

477 changes: 476 additions & 1 deletion Cargo-recent.lock

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions bitreq/.github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: lint

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Set Toolchain
# https://github.com/dtolnay/rust-toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run rustfmt
# rustfmt defaults to edition 2015 it seems.
run: rustfmt --check --edition=2018 src/lib.rs
- name: Run cargo doc
run: cargo doc --features "punycode proxy https"
- name: Run clippy
run: |
cargo clippy --all-targets --features "punycode proxy https-rustls" -- --no-deps -D warnings
cargo clippy --all-targets --features "punycode proxy https-rustls-probe" -- --no-deps -D warnings
24 changes: 24 additions & 0 deletions bitreq/.github/workflows/msrv.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: msrv

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: "47 5 * * 6"

env:
CARGO_TERM_COLOR: always

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@1.63
- name: Running test script
run: |
cargo test
63 changes: 63 additions & 0 deletions bitreq/.github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: unit-tests

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
test-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Set Toolchain
# https://github.com/dtolnay/rust-toolchain
uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build
- name: Test
run: |
cargo test
cargo test --features punycode
cargo test --features proxy
cargo test --features urlencoding
cargo test --features https
test-windows:
runs-on: windows-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Set Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build
- name: Test
run: |
cargo test
cargo test --features punycode
cargo test --features proxy
cargo test --features urlencoding
cargo test --features https
cargo test --features "punycode proxy urlencoding https"
test-macos:
runs-on: macos-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Set Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Build
run: cargo build
- name: Test
run: |
cargo test
cargo test --features punycode
cargo test --features proxy
cargo test --features urlencoding
cargo test --features https
cargo test --features "punycode proxy urlencoding https"
5 changes: 5 additions & 0 deletions bitreq/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@

/target/
**/*.rs.bk
Cargo.lock
.claude
Loading