-
Notifications
You must be signed in to change notification settings - Fork 1
v0.3.0 - full http/1.1 GET and HEAD #6
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0760c86
v0.3.0 - full http/1.1 GET and HEAD
rapidclock 621c4ff
additions
rapidclock ce809f2
remaining impl + tests
rapidclock 43b5bd9
ci fixes
rapidclock e304f38
ci fixes
rapidclock 93edd03
ci fixes
rapidclock 1fb9498
ci fixes
rapidclock aea37c6
fixing inefficiencies
rapidclock 94fdf03
fixing comments
rapidclock 681405b
fixing clippy
rapidclock 9a3ddc3
fixing copilot comments
rapidclock 0df21ef
fixing copilot comments
rapidclock 9ac4364
fixing bugs
rapidclock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,155 @@ | ||
| name: Checker | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| types: | ||
| - opened | ||
| - reopened | ||
| - synchronize | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| compliance-docs: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Validate compliance matrix/index drift | ||
| run: python3 tools/check_compliance_docs.py | ||
|
|
||
| fmt: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Install stable | ||
| run: rustup toolchain install stable --profile minimal --component rustfmt | ||
|
|
||
| - name: Check formatting | ||
| run: cargo +stable fmt --all -- --check | ||
|
|
||
| clippy-http: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Install stable | ||
| run: rustup toolchain install stable --profile minimal --component clippy | ||
|
|
||
| - name: Lint HTTP-only build | ||
| run: cargo +stable clippy --workspace --all-targets --no-default-features --features http -- -D warnings | ||
|
|
||
| clippy-all-features: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Install OpenSSL headers | ||
| run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config | ||
|
|
||
| - name: Install stable | ||
| run: rustup toolchain install stable --profile minimal --component clippy | ||
|
|
||
| - name: Lint all features | ||
| run: cargo +stable clippy --workspace --all-targets --all-features -- -D warnings | ||
|
|
||
| test-http: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| toolchain: | ||
| - "1.71.0" | ||
| - stable | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Install Rust | ||
| run: rustup toolchain install ${{ matrix.toolchain }} --profile minimal | ||
|
|
||
| - name: Resolve HTTP-only dependency graph | ||
| run: | | ||
| rm -f Cargo.lock | ||
| cargo +${{ matrix.toolchain }} test --workspace --no-default-features --features http --no-run | ||
|
|
||
| - name: Test HTTP-only build with locked dependencies | ||
| run: cargo +${{ matrix.toolchain }} test --workspace --no-default-features --features http --locked | ||
|
|
||
| test-all-features: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| toolchain: | ||
| - "1.71.0" | ||
| - stable | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Install OpenSSL headers | ||
| run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config | ||
|
|
||
| - name: Install Rust | ||
| run: rustup toolchain install ${{ matrix.toolchain }} --profile minimal | ||
|
|
||
| - name: Resolve all-features dependency graph | ||
| run: | | ||
| rm -f Cargo.lock | ||
| cargo +${{ matrix.toolchain }} test --workspace --all-features --no-run | ||
|
|
||
| - name: Test all features with locked dependencies | ||
| run: cargo +${{ matrix.toolchain }} test --workspace --all-features --locked | ||
|
|
||
| coverage-http: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Install stable | ||
| run: rustup toolchain install stable --profile minimal | ||
|
|
||
| - name: Install cargo-llvm-cov | ||
| uses: taiki-e/install-action@cargo-llvm-cov | ||
|
|
||
| - name: Enforce HTTP-only 100% line coverage | ||
| run: | | ||
| cargo llvm-cov clean --workspace | ||
| cargo llvm-cov --workspace --no-default-features --features http \ | ||
| --lcov \ | ||
| --output-path /tmp/http_cov.info | ||
| python3 tools/check_line_coverage.py --lcov /tmp/http_cov.info --root . --require 95 | ||
|
|
||
| coverage-all-features: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Install OpenSSL headers | ||
| run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config | ||
|
|
||
| - name: Install stable | ||
| run: rustup toolchain install stable --profile minimal | ||
|
|
||
| - name: Install cargo-llvm-cov | ||
| uses: taiki-e/install-action@cargo-llvm-cov | ||
|
|
||
| - name: Enforce all-features 100% line coverage | ||
| run: | | ||
| cargo llvm-cov clean --workspace | ||
| cargo llvm-cov --workspace --all-features \ | ||
| --lcov \ | ||
| --output-path /tmp/all_cov.info | ||
| python3 tools/check_line_coverage.py --lcov /tmp/all_cov.info --root . --require 95 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| name: Publish | ||
|
|
||
| on: | ||
| release: | ||
| types: | ||
| - published | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| publish: | ||
| if: github.event.release.target_commitish == 'main' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Fetch main | ||
| run: git fetch origin main | ||
|
|
||
| - name: Verify release commit is on main | ||
| run: git merge-base --is-ancestor "$GITHUB_SHA" origin/main | ||
|
|
||
| - name: Verify release tag matches Cargo version | ||
| env: | ||
| RELEASE_TAG: ${{ github.event.release.tag_name }} | ||
| run: | | ||
| python3 - <<'PY' | ||
| import os | ||
| import tomllib | ||
| from pathlib import Path | ||
|
|
||
| cargo = tomllib.loads(Path("Cargo.toml").read_text()) | ||
| expected = f"v{cargo['package']['version']}" | ||
| actual = os.environ["RELEASE_TAG"] | ||
| if actual != expected: | ||
| raise SystemExit(f"release tag {actual!r} does not match Cargo.toml version {expected!r}") | ||
| PY | ||
|
|
||
| - name: Install OpenSSL headers | ||
| run: sudo apt-get update && sudo apt-get install -y libssl-dev pkg-config | ||
|
|
||
| - name: Install stable | ||
| run: rustup toolchain install stable --profile minimal | ||
|
|
||
| - name: Resolve publish dependency graph | ||
| run: | | ||
| rm -f Cargo.lock | ||
| cargo +stable test --workspace --all-features --no-run | ||
|
|
||
| - name: Verify tests | ||
| run: cargo +stable test --workspace --all-features --locked | ||
|
|
||
| - name: Publish to crates.io | ||
| env: | ||
| CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
| run: cargo +stable publish --locked --token "$CARGO_REGISTRY_TOKEN" |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.