- Mar 06, 2024
-
-
Tadeo Hepperle authored
-
- 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
-
- Nov 24, 2023
-
-
Niklas Adolfsson authored
* refactor: RpcServiceT make it possible !BoxFuture * cleanup and no boxing in the EitherLayer * add missing files * remove more BoxFuture * fix clippy * cleanup * grumbles: add Clone bound * grumbles: remove needless bounds RpcLogger * grumbles: simplify response futures * grumbles: fix faulty comment * fix more grumbles: simplify trait bounds * Revert "fix more grumbles: simplify trait bounds" This reverts commit 2e7c94f3.
-
- Nov 22, 2023
-
-
Niklas Adolfsson authored
* fix: unsubscription test * fix nits * address grumbles * fix nit
-
- Nov 21, 2023
-
-
Leonardo L authored
* refactor(jsonrpsee-client-transport): update and turn `WsTransportClientBuilder` generic - fix(docs): typo on `WsTransportClientBuilder` doc on `Receiver` reference. - refactor: add initial fn signatures for `build_with_stream`, `try_connect_over_tcp`, and `try_connect`. - refactor: expose `EitherStream` visibility to public. - refactor: make `Sender` and `Receiver` generic over T, a data stream. - refactor: make `TransportSenderT` and `TransportReceiverT` implementations over generic `Sender` and `Receiver`, bound to `AsyncRead`, `AsyncRead`, `MaybeSend` and `'static`. - refactor: turn old `try_connect` TCP steps into `try_connect_over_tcp`. - feat: implement `build_with_stream` and `try_connect` to handle and handle the handshake for a generic data stream `T`. - feat: add new `Redirected` error variant to `WsHandshakeError`, as it should be handled by the client when using a generic data stream `T`. - TODO(@oleonardolima): Add new tests that uses a different data stream. * refactor(jsonrpsee-ws-client): add new fns to `WsClientBuilder` - feat: add new `WsClientBuilder::build_with_transport` that builds and returns a `WsClient` with the given `Sender` and `Receiver`. - feat: add new `WsClientBuilder::build_with_stream` that uses the new `WsTransportClientBuilder::build_with_stream`, building and returning the `WsClient` with the given `data_stream` as transport layer. - refactor: update the `WsClientBuilder::build` to use the new `build_with_transport`, it helps not having duplicated code. * refactor: re-export `EitherStream` & sort current list * test: add integration tests and helper fns - add new helper fns to spawn a socks5 server, using `fast-socks5` - add new helper enum for `DataStream` that acts as a wrapper to `Socks5Stream<T>`, similar to what a client would need to do. - impl AsyncRead + AsyncWrite for the helper `DataStream` enum, to make it compatible between futures::io and tokio::io. - add new tests that connects over a socks5 proxy, and use the new `WsClientBuilder::default()::build_with_stream(...) fn. * address review suggestions --------- Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Nov 17, 2023
-
-
Niklas Adolfsson authored
This reverts commit c811810b.
-
- Nov 16, 2023
-
-
Niklas Adolfsson authored
feat: jsonrpsee as `service` and `low-level API for more fine-grained API to disconnect peers etc` (#1224) * refactor new jsonrpc middleware * add jsonrpsee specific service trait * use tower::ServiceBuilder for composable middleware * revert changelog * fix nits * types: impl Clone * clarify examples * Update server/src/middleware/mod.rs * Update server/src/transport/http.rs * remove some boiler plate * add back logging * remove needless Arc * remove clone bounds for Middleware * add wrapper for tower::ServiceBuilder * fix docs * add modify request example * add rate limit example * fix some nits in rate limiting middleware example * Meta -> Context * restruct middleware module * fix broken links * jsonrpsee service PoC * add example how to disconnect misbehaving peers * cleanup example * cleanup * complete example with http * rename some stuff * remove needless deps * Update server/src/server.rs * revert unintentional change * add hyper low-level example * address grumbles * remove useless example * improve jsonrpsee as service example * address grumbles * Update examples/examples/jsonrpsee_as_service.rs * fix bad docs * fix grumbles: no leaky `Settings` * cleanup * unify server_cfg * grumbles: revert pub items * cleanup * Update server/src/server.rs * simplify doc links * fix `RpcServerBuilder::option_layer` Close https://github.com/paritytech/jsonrpsee/issues/1231 * remove TransportProtocol from RpcServiceT * fix test build * Update examples/examples/jsonrpsee_as_service.rs Co-authored-by: Alexandru Vasile <[email protected]> * grumbles: remove a few clones in examples * Update examples/examples/jsonrpsee_as_service.rs * remove clone bounds for TowerServiceBuilder * remove missing clone impl * remove more needless clone --------- Co-authored-by: Alexandru Vasile <[email protected]>
-
dependabot[bot] authored
Updates the requirements on [http](https://github.com/hyperium/http) to permit the latest version. - [Release notes](https://github.com/hyperium/http/releases) - [Changelog](https://github.com/hyperium/http/blob/master/CHANGELOG.md) - [Commits](https://github.com/hyperium/http/compare/v0.2.9...v1.0.0 ) --- updated-dependencies: - dependency-name: http dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Nov 09, 2023
-
-
Niklas Adolfsson authored
* fix `RpcServerBuilder::option_layer` Close https://github.com/paritytech/jsonrpsee/issues/1231 * Update server/src/middleware/rpc/layers.rs * fix grumbles * address grumbles * remove needless dep pin-project * fix import * revert external either type
-