- 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
-
dependabot[bot] authored
* chore(deps): update tokio-rustls requirement from 0.24 to 0.25 Updates the requirements on [tokio-rustls](https://github.com/rustls/tokio-rustls) to permit the latest version. - [Commits](https://github.com/rustls/tokio-rustls/commits ) --- updated-dependencies: - dependency-name: tokio-rustls dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * chore: update native-certs and webpki-roots * cargo fmt * fix build * Update client/transport/src/ws/mod.rs --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Dec 07, 2023
-
-
dependabot[bot] authored
Updates the requirements on [gloo-net](https://github.com/rustwasm/gloo) to permit the latest version. - [Release notes](https://github.com/rustwasm/gloo/releases) - [Changelog](https://github.com/rustwasm/gloo/blob/master/CHANGELOG.md) - [Commits](https://github.com/rustwasm/gloo/compare/0.4.0...0.5.0 ) --- updated-dependencies: - dependency-name: gloo-net dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Dec 06, 2023
-
-
Niklas Adolfsson authored
* split client and server error * cargo fmt * remove old code * fix tests * cargo fmt * fix rustdoc links * make clippy happy * Update server/src/future.rs * Update client/http-client/src/client.rs * Update client/http-client/src/client.rs * Update core/src/client/async_client/helpers.rs * Update core/src/client/async_client/helpers.rs * Update core/src/client/async_client/mod.rs * Update core/src/client/async_client/mod.rs * fix more todos * unused dep: soketto * remove unused error variant * Update core/src/lib.rs * cargo fmt * fix grumbles: move client error to own mod * simplify imports * Update core/src/client/error.rs
-
- Dec 05, 2023
-
-
Niklas Adolfsson authored
* fix(host filtering): allow same host with ports The refactoring moved to another library where an `Authority` with the "same host name" but a different port was overwritten and this commit fixes that several ports with the same host name can be configured and work properly. * Update server/src/middleware/host_filter.rs
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
* refactor(ws client): tokio:{AsyncRead, AsyncWrite] Simplify the code by implementing `tokio::io::{AsyncWrite, AsyncRead}` for the EitherStream. However, we still need the compat because soketto requires futures::io::{AsyncRead, AsyncWrite} * cargo fmt
-
- Dec 04, 2023
-
-
venugopv authored
-
- Dec 01, 2023
-
-
Niklas Adolfsson authored
* feat(server): make it possible to disable WS ping * cleanup * refactor PingConfig * refactor PingConfig * fix build * Update server/src/server.rs * Update server/src/transport/ws.rs * Update server/src/server.rs
-
- Nov 30, 2023
-
-
Niklas Adolfsson authored
* feat(client): add `disconnect_reason` API This commit adds an API to get the error reason why the backend was disconnected. Close #1196 * switch to RwLock * fix wasm build * address grumbles * Update client/ws-client/src/tests.rs
-
Niklas Adolfsson authored
* refactor: cleanup logging * fix nits
-