- 20 Dec, 2021 1 commit
-
-
Niklas Adolfsson authored
* extract ws client to async client * bring back jsonrpsee-ws-client crate * new crate core client * add missing file * jsonrpsee crate: add core client * rexport core client * more re-exports * downgrade trait bounds * update version * fix nits * send close reason * Update types/src/traits.rs * move 'TEN_MB_CONST' to core * Update client/core-client/Cargo.toml Co-authored-by:
David <dvdplm@gmail.com> * Update client/core-client/src/lib.rs Co-authored-by:
David <dvdplm@gmail.com> * cargo fmt * Update client/ws-client/src/lib.rs Co-authored-by:
David <dvdplm@gmail.com> * Update client/ws-client/src/lib.rs Co-authored-by:
David <dvdplm@gmail.com> * move `async-client` core The `async-client` is hidden behind a new feature flag `async-client` because it brings in additional dependecies such as tokio rt. * fix docs * add example how to use "core client" * fix build * Update http-server/Cargo.toml * Update client/transport/Cargo.toml Co-authored-by:
David <dvdplm@gmail.com>
-
- 17 Dec, 2021 1 commit
-
-
Maciej Hirsz authored
* Nuke V2 * fmt * Formatting and imports * Updated benches * Fix doc comment link * Brace imports in ws-server * Reworking imports * std first * fmt * std on top * Update to match changed line numbers * Rename jsonrpsee_utils -> jsonrpsee_core * Migrating things types -> core * RpcError -> ErrorResponse * Merge types::client into core::client * Continued move types -> core * Removing features to make checks pass * Move rpc_module tests to tests crate * Fixed doc comment links * Add futures-util dependency for client * Remove dead code Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * fmt * Feature gate the Client trait * Move `Client` traits to `client` module Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
- 15 Dec, 2021 2 commits
-
-
Maciej Hirsz authored
-
Niklas Adolfsson authored
* refactor `SubscriptionClosed` I noticed that we "trying" to sending "close messages" on subscriptions that already has been terminated by the client which is unnecessary. Moreover, this introduces `fn is_closed` to check whether a given channel is closed without having to send an actual message on the channel. * cargo fmt * Update types/src/error.rs Co-authored-by:
David <dvdplm@gmail.com> * fix nits * more grumbles * make rust stable happy * SubscriptionClosed: add deny unknown fields Co-authored-by:
David <dvdplm@gmail.com>
-
- 14 Dec, 2021 3 commits
-
-
David authored
* Better error messages for method arguments ignored with a `_` Relates to #609 * Fix typo * typo 2 * Update proc-macros/src/rpc_macro.rs Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> * Use proper span * Use proper span (2) Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com>
-
Niklas Adolfsson authored
* [http client]: re-export transport types. Closing #605 * cargo fmt
-
Alexander Samusev authored
-
- 13 Dec, 2021 1 commit
-
-
Alexander Samusev authored
* Add job to publish benchmark results to gh-pages * Allow publish to gh-pages fail * remove force push
-
- 10 Dec, 2021 4 commits
-
-
Niklas Adolfsson authored
* rpc module: refactor calls/subs without a server * Update utils/src/server/rpc_module.rs * Update utils/src/server/rpc_module.rs * Update utils/src/server/rpc_module.rs * rpc module: add raw_json_requests + rename test_subscribe * Update utils/src/server/rpc_module.rs Co-authored-by:
David <dvdplm@gmail.com> * add rustdoc examples * fix tabs * no more tabs in docs * address grumbles * Update utils/src/server/rpc_module.rs Co-authored-by:
David <dvdplm@gmail.com>
-
James Wilson authored
* get the tests passing * cargo fmt * tweak comment wording * point to StreamExt in the next() method impl just so that people know to import it if desired * ignore clippy lint on next() Iterator-like method * Fix an example * actually, unwrap instead of transpose
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
* ci: remove GHA daily benchmark * update README
-
- 09 Dec, 2021 2 commits
-
-
David authored
* Remove usage of the `palaver` crate in an example * fmt
-
Niklas Adolfsson authored
-
- 08 Dec, 2021 1 commit
-
-
Niklas Adolfsson authored
-
- 07 Dec, 2021 1 commit
-
-
Niklas Adolfsson authored
* deps: use `FxHashMap` instead `fnv` * fmt
-
- 06 Dec, 2021 2 commits
-
-
Niklas Adolfsson authored
* clients: introduce tls feature flag * Update tests/tests/integration_tests.rs * fix: don't rebuild tls connector of every connect * fix tests + remove url dep * fix tests again
-
Niklas Adolfsson authored
* rpc module: add `call_and_subscribe` * Update utils/src/server/rpc_module.rs Co-authored-by:
David <dvdplm@gmail.com> * Update types/src/v2/response.rs Co-authored-by:
David <dvdplm@gmail.com> * grumbles * fix rustdoc links * Update utils/src/server/rpc_module.rs Co-authored-by:
David <dvdplm@gmail.com> * Update utils/src/server/rpc_module.rs Co-authored-by:
David <dvdplm@gmail.com> Co-authored-by:
David <dvdplm@gmail.com>
-
- 02 Dec, 2021 1 commit
-
-
Alexander Samusev authored
* add badge to readme * first version of pipeline * Update .gitlab-ci.yml Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * add pre-cache script * fmt and clippy stable * add check and test * remove output text file from bench * Update scripts/ci/pre_cache.sh Co-authored-by:
David <dvdplm@gmail.com> * Update .gitlab-ci.yml Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * small fix * fix test and schedule * CI: verbose is a surplus * CI: separately check rustdoc linx * fix refs * add bench to gh-pages * fix refs * fix benchmarks * added vault to ci * fix vars * comment bench * fix benches name * added script to push benchmark results to VM * make script executable * change bench psuh executor * changed benchmark task to run on a dedicated node pool * change prometheus metric name for benchmarks * send 2 metrics with benchmark results * disable non-schedule jobs from schedule run * empty commit for benchmark test * change metric name * empty commit for benchmark test * empty commit for benchmark test * add cirunner label to vm metric * split vm metric to 2 metrics * change runner description to runner tag in ci scripts * add pass runner tags from benchmark to publish job * change runner tag to runner description * add debug message * empty commit for test * empty commit for test * Update .scripts/ci/push_bench_results.sh Co-authored-by:
Denis Pisarev <17856421+TriplEight@users.noreply.github.com> * add defaults, remove dups, change ci image for publish-bench * remove pre_cache.sh * move interruptible to defaults * add issue to fixme comment Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> Co-authored-by:
David <dvdplm@gmail.com> Co-authored-by:
Denis P <denis.pisarev@parity.io> Co-authored-by:
Denis Pisarev <17856421+TriplEight@users.noreply.github.com>
-
- 01 Dec, 2021 3 commits
-
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
-
Maciej Hirsz authored
* Squashed MethodSink * Middleware WIP * Passing all the information through * Unnecessary `false` * Apply suggestions from code review Co-authored-by:
David <dvdplm@gmail.com> * Add a setter for middleware (#577) * Fix try-build tests * Add a middleware setter and an example * Actually add the example * Grumbles * Use an atomic * Set middleware with a constructor instead * Resolve a todo * Update ws-server/src/server.rs Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> * Update ws-server/src/server.rs Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> * Update ws-server/src/server.rs Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> * Middleware::on_response for batches * Middleware in HTTP * fmt * Server builder for HTTP * Use actual time in the example * HTTP example * Middleware to capture method not found calls * An example of adding multiple middlewares. (#581) * Add an example of adding multiple middlewares. * Update examples/multi-middleware.rs Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> * Update examples/Cargo.toml Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> * Move `Middleware` to jsonrpsee-types (#582) * Move `Middleware` to jsonrpsee-types * Move Middleware trait to jsonrpsee-types * Add some docs. * Link middleware to `with_middleware` methods in docs * Doctests * Doc comment fixed * Clean up a TODO * Switch back to `set_middleware` * fmt * Tests * Add `on_connect` and `on_disconnect` * Add note to future selves Co-authored-by:
David <dvdplm@gmail.com>
-
- 30 Nov, 2021 1 commit
-
-
Niklas Adolfsson authored
* fix(types): use `Cow` for deserializing `str` * use ToString
-
- 29 Nov, 2021 1 commit
-
-
Niklas Adolfsson authored
-
- 26 Nov, 2021 1 commit
-
-
Niklas Adolfsson authored
-
- 25 Nov, 2021 2 commits
-
-
Niklas Adolfsson authored
* fix rpc error: support unquoted strings * Update types/src/v2/error.rs Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com>
-
Sergejs Kostjucenko authored
* Add CODEOWNERS file * Fix typo * Add tools-team as main codeowner
-
- 24 Nov, 2021 1 commit
-
-
David authored
* Bump version –> 0.5 Fix try-build tests * Changelog * Update CHANGELOG.md Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Update CHANGELOG.md Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
- 23 Nov, 2021 1 commit
-
-
Niklas Adolfsson authored
-
- 22 Nov, 2021 1 commit
-
-
dependabot[bot] authored
* Update hyper-rustls requirement from 0.22 to 0.23 Updates the requirements on [hyper-rustls](https://github.com/ctz/hyper-rustls) to permit the latest version. - [Release notes](https://github.com/ctz/hyper-rustls/releases) - [Commits](https://github.com/ctz/hyper-rustls/compare/v/0.22.0...v/0.23.0 ) --- updated-dependencies: - dependency-name: hyper-rustls dependency-type: direct:production ... Signed-off-by:
dependabot[bot] <support@github.com> * make it work Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
- 21 Nov, 2021 1 commit
-
-
Alexandru Vasile authored
* proc-macros: Fix documentation typo of `rpc_identifier` * proc-macros: Support deprecated methods for rpc client (#564) Calling a deprecated method of the RPC client should warn the user at compile-time. Extract the `#[deprecated]` macro as is while parsing the RpcMethod, and pass through the macro to the RPC client rendering. * tests/ui: Check deprecated method for rpc client (#564) To ensure that the test will fail during compilation, warnings are denied. Check that the deprecate macro will generate warnings just for the methods that are utilized.
-
- 19 Nov, 2021 1 commit
-
-
Niklas Adolfsson authored
* feat: override `method` subscription notif * Arrow syntax for overwrites (#569) * check that unique notifs are used * check that custom sub name is unique * cargo fmt * address grumbles * Update proc-macros/src/rpc_macro.rs * commit added tests * Update proc-macros/src/render_server.rs Co-authored-by:
David <dvdplm@gmail.com> * Update proc-macros/src/render_server.rs Co-authored-by:
David <dvdplm@gmail.com> * Update proc-macros/src/rpc_macro.rs Co-authored-by:
David <dvdplm@gmail.com> * Update proc-macros/src/rpc_macro.rs Co-authored-by:
David <dvdplm@gmail.com> * Update utils/src/server/rpc_module.rs Co-authored-by:
David <dvdplm@gmail.com> * grumbles * fix long lines * Update utils/src/server/rpc_module.rs Co-authored-by:
David <dvdplm@gmail.com> * Update utils/src/server/rpc_module.rs Co-authored-by:
David <dvdplm@gmail.com> * Update proc-macros/src/rpc_macro.rs Co-authored-by:
David <dvdplm@gmail.com> * Update proc-macros/src/render_server.rs Co-authored-by:
David <dvdplm@gmail.com> * Update proc-macros/src/render_server.rs Co-authored-by:
David <dvdplm@gmail.com> * more grumbles Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> Co-authored-by:
David <dvdplm@gmail.com>
-
- 18 Nov, 2021 2 commits
-
-
Niklas Adolfsson authored
* fix(TestSubscription): use None for closed. * add test for subscription close
-
Niklas Adolfsson authored
* rpc module: report error on invalid subscription * fix tests * remove some boiler plate * remove unused code
-
- 17 Nov, 2021 2 commits
-
-
David authored
Closes https://github.com/paritytech/jsonrpsee/issues/448 This PR adds an implementation for `SubscriptionClient` to the `HttpClient` struct, which makes it possible for http clients to use macro-generated RPC servers. If an http client tries to set up a subscription it will fail with a `HttpNotImplemented` error.
-
Niklas Adolfsson authored
* fix: enable several sockaddress when starting servers * nits * more verbose asserts in rustdoc tests * fix tests * fix tests again
-
- 11 Nov, 2021 3 commits
-
-
Maciej Hirsz authored
* Fix some clippy issues * Add an interval to periodically wake the SelectDriver Waker * Apply suggestions from code review Co-authored-by:
David <dvdplm@gmail.com> * Naming grumbles Co-authored-by:
David <dvdplm@gmail.com>
-
Niklas Adolfsson authored
* ws server: don't kill connection max limit exceeds * Update ws-server/src/server.rs * actually use max size in soketto * rewrite me * improve logs * use soketto fix * rewrite me * fix nit * revert unintentional change * use soketto 0.7.1 * fix logger * Update ws-server/src/server.rs Co-authored-by:
David <dvdplm@gmail.com> * Update ws-server/src/server.rs Co-authored-by:
David <dvdplm@gmail.com> * Update ws-server/src/server.rs Co-authored-by:
David <dvdplm@gmail.com> * Update ws-server/src/server.rs Co-authored-by:
David <dvdplm@gmail.com> * Update ws-server/src/server.rs Co-authored-by:
David <dvdplm@gmail.com> * fix build * reject too large response * fix some DRY code * feat: bounded serializer for RpcModule * Update utils/src/server/helpers.rs Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> * Update utils/src/server/helpers.rs Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> * address grumbles: safety and other nits * address grumbles: MaxCallSize on closures instead * Update utils/src/server/helpers.rs Co-authored-by:
David <dvdplm@gmail.com> * use max response size on errors too * Revert "use max response size on errors too" This reverts commit 3b07e42d257b2eebae311b92b7f72594d94d5f87. * include max limit in error response Co-authored-by:
David <dvdplm@gmail.com> Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com>
-
Maciej Hirsz authored
* Array syntax aliases * fmt
-
- 10 Nov, 2021 1 commit
-
-
Maciej Hirsz authored
-