Skip to content

Commit

Permalink
port hyperium/* as rama-http-core (#347)
Browse files Browse the repository at this point in the history
- dropped logic we do not need
- dropped wrapper/duplicate code no longer needed
- modify signatures to avoid having to need to lock
- keep file structure as similar as possible to easier facilitate keeping in sync with upstream (already proven to work as this PR already contains a couple of syncs with upstream, was very easy to do)

Closes #86
  • Loading branch information
GlenDC authored Dec 28, 2024
1 parent d0df614 commit 360fb80
Show file tree
Hide file tree
Showing 601 changed files with 1,851,135 additions and 888 deletions.
35 changes: 33 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ jobs:
- uses: actions/checkout@v4
- uses: EmbarkStudios/cargo-deny-action@v1

cargo-fuzz:
cargo-fuzz-ua:
needs: [check, check-msrv, check-all-features]
runs-on: ubuntu-latest
steps:
Expand All @@ -364,6 +364,35 @@ jobs:
run: |
cargo +nightly fuzz run ua_parse -- -max_len=131072 -max_total_time=30
cargo-fuzz-h2:
needs: [check, check-msrv, check-all-features]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
toolchain: ${{env.RUST_TOOLCHAIN_NIGHTLY}}
- name: Install cargo-fuzz
run: |
cargo install cargo-fuzz 2>/dev/null || true
- name: cargo fuzz check
run: |
cargo +nightly fuzz run h2_client -- -max_total_time=30
cargo +nightly fuzz run h2_e2e -- -max_total_time=30
cargo +nightly fuzz run h2_hpack -- -max_total_time=30
test-spec-h2:
needs: [check, check-msrv, check-all-features]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{env.RUST_TOOLCHAIN}}
- name: h2spec
run: |
bash rama-http-core/ci/h2spec.sh -F
# action is not being updated atm
# TODO: enable once it works again, for now not that useful anyway
# semver-checks:
Expand Down Expand Up @@ -393,7 +422,9 @@ jobs:
- test-docs
- cargo-hack
- cargo-deny
- cargo-fuzz
- test-spec-h2
- cargo-fuzz-ua
- cargo-fuzz-h2
- dependencies-are-sorted
# - semver-checks
if: github.ref == 'refs/heads/main'
Expand Down
Loading

0 comments on commit 360fb80

Please sign in to comment.