- Apr 26, 2024
-
-
Yichi Zhang authored
-
- Apr 21, 2024
-
-
Niklas Adolfsson authored
-
- Apr 08, 2024
-
-
Niklas Adolfsson authored
* client: `disconnect_reason/read_error` cancel-safe If/when the connection is closed, the cause is fetched by `read_error` from the background task. It was not cancel-safe, which could have side-effects and mutate the state, such as the internal Option could be `None` and cause a panic. * fix wasm build * remove async_lock dependency
-
- Apr 07, 2024
-
-
hanghuge authored
Signed-off-by: hanghuge <[email protected]>
-
- Apr 05, 2024
-
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
* client: support batched subscriptions notifs * address grumbles
-
- Apr 04, 2024
-
-
Niklas Adolfsson authored
Close #1337
-
- Mar 25, 2024
-
-
Niklas Adolfsson authored
-
- Mar 22, 2024
-
-
Eric Lavigne authored
-
- Mar 20, 2024
-
-
Niklas Adolfsson authored
* Revert "fix(server): return err on WS handshake err (#1288)" This reverts commit d9c4a5c2. * fix docs * Update server/src/transport/ws.rs
-
- Mar 16, 2024
-
-
Matthias Seitz authored
-
Aatif Syed authored
* feat: RpcModule::context * feat: RpcModule::from_arc
-
- Mar 15, 2024
-
-
Niklas Adolfsson authored
* client subscription: don't close subscription lagg * refactor(client subscription): don't drop on lagg. * add client subscription example * Update core/src/client/mod.rs * Update examples/examples/client_subscription_drop_oldest_item.rs * address grumbles * Update tests/tests/integration_tests.rs * remove async-broadcast dep * revert subscription tests * Update core/src/client/mod.rs
-
dependabot[bot] authored
```yaml:frontmatter updated-dependencies: - dependency-name: heck dependency-type: direct:production ``` Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Mar 12, 2024
-
-
dependabot[bot] authored
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.2. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4.1.1...v4.1.2 ) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Mar 06, 2024
-
-
Zeeshan Lakhani authored
* chore: add dual-stack example as per https://github.com/paritytech/jsonrpsee/discussions/1303 * Update examples/examples/ws_dual_stack.rs Leftover comment Co-authored-by: Niklas Adolfsson <[email protected]> --------- Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Mar 05, 2024
-
-
Alexandru Vasile authored
* chore: Release 0.22.2 Signed-off-by: Alexandru Vasile <[email protected]> * Add changelog entry Signed-off-by: Alexandru Vasile <[email protected]> * Update CHANGELOG.md Co-authored-by: Niklas Adolfsson <[email protected]> * Update CHANGELOG.md Co-authored-by: Niklas Adolfsson <[email protected]> * Update CHANGELOG.md Co-authored-by: Niklas Adolfsson <[email protected]> * Update CHANGELOG.md Co-authored-by: Niklas Adolfsson <[email protected]> --------- Signed-off-by: Alexandru Vasile <[email protected]> Co-authored-by: Niklas Adolfsson <[email protected]>
-
Alexandru Vasile authored
* server: Add a raw method Signed-off-by: Alexandru Vasile <[email protected]> * server: Register raw methods, blocking or unblocking Signed-off-by: Alexandru Vasile <[email protected]> * proc-macros: Add with-context attribute Signed-off-by: Alexandru Vasile <[email protected]> * server: Register sync and nonblocking methods for raw API Signed-off-by: Alexandru Vasile <[email protected]> * examples: Add with context example Signed-off-by: Alexandru Vasile <[email protected]> * core: Adjust docs for the raw method registering Signed-off-by: Alexandru Vasile <[email protected]> * proc-macros: Cargo fmt Signed-off-by: Alexandru Vasile <[email protected]> * server: Request Arc<Context> for the raw method callback Signed-off-by: Alexandru Vasile <[email protected]> * proc-macros: Per method raw-method attribute Signed-off-by: Alexandru Vasile <[email protected]> * examples: Add server raw method Signed-off-by: Alexandru Vasile <[email protected]> * tests/ui: Check correct proc-macro behavior Signed-off-by: Alexandru Vasile <[email protected]> * tests/ui: Negative test for async with raw methods Signed-off-by: Alexandru Vasile <[email protected]> * tests/ui: Negative test for blocking with raw methods Signed-off-by: Alexandru Vasile <[email protected]> * tests/proc-macros: Ensure unique connection IDs from different clients Signed-off-by: Alexandru Vasile <[email protected]> * tests/integration: Ensure unique connection IDs from different clients Signed-off-by: Alexandru Vasile <[email protected]> * proc-macros: Apply cargo fmt Signed-off-by: Alexandru Vasile <[email protected]> * Register raw method as async method Signed-off-by: Alexandru Vasile <[email protected]> * Fix testing Signed-off-by: Alexandru Vasile <[email protected]> * core: Fix documentation Signed-off-by: Alexandru Vasile <[email protected]> * server: Rename raw method to `module.register_async_with_details` Signed-off-by: Alexandru Vasile <[email protected]> * server: Add connection details wrapper Signed-off-by: Alexandru Vasile <[email protected]> * server: Add asyncWithDetails and connection details Signed-off-by: Alexandru Vasile <[email protected]> * proc-macros: Provide connection details to methods Signed-off-by: Alexandru Vasile <[email protected]> * Update core/src/server/rpc_module.rs Co-authored-by: Niklas Adolfsson <[email protected]> * server: Remove connection details builder Signed-off-by: Alexandru Vasile <[email protected]> * server: Refactor `.register_async_with_details` to `.register_async_method_with_details` Signed-off-by: Alexandru Vasile <[email protected]> * proc-macro: Clarify comment Signed-off-by: Alexandru Vasile <[email protected]> * core: Doc hidden for async with details Signed-off-by: Alexandru Vasile <[email protected]> * Rename example Signed-off-by: Alexandru Vasile <[email protected]> * Update core/src/server/rpc_module.rs Co-authored-by: Niklas Adolfsson <[email protected]> * core: Remove doc(hidden) from ConnectionDetails::id Signed-off-by: Alexandru Vasile <[email protected]> * Update core/src/server/rpc_module.rs --------- Signed-off-by: Alexandru Vasile <[email protected]> Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Feb 29, 2024
-
-
Tadeo Hepperle authored
* update syn * still not working for all examples * unblock Tadeo with hacky fix * clippy --------- Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Feb 22, 2024
-
-
Niklas Adolfsson authored
-
- Feb 19, 2024
-
-
Niklas Adolfsson authored
* chore: release v0.22.1 * Update CHANGELOG.md
-
- Feb 13, 2024
-
-
Exidex authored
-
- Feb 12, 2024
-
-
Niklas Adolfsson authored
* fix(client): change to `AtomicU64` to `AtomicUsize` Some targets may not support AtomicU64. This PR moves to `AtomicUsize` instead to support more targets. * Update core/src/client/mod.rs * fix benches
-
Niklas Adolfsson authored
-
- Feb 07, 2024
-
-
Niklas Adolfsson authored
* chore: release v0.22.0 * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * make some small tweaks * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md
-
Niklas Adolfsson authored
* change RpcModule::<call, subscribe, raw> -> String This PR changes the RpcModule to support the new async API in the MethodResponse and RpcModule::<call, subscribe, raw> now returns a String instead of MethodResponse. * refactor async response payload test
-
- Feb 06, 2024
-
-
Niklas Adolfsson authored
* add TowerService build and notify on session close * refactor the API * clarify docs * add test for on_session_close
-
Niklas Adolfsson authored
* feat: add `RpcModule::register_raw_method` * add proc macro support * rename API * simplify API with MethodResponse::notify_when_sent * improve notify API * fix nits * introduce ResponsePayloadV2 * impl ResponsePayloadV2 for T * cleanup * client: proc macro support for custom ret_ty * add tests * address grumbles * remove unused code * fix tests * proc: revert unrelated changes * remove panics; move should be enough * bring back UI tests * grumbles: remove NotifiedError * break stuff for uniform API * make more stuff private * remove ResponseErrorUnit type alias * fix ui tests * Update proc-macros/src/render_server.rs * Rename ws_notify_on_method_answered.rs to response_payload_notify_on_response.rs * remove unit_error APIs * replace notify_on_x with notify_on_completion * Update server/src/transport/ws.rs
-
- Feb 05, 2024
-
-
Niklas Adolfsson authored
* client(error): make display impl less verbose * Update core/src/http_helpers.rs
-
dependabot[bot] authored
Bumps [baptiste0928/cargo-install](https://github.com/baptiste0928/cargo-install) from 2 to 3. - [Release notes](https://github.com/baptiste0928/cargo-install/releases) - [Changelog](https://github.com/baptiste0928/cargo-install/blob/main/CHANGELOG.md) - [Commits](https://github.com/baptiste0928/cargo-install/compare/v2...v3 ) --- updated-dependencies: - dependency-name: baptiste0928/cargo-install dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Jan 26, 2024
-
-
dependabot[bot] authored
Updates the requirements on [proc-macro-crate](https://github.com/bkchr/proc-macro-crate) to permit the latest version. - [Release notes](https://github.com/bkchr/proc-macro-crate/releases) - [Commits](https://github.com/bkchr/proc-macro-crate/commits ) --- updated-dependencies: - dependency-name: proc-macro-crate dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Jan 18, 2024
-
-
dan-starkware authored
-
- Jan 17, 2024
-
-
Niklas Adolfsson authored
-
- Jan 16, 2024
-
-
dependabot[bot] authored
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.7.2 to 2.7.3. - [Release notes](https://github.com/swatinem/rust-cache/releases) - [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md) - [Commits](https://github.com/swatinem/rust-cache/compare/v2.7.2...v2.7.3 ) --- updated-dependencies: - dependency-name: Swatinem/rust-cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Jan 11, 2024
-
-
dependabot[bot] authored
Bumps [Swatinem/rust-cache](https://github.com/swatinem/rust-cache) from 2.7.1 to 2.7.2. - [Release notes](https://github.com/swatinem/rust-cache/releases) - [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md) - [Commits](https://github.com/swatinem/rust-cache/compare/v2.7.1...v2.7.2 ) --- updated-dependencies: - dependency-name: Swatinem/rust-cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Dec 21, 2023
-
-
Fedor Sakharov authored
-
- Dec 13, 2023
-
-
Niklas Adolfsson authored
-
- Dec 11, 2023
-
-
Niklas Adolfsson authored
* feat: add explicit API `set_tcp_nodelay` * fix build * replace messy fn new with builder * update changelog * Update client/http-client/src/transport.rs * fix bad fmt
-
- Dec 08, 2023
-
-
Niklas Adolfsson authored
* chore: release v0.21 * fix my bad spelling * more spelling * Update CHANGELOG.md Co-authored-by: Alexandru Vasile <[email protected]> * Update CHANGELOG.md Co-authored-by: Alexandru Vasile <[email protected]> * Update CHANGELOG.md Co-authored-by: James Wilson <[email protected]> * Update CHANGELOG.md * address grumbles * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md --------- Co-authored-by: Alexandru Vasile <[email protected]> Co-authored-by: James Wilson <[email protected]>
-
Niklas Adolfsson authored
* refactor(client): unify ws ping/pong api * fix nits * fix build * fix wasm build * refactor again * Update core/Cargo.toml * Update core/src/client/async_client/mod.rs * Update core/src/client/async_client/mod.rs * fix build again * Update core/src/client/async_client/mod.rs * fix grumbles * fix fmt nit * emit error when ping/pong terminates conn
-