Skip to content

Commit

Permalink
Merge pull request #126 from Totodore/chore(deps)-hyper-1.0
Browse files Browse the repository at this point in the history
Chore(deps): hyper 1.0
  • Loading branch information
Totodore authored Nov 2, 2023
2 parents 8de2238 + 57c7dda commit 132bd07
Show file tree
Hide file tree
Showing 47 changed files with 2,450 additions and 1,028 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ jobs:
strategy:
matrix:
engineio-version: [v3, v4]
hyper-version: [hyper-v04, hyper-v1]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
Expand All @@ -115,8 +116,8 @@ jobs:
- name: Install deps & run tests
run: |
cd engine.io-protocol/test-suite && npm install && cd ../..
cargo build --bin engineioxide-e2e --features ${{ matrix.engineio-version }} --release
cargo run --bin engineioxide-e2e --features ${{ matrix.engineio-version }} --release > server.txt & npm --prefix engine.io-protocol/test-suite test > client.txt
cargo build --bin engineioxide-${{ matrix.hyper-version }}-e2e --features ${{ matrix.engineio-version }} --release
cargo run --bin engineioxide-${{ matrix.hyper-version }}-e2e --features ${{ matrix.engineio-version }} --release > server.txt & npm --prefix engine.io-protocol/test-suite test > client.txt
- name: Server output
if: always()
run: cat server.txt
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# 0.7.0
## socketioxide
* The `extensions` field on sockets has been moved to a separate optional feature flag named `extensions`
* All the `tracing` internal calls have been moved to a separate optional feature flag named `tracing`
* A compatibility layer is now available for hyper v1 under the feature flag `hyper-v1`. You can call `with_hyper_v1` on the `SocketIoLayer` or the `SocketIoService` to get a layer/service working with hyper v1. The default is still hyper v0.
* New example with hyper v1 standalone
* New example with [salvo](https://salvo.rs) (based on hyper v1)
* Socket.io packet encoding/decoding has been optimized, it is now between ~15% and ~50% faster than before

## engineioxide
* All the `tracing` internal calls have been moved to a separate optional feature flag named `tracing`
* A compatibility layer is now available for hyper v1 under the feature flag `hyper-v1`. You can call `with_hyper_v1` on the `EngineIoLayer` or the `EngineIoService` to get a layer/service working with hyper v1. The default is still hyper v0.
* Sid generation is now done manually without external crates

# 0.6.0
## socketioxide
* New API for creating the socket.io layer/service. A cheaply clonable `SocketIo` struct is now returned with the layer/service and allows to access namespaces/rooms/sockets everywhere in the application. Moreover, it is now possible to add and remove namespaces dynamically through the `SocketIo` struct.
Expand Down
Loading

0 comments on commit 132bd07

Please sign in to comment.