- Aug 16, 2022
-
-
Alexandru Vasile authored
* client: Implement `notify_on_disconnect` Signed-off-by: Alexandru Vasile <[email protected]> * Revert "client: Implement `notify_on_disconnect`" This reverts commit c8ffaa4c . * client: Rely on `tokio::sync::mpsc::Sender` to notify on disconnect Signed-off-by: Alexandru Vasile <[email protected]> * Implement `InternalError` for tokio and futures_channel's SendError Signed-off-by: Alexandru Vasile <[email protected]> * client: Remove tokio-stream dependency Signed-off-by: Alexandru Vasile <[email protected]> * client: Rename `notify_on_disconnect` to `on_disconnect` Signed-off-by: Alexandru Vasile <[email protected]> * Add `tokio/sync` as dependency of client feature Signed-off-by: Alexandru Vasile <[email protected]> * wasm-client: Use `tokio::sync::mpsc::channel` for notify on disconnect Signed-off-by: Alexandru Vasile <[email protected]> * Add tokio/sync dependency to satisfy `--no-default-features` check Signed-off-by: Alexandru Vasile <[email protected]> * Best effort to close channel on client drops Signed-off-by: Alexandru Vasile <[email protected]> * revert to: client: Implement `notify_on_disconnect` Signed-off-by: Alexandru Vasile <[email protected]> * Replace tokio/sync with oneshot channel Signed-off-by: Alexandru Vasile <[email protected]> * tests: Check `client.on_disconnect()` returns when server shuts down Signed-off-by: Alexandru Vasile <[email protected]> * tests: Fix comment typo Signed-off-by: Alexandru Vasile <[email protected]> * tests: Call `on_disconnect()` multiple times Signed-off-by: Alexandru Vasile <[email protected]> * tests: Call `on_disconnect` with closed server Signed-off-by: Alexandru Vasile <[email protected]> Signed-off-by: Alexandru Vasile <[email protected]>
-
Alexandru Vasile authored
* http: Add inner server data structure Signed-off-by: Alexandru Vasile <[email protected]> * http: Handle RPC messages Signed-off-by: Alexandru Vasile <[email protected]> * http: Implement equivalent of `service_fn` Signed-off-by: Alexandru Vasile <[email protected]> * http: Implement equivalent of `make_service_fn` Signed-off-by: Alexandru Vasile <[email protected]> * http: Expose `tower` compatible service Signed-off-by: Alexandru Vasile <[email protected]> * http: Prebuild http server with optional listener Signed-off-by: Alexandru Vasile <[email protected]> * examples: WIP tower service Signed-off-by: Alexandru Vasile <[email protected]> * http: Fix warnings Signed-off-by: Alexandru Vasile <[email protected]> * tower_http: Fix warnings Signed-off-by: Alexandru Vasile <[email protected]> * http: Ensure service works with tower Signed-off-by: Alexandru Vasile <[email protected]> * http: Remove `RPSeeServerMakeSvc` to allow further flexibility Signed-off-by: Alexandru Vasile <[email protected]> * tower_http: Fix warnings Signed-off-by: Alexandru Vasile <[email protected]> * tower_http: Resubmit the same request for testing Signed-off-by: Alexandru Vasile <[email protected]> * http: Transform builder into service directly Signed-off-by: Alexandru Vasile <[email protected]> * http: Rename `RPSeeServerSvc` into user friendly `TowerService` Signed-off-by: Alexandru Vasile <[email protected]> * http: Rely on internal TowerService to handle requests Signed-off-by: Alexandru Vasile <[email protected]> * Fix middleware typo Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Improve API builder for tower service Signed-off-by: Alexandru Vasile <[email protected]> * Rename the inner service data and check comments Signed-off-by: Alexandru Vasile <[email protected]> * examples: Add comments Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Receive tower service builder as param Signed-off-by: Alexandru Vasile <[email protected]> * examples: Adjust tower_http example Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Add tower middleware on the HttpBuilder Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Do not expose the internal `TowerService` for now Signed-off-by: Alexandru Vasile <[email protected]> * Update http-server/src/server.rs Co-authored-by: Niklas Adolfsson <[email protected]> * http-server: Use `std::error::Error` Signed-off-by: Alexandru Vasile <[email protected]> * Fix fmt Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Remove header and CORS validation Signed-off-by: Alexandru Vasile <[email protected]> * core: Remove CORS logic Signed-off-by: Alexandru Vasile <[email protected]> * examples: Add custom CORS layer to the RPC Signed-off-by: Alexandru Vasile <[email protected]> * address some grumbles * fix more grumbles: no more Infallible * make clippy happy * Rename tower http example Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Remove handling of OPTIONS request Signed-off-by: Alexandru Vasile <[email protected]> * tests: Test CORS with external layers Signed-off-by: Alexandru Vasile <[email protected]> * examples: Document access control and external CORS layer Signed-off-by: Alexandru Vasile <[email protected]> * Remove unused deps Signed-off-by: Alexandru Vasile <[email protected]> * remove unused CORS code * Remove extra lifetime param Signed-off-by: Alexandru Vasile <[email protected]> * Rename `invalid_allow_origin` to `origin_rejected` Signed-off-by: Alexandru Vasile <[email protected]> * Fix clippy Signed-off-by: Alexandru Vasile <[email protected]> * Update core/src/server/access_control/origin.rs Co-authored-by: Niklas Adolfsson <[email protected]> * Rename `AnyNonNull` to `Wildcard` Signed-off-by: Alexandru Vasile <[email protected]> * Rename `OriginType` to `Origin` Signed-off-by: Alexandru Vasile <[email protected]> Signed-off-by: Alexandru Vasile <[email protected]> Co-authored-by: Niklas Adolfsson <[email protected]>
-
Niklas Adolfsson authored
-
- Aug 15, 2022
-
-
Niklas Adolfsson authored
* fix(jsonrpsee): less deps when defining RPC API. * address grumbles * fix missing macros feature in full
-
- Aug 12, 2022
-
-
Niklas Adolfsson authored
* fix(client): adjust TransportSenderT This is trait contains `WebSocket` specific details and it's difficult to fix it properly with an extension trait in the current design. So this PR documents and marks it clearly that these methods are optional to implement, kind of ugly but better. * fix build * Update core/src/client/mod.rs Co-authored-by: Alexandru Vasile <[email protected]> * Update core/src/client/mod.rs Co-authored-by: Alexandru Vasile <[email protected]> * increase margin for failing test * Update core/src/client/mod.rs Co-authored-by: James Wilson <[email protected]> * remove optional prefix in trait Co-authored-by: Alexandru Vasile <[email protected]> Co-authored-by: James Wilson <[email protected]>
-
Alexandru Vasile authored
* http: Add inner server data structure Signed-off-by: Alexandru Vasile <[email protected]> * http: Handle RPC messages Signed-off-by: Alexandru Vasile <[email protected]> * http: Implement equivalent of `service_fn` Signed-off-by: Alexandru Vasile <[email protected]> * http: Implement equivalent of `make_service_fn` Signed-off-by: Alexandru Vasile <[email protected]> * http: Expose `tower` compatible service Signed-off-by: Alexandru Vasile <[email protected]> * http: Prebuild http server with optional listener Signed-off-by: Alexandru Vasile <[email protected]> * examples: WIP tower service Signed-off-by: Alexandru Vasile <[email protected]> * http: Fix warnings Signed-off-by: Alexandru Vasile <[email protected]> * tower_http: Fix warnings Signed-off-by: Alexandru Vasile <[email protected]> * http: Ensure service works with tower Signed-off-by: Alexandru Vasile <[email protected]> * http: Remove `RPSeeServerMakeSvc` to allow further flexibility Signed-off-by: Alexandru Vasile <[email protected]> * tower_http: Fix warnings Signed-off-by: Alexandru Vasile <[email protected]> * tower_http: Resubmit the same request for testing Signed-off-by: Alexandru Vasile <[email protected]> * http: Transform builder into service directly Signed-off-by: Alexandru Vasile <[email protected]> * http: Rename `RPSeeServerSvc` into user friendly `TowerService` Signed-off-by: Alexandru Vasile <[email protected]> * http: Rely on internal TowerService to handle requests Signed-off-by: Alexandru Vasile <[email protected]> * Fix middleware typo Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Improve API builder for tower service Signed-off-by: Alexandru Vasile <[email protected]> * Rename the inner service data and check comments Signed-off-by: Alexandru Vasile <[email protected]> * examples: Add comments Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Receive tower service builder as param Signed-off-by: Alexandru Vasile <[email protected]> * examples: Adjust tower_http example Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Add tower middleware on the HttpBuilder Signed-off-by: Alexandru Vasile <[email protected]> * http-server: Do not expose the internal `TowerService` for now Signed-off-by: Alexandru Vasile <[email protected]> * Update http-server/src/server.rs Co-authored-by: Niklas Adolfsson <[email protected]> * http-server: Use `std::error::Error` Signed-off-by: Alexandru Vasile <[email protected]> * Fix fmt Signed-off-by: Alexandru Vasile <[email protected]> * address some grumbles * fix more grumbles: no more Infallible * make clippy happy * Rename tower http example Signed-off-by: Alexandru Vasile <[email protected]> * Update http-server/src/server.rs * Update http-server/src/server.rs * Update http-server/src/server.rs * Update http-server/src/server.rs Signed-off-by: Alexandru Vasile <[email protected]> Co-authored-by: Niklas Adolfsson <[email protected]>
-
mwtian authored
* add len() to Params * Rename to `len_bytes()` Co-authored-by: Niklas Adolfsson <[email protected]> * Update comment. Co-authored-by: Niklas Adolfsson <[email protected]> * Update types/src/params.rs * Update types/src/params.rs * Update types/src/params.rs * Update types/src/params.rs Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Aug 11, 2022
-
-
Alexandru Vasile authored
* Fix cargo clippy Signed-off-by: Alexandru Vasile <[email protected]> * ci: Deny clippy warning Signed-off-by: Alexandru Vasile <[email protected]> * Replace clippy by `clippy-check` Signed-off-by: Alexandru Vasile <[email protected]>
-
Alexandru Vasile authored
* bench: Expose headers for http clients Signed-off-by: Alexandru Vasile <[email protected]> * bench: Add bench for custom HTTP headers Signed-off-by: Alexandru Vasile <[email protected]> * bench: Add bench for WS handshakes Signed-off-by: Alexandru Vasile <[email protected]> * Fix clippy Signed-off-by: Alexandru Vasile <[email protected]> * bench: Use KIB instead of `1 * KiB` Signed-off-by: Alexandru Vasile <[email protected]> * tweak http headers size Signed-off-by: Alexandru Vasile <[email protected]> Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Aug 08, 2022
-
-
dependabot[bot] authored
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache) from 1.4.0 to 2.0.0. - [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/v1.4.0...v2.0.0 ) --- updated-dependencies: - dependency-name: Swatinem/rust-cache 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>
-
- Aug 04, 2022
-
-
Alexandru Vasile authored
* Rename Middleware to Metrics Signed-off-by: Alexandru Vasile <[email protected]> * Change documentation to reflect the `Metrics` trait Signed-off-by: Alexandru Vasile <[email protected]> * Middleware name refactoring Signed-off-by: Alexandru Vasile <[email protected]> * Http middleware renaming Signed-off-by: Alexandru Vasile <[email protected]> * Rename examples Signed-off-by: Alexandru Vasile <[email protected]> * Update http-server/src/server.rs Co-authored-by: James Wilson <[email protected]> * http: Use `request` instead of `HeaderMap` for logging Signed-off-by: Alexandru Vasile <[email protected]> * Rename `Metrics` -> `Logger` Signed-off-by: Alexandru Vasile <[email protected]> * Fix cargo clippy Signed-off-by: Alexandru Vasile <[email protected]> * Fix examples Signed-off-by: Alexandru Vasile <[email protected]> * Fix tests Signed-off-by: Alexandru Vasile <[email protected]> * Fix cargo fmt Signed-off-by: Alexandru Vasile <[email protected]> * Fix hyper dependency Signed-off-by: Alexandru Vasile <[email protected]> Co-authored-by: James Wilson <[email protected]>
-
- Aug 03, 2022
-
-
Niklas Adolfsson authored
Closing https://github.com/paritytech/jsonrpsee/issues/838
-
- Jul 29, 2022
-
-
Alexandru Vasile authored
* Bump jsonrpsee version to 0.15.1 Signed-off-by: Alexandru Vasile <[email protected]> * Update changelog Signed-off-by: Alexandru Vasile <[email protected]> * Update CHANGELOG.md Co-authored-by: James Wilson <[email protected]> Co-authored-by: James Wilson <[email protected]>
-
Patrick Kuo authored
* add id to tracing span * Revert "add id to tracing span" This reverts commit 5e01e6be. * Avoid using Span::enter() in async functions, following tracing's doc instruction https://docs.rs/tracing/latest/tracing/struct.Span.html#in-asynchronous-code * * fixed all Span::enter() * clean up * fix fmt * changed RpcTracing::span -> into_span instead of cloning the span
-
- Jul 21, 2022
-
-
James Wilson authored
* Add generate_changelog and adapt release checklist from subxt to make the process a little easier * prepare to releasse v0.15.0 * release checklist tweak * fix numbers in release checklist * Add details about #820 to changelog
-
- Jul 20, 2022
-
-
Niklas Adolfsson authored
-
- Jul 18, 2022
-
-
Niklas Adolfsson authored
-
- Jul 14, 2022
-
-
Bill authored
-
- Jul 13, 2022
-
-
Alexandru Vasile authored
* ws-client: Replace `httparse::Header` with `http::HeaderMap` Signed-off-by: Alexandru Vasile <[email protected]> * ws-client: Make headers optional Signed-off-by: Alexandru Vasile <[email protected]> * http-client: Expose custom header injection Signed-off-by: Alexandru Vasile <[email protected]> * http-client: Adjust testing for custom headers Signed-off-by: Alexandru Vasile <[email protected]> * Make `http::HeaderMap` non-optional Signed-off-by: Alexandru Vasile <[email protected]> * http-client: Cache request headers Signed-off-by: Alexandru Vasile <[email protected]> * Fix doc tests Signed-off-by: Alexandru Vasile <[email protected]> * http-client: Use `into_iter` for headers Signed-off-by: Alexandru Vasile <[email protected]> * docs: Improve custom headers documentation Signed-off-by: Alexandru Vasile <[email protected]> * http: Use `hyper::http` instead of `http` directly Signed-off-by: Alexandru Vasile <[email protected]> * http-client: Adjust testing Signed-off-by: Alexandru Vasile <[email protected]> * Fix doc tests Signed-off-by: Alexandru Vasile <[email protected]> * client: Expose `http::HeaderMap` and `http::HeaderValue` Signed-off-by: Alexandru Vasile <[email protected]>
-
- Jul 06, 2022
-
-
Niklas Adolfsson authored
-
Alexandru Vasile authored
* ws-server: Handle `soketto::Incoming::Closed` frames Signed-off-by: Alexandru Vasile <[email protected]> * ws-server: Change `warn` -> `debug` for dropped connections Signed-off-by: Alexandru Vasile <[email protected]> * ws-server: Remove closed reason log Signed-off-by: Alexandru Vasile <[email protected]> * Update ws-server/src/server.rs Co-authored-by: Niklas Adolfsson <[email protected]>
-
Niklas Adolfsson authored
* WIP: refactoring * refactor http server * fix tests * Delete TODO.txt * fix tests again * add benches/src/lib.rs * remove bench changes; fast less deps * no more env_logger * update examples * ws server; expose headers in middleware * add back uncommented code * fix nits * make the code more readable * add back the tracing stuff * simplify code but one extra clone * fix tests again * revert async accept API * fix nits * different traits for WS and HTTP middleware * fix tests * revert benchmark change * Update core/src/server/helpers.rs * Update ws-server/Cargo.toml * add limit to batch responses as well * pre-allocate string for batches * small refactor
-
- Jul 04, 2022
-
-
Alexandru Vasile authored
* Parse user defined client_bounds and server_bounds Signed-off-by: Alexandru Vasile <[email protected]> * Use custom user defined bounds if provided Signed-off-by: Alexandru Vasile <[email protected]> * Add provided where clause to the custom bounds Signed-off-by: Alexandru Vasile <[email protected]> * Add proc_macro with bounds example Signed-off-by: Alexandru Vasile <[email protected]> * Check against client_bounds wihtout client implementation Signed-off-by: Alexandru Vasile <[email protected]> * tests: Add ui test for empty bounds Signed-off-by: Alexandru Vasile <[email protected]> * tests: Add ui test to check bounds without implementation Signed-off-by: Alexandru Vasile <[email protected]> * Add bounds documentation Signed-off-by: Alexandru Vasile <[email protected]> * rpc_macro: Remove `WherePredicate` from parsing Signed-off-by: Alexandru Vasile <[email protected]> * ui: Add test that compiles Signed-off-by: Alexandru Vasile <[email protected]> * Rename rendered `T` to avoid collision with user provided generic Signed-off-by: Alexandru Vasile <[email protected]> * tests: Modify UI correct rpc_bounds test to call server's methods Signed-off-by: Alexandru Vasile <[email protected]>
-
- Jun 29, 2022
-
-
Alexandru Vasile authored
* subscription: Allow errors in subscription callbacks Signed-off-by: Alexandru Vasile <[email protected]> * subscription: Remove the need to own the error Signed-off-by: Alexandru Vasile <[email protected]> * error: Build `ErrorObject` from `CallError` for improved ergonomics Signed-off-by: Alexandru Vasile <[email protected]> * Update examples for the new subscription API Signed-off-by: Alexandru Vasile <[email protected]> * Add alias for subscription result Signed-off-by: Alexandru Vasile <[email protected]> * macros: Render server subscription method with `ResultSubscription` Signed-off-by: Alexandru Vasile <[email protected]> * Port `proc_macro` example to new API Signed-off-by: Alexandru Vasile <[email protected]> * Rename `ResultSubscription` to `ReturnTypeSubscription` to avoid confusion Signed-off-by: Alexandru Vasile <[email protected]> * Port all tests to new subscription API Signed-off-by: Alexandru Vasile <[email protected]> * Update documentation Signed-off-by: Alexandru Vasile <[email protected]> * Port benches Signed-off-by: Alexandru Vasile <[email protected]> * Replace tabs with spaces & add documentation Signed-off-by: Alexandru Vasile <[email protected]> * Add dummy error for subscriptions Signed-off-by: Alexandru Vasile <[email protected]> * Implement `From` for `SubscriptionError` Signed-off-by: Alexandru Vasile <[email protected]> * Return `SubscriptionError` when parsing params Signed-off-by: Alexandru Vasile <[email protected]> * Rename `SubscriptionError` to `SubscriptionEmptyError` Signed-off-by: Alexandru Vasile <[email protected]> * Change `accept` signature Signed-off-by: Alexandru Vasile <[email protected]> * Port tests to new `accept` api Signed-off-by: Alexandru Vasile <[email protected]> * Implement `pipe_from_try_stream` and `pipe_from_stream` for `PendingSubscription` Signed-off-by: Alexandru Vasile <[email protected]> * Modify examples to ilustrate new API Signed-off-by: Alexandru Vasile <[email protected]> * Fix docs tests Signed-off-by: Alexandru Vasile <[email protected]> * Rename previously `SubscriptionResult` -> `InnerSubscriptionResult` Signed-off-by: Alexandru Vasile <[email protected]> * Rename `ReturnTypeSubscription` -> `SubscriptionResult` Signed-off-by: Alexandru Vasile <[email protected]> * Remove documentation line Signed-off-by: Alexandru Vasile <[email protected]> * Implement `PipeFromStreamResult` Signed-off-by: Alexandru Vasile <[email protected]> * Add comment for empty error Signed-off-by: Alexandru Vasile <[email protected]> * Update proc-macros/src/lib.rs Co-authored-by: Niklas Adolfsson <[email protected]> * Update proc-macros/src/lib.rs Co-authored-by: Niklas Adolfsson <[email protected]> * Update proc-macros/src/lib.rs Co-authored-by: Niklas Adolfsson <[email protected]> * Change `ReturnTypeSubscription` -> `SubscriptionResult` Signed-off-by: Alexandru Vasile <[email protected]> * Add `ResultConsumed` for `PipeFromStreamResult` Signed-off-by: Alexandru Vasile <[email protected]> * Update examples to use `PipeFromStreamResult` Signed-off-by: Alexandru Vasile <[email protected]> * Replace ConsumedResult with Options Signed-off-by: Alexandru Vasile <[email protected]> * Log warning when subscription callback fails Signed-off-by: Alexandru Vasile <[email protected]> * Change ubuntu test names Signed-off-by: Alexandru Vasile <[email protected]> * server: Make `pipe` methods of `SubscriptionSink` private Signed-off-by: Alexandru Vasile <[email protected]> * server: Remove `pipe_from_stream` method of `SubscriptionSink` Signed-off-by: Alexandru Vasile <[email protected]> * server: Update PipeFromStreamResult documentation Signed-off-by: Alexandru Vasile <[email protected]> * Adjust tests to `SubscriptionSink::pipe_from_stream` private interface Signed-off-by: Alexandru Vasile <[email protected]> * Add `accept-reject` API on `SubscriptionSink` Signed-off-by: Alexandru Vasile <[email protected]> * Make `pipe_from_try_stream` public Signed-off-by: Alexandru Vasile <[email protected]> * Maybe accept the subscription Signed-off-by: Alexandru Vasile <[email protected]> * Revert "server: Remove `pipe_from_stream` method of `SubscriptionSink`" This reverts commit d3c3ce9c . * Make `unsubscribe` channel optional on accepting the connection Signed-off-by: Alexandru Vasile <[email protected]> * Pass `SubscriptionSink` to subscription callbacks Signed-off-by: Alexandru Vasile <[email protected]> * Implement subscription sink state Signed-off-by: Alexandru Vasile <[email protected]> * Submit `InvalidParams` if sink was never accepted Signed-off-by: Alexandru Vasile <[email protected]> * Handle rejected sinks Signed-off-by: Alexandru Vasile <[email protected]> * Remove `PendingSubscription` Signed-off-by: Alexandru Vasile <[email protected]> * Fix doc tests Signed-off-by: Alexandru Vasile <[email protected]> * macro: Make subscription sink mutable Signed-off-by: Alexandru Vasile <[email protected]> * Fix tests and examples Signed-off-by: Alexandru Vasile <[email protected]> * macro: Return `sink.reject()` result Signed-off-by: Alexandru Vasile <[email protected]> * tests: Add test for `SubscriptionSinkState` Signed-off-by: Alexandru Vasile <[email protected]> * Test internal subscription sink state Signed-off-by: Alexandru Vasile <[email protected]> * Fix `send_error` to not always return `false` Signed-off-by: Alexandru Vasile <[email protected]> * Fix benches Signed-off-by: Alexandru Vasile <[email protected]> * Remove `PipeFromStreamResult` Signed-off-by: Alexandru Vasile <[email protected]> * Use valid Json-RPC return code for test errors Signed-off-by: Alexandru Vasile <[email protected]> * Remove `SubscriptionSinkState`" * Remodel state machine using `Option`s for `SubscriptionSink`s Signed-off-by: Alexandru Vasile <[email protected]> * tests: Double accept / reject API for `SubscriptionSink` Signed-off-by: Alexandru Vasile <[email protected]> * Implement `SubscriptionAcceptRejectError` for error propagation Signed-off-by: Alexandru Vasile <[email protected]> * Remove `maybe_accept` wrapper Signed-off-by: Alexandru Vasile <[email protected]> * Update comments and documentation Signed-off-by: Alexandru Vasile <[email protected]> * Update core/src/server/rpc_module.rs Co-authored-by: Niklas Adolfsson <[email protected]> * Update core/src/server/rpc_module.rs Co-authored-by: Niklas Adolfsson <[email protected]> * rpc_server: Add type alias for unsubscription calls Signed-off-by: Alexandru Vasile <[email protected]> * rpc_server: Improve comment regarding dropped error Signed-off-by: Alexandru Vasile <[email protected]> * style: Single line return errors Signed-off-by: Alexandru Vasile <[email protected]> * Make comment more verbose Co-authored-by: Niklas Adolfsson <[email protected]> Co-authored-by: James Wilson <[email protected]>
-
- Jun 27, 2022
-
-
dependabot[bot] authored
Updates the requirements on [pprof](https://github.com/tikv/pprof-rs) to permit the latest version. - [Release notes](https://github.com/tikv/pprof-rs/releases) - [Changelog](https://github.com/tikv/pprof-rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/tikv/pprof-rs/compare/v0.9.1...v0.10.0 ) --- updated-dependencies: - dependency-name: pprof dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Jun 24, 2022
-
-
James Wilson authored
Just a small readme tweak
-
- Jun 23, 2022
-
-
Artem Vorotnikov authored
-
- Jun 22, 2022
-
-
tgmichel authored
* Remove `deny_unknown_fields` * Update invalid request tests * Remove `is_not_request_object` field from req in test * Remove `deny_unknown_fields` from `Response` * Add test to verify unknown field results in valid request
-
Alexandru Vasile authored
Signed-off-by: Alexandru Vasile <[email protected]>
-
- Jun 21, 2022
-
-
Niklas Adolfsson authored
To include the bugfix for `tracing::enabled!` when `log` is enabled. Follow up on #722
-
Niklas Adolfsson authored
* feat(clients): add explicit unsubscribe API * add tests for unsubscribe * rephrase bad english
-
Igor Matuszewski authored
-
Niklas Adolfsson authored
* less verbose logging + tracing based on method name * add tracing per rpc call * fix nits * remove unsed feature * fix build * http make logging more human friendly * unify logging format * deps: make tracing hard dependency * fix tests * fix nit * fix build * fix nits * Update core/src/client/async_client/mod.rs * Update core/Cargo.toml * Update core/src/lib.rs
-
- Jun 14, 2022
-
-
Alexandru Vasile authored
* ws-server: Fix copyright for tests Signed-off-by: Alexandru Vasile <[email protected]> * rpc_module: Return a resource builder when subscribing Registering a subscription returns the subscription' callback wrapped into a `MethodResourcesBuilder` for resource limiting purposes. Signed-off-by: Alexandru Vasile <[email protected]> * tests: Fix `register_subscription` tests Signed-off-by: Alexandru Vasile <[email protected]> * server: Drop `ResourceGuard` with `SubscriptionSink` for resource limit Signed-off-by: Alexandru Vasile <[email protected]> * tests: Check resource limits for subscription Signed-off-by: Alexandru Vasile <[email protected]> * proc-macros: Render resource limits for subscription macro Signed-off-by: Alexandru Vasile <[email protected]> * tests: Extend subscription limiting test via macro generation Signed-off-by: Alexandru Vasile <[email protected]> * core: Check if the `unsubscribe` method was already inserted Signed-off-by: Alexandru Vasile <[email protected]> * tests: Fix unsupported fields for subscriptions Signed-off-by: Alexandru Vasile <[email protected]> * server: Verify subscription methods before registering them Signed-off-by: Alexandru Vasile <[email protected]> * Update test comment for subscription limiting Signed-off-by: Alexandru Vasile <[email protected]> * Modify tests comments Signed-off-by: Alexandru Vasile <[email protected]>
-
Niklas Adolfsson authored
* chore(release): v0.14.0 * Update CHANGELOG.md * Update CHANGELOG.md
-
- Jun 13, 2022
-
-
Niklas Adolfsson authored
* fix(servers): more descriptive errors calls fail Closing #775 * fix tests * rename constants * address grumbles
-
Niklas Adolfsson authored
* initial rewrite to re-use HTTP access control * clean things up * Update core/src/error.rs * Update core/src/error.rs * allow origin: add back removed Display impl * cleanup again * Update http-server/src/lib.rs * Update examples/examples/cors_server.rs * Update core/src/server/access_control/mod.rs Co-authored-by: Tarik Gul <[email protected]> * Update http-server/src/server.rs Co-authored-by: Tarik Gul <[email protected]> * fix bad comment * remove todo * fix grumbles * more grumbles * rename and document a bit * remove `Access-Control-Allow-Origin` in whitelist * fix nit: pub(super) * fix bad naming Co-authored-by: Tarik Gul <[email protected]>
-
Niklas Adolfsson authored
-
- Jun 03, 2022
-
-
Alexandru Vasile authored
* ws-server: Submit ping regardless of WS messages Signed-off-by: Alexandru Vasile <[email protected]> * use tokio_stream::IntervalStream for less boxing Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Jun 01, 2022
-
-
Alexandru Vasile authored
* ws: Implement ping for `TransportSenderT` trait Signed-off-by: Alexandru Vasile <[email protected]> * ws/client: Receive pong frames Signed-off-by: Alexandru Vasile <[email protected]> * core/client: Use `select!` macro for the background task Signed-off-by: Alexandru Vasile <[email protected]> * client: Propagate ping interval to background task Signed-off-by: Alexandru Vasile <[email protected]> * async_client: Submit ping requests Signed-off-by: Alexandru Vasile <[email protected]> * async_client: Handle pong replies Signed-off-by: Alexandru Vasile <[email protected]> * client: Handle frontend messages to dedicated fn Signed-off-by: Alexandru Vasile <[email protected]> * client: Handle backend messages in dedicated fn Signed-off-by: Alexandru Vasile <[email protected]> * client: Add terminated fuse for opt-out pings Signed-off-by: Alexandru Vasile <[email protected]> * Set opt-out behavior for client pings Signed-off-by: Alexandru Vasile <[email protected]> * client: Move imports Signed-off-by: Alexandru Vasile <[email protected]> * client: Handle handle_frontend_messages errors Signed-off-by: Alexandru Vasile <[email protected]> * client: Add custom error related to byteslice conversions Signed-off-by: Alexandru Vasile <[email protected]> * client: Modify `send_ping` to send empty slices Signed-off-by: Alexandru Vasile <[email protected]> * Fix `cargo hack check` and use `select_biased` Signed-off-by: Alexandru Vasile <[email protected]> * Handle sending pings with lowest priority Signed-off-by: Alexandru Vasile <[email protected]> * core: Add proper number of params to `background_task` Signed-off-by: Alexandru Vasile <[email protected]> * Fix wasm client Signed-off-by: Alexandru Vasile <[email protected]> * Handle raw bytes and string received messages Signed-off-by: Alexandru Vasile <[email protected]> * Fix Cargo.toml feature Signed-off-by: Alexandru Vasile <[email protected]> * Panic when empty slice does not fit into `ByteSlice125` Signed-off-by: Alexandru Vasile <[email protected]> * wasm: Add operation not supported for pings Signed-off-by: Alexandru Vasile <[email protected]> * Rename `ReceivedMessage` from Data to Text Signed-off-by: Alexandru Vasile <[email protected]> * Rename test variable Signed-off-by: Alexandru Vasile <[email protected]> * Add documentation Signed-off-by: Alexandru Vasile <[email protected]> * client: Use `future::select` for cancel safety Signed-off-by: Alexandru Vasile <[email protected]> * client: Remove `pong` handling logic Signed-off-by: Alexandru Vasile <[email protected]> * client: Update ping documentation Signed-off-by: Alexandru Vasile <[email protected]> * Update core/src/client/async_client/mod.rs Co-authored-by: Tarik Gul <[email protected]> * Update core/src/client/async_client/mod.rs Co-authored-by: Tarik Gul <[email protected]> * Update core/src/client/async_client/mod.rs Co-authored-by: Tarik Gul <[email protected]> * Update core/src/client/async_client/mod.rs Co-authored-by: Tarik Gul <[email protected]> * Update core/src/client/async_client/mod.rs Co-authored-by: Tarik Gul <[email protected]> * Update core/Cargo.toml Co-authored-by: Niklas Adolfsson <[email protected]> * Update core/Cargo.toml Co-authored-by: Niklas Adolfsson <[email protected]> * logs: Keep debug log for submitting `Ping` frames Signed-off-by: Alexandru Vasile <[email protected]> * Print debug logs when receiving `Pong` frames Signed-off-by: Alexandru Vasile <[email protected]> * Update core/src/client/async_client/mod.rs Co-authored-by: Tarik Gul <[email protected]> Co-authored-by: Niklas Adolfsson <[email protected]>
-