- Dec 21, 2021
-
-
Alexander Samusev authored
-
Niklas Adolfsson authored
* PoC * introduce IdProvider trait * revert Cow stuff * Update ws-server/src/server.rs * fix tests * cargo fmt * use 'static lifetime in SubscriptionId * fix tests * fmt * make tests compile again * fix tests * Fix tests * Move IdProvider impls to own module * move `sub-id gen` types to `core` * fix doc links * make rand non-optional dep * feature gate: id provider Co-authored-by: David Palm <[email protected]>
-
David authored
* Upgrade `tracing-subscriber` * One more
-
- Dec 20, 2021
-
-
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 <[email protected]> * Update client/core-client/src/lib.rs Co-authored-by: David <[email protected]> * cargo fmt * Update client/ws-client/src/lib.rs Co-authored-by: David <[email protected]> * Update client/ws-client/src/lib.rs Co-authored-by: David <[email protected]> * 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 <[email protected]>
-
- Dec 17, 2021
-
-
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 <[email protected]> * fmt * Feature gate the Client trait * Move `Client` traits to `client` module Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Dec 15, 2021
-
-
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 <[email protected]> * fix nits * more grumbles * make rust stable happy * SubscriptionClosed: add deny unknown fields Co-authored-by: David <[email protected]>
-
- Dec 14, 2021
-
-
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 <[email protected]> * Use proper span * Use proper span (2) Co-authored-by: Maciej Hirsz <[email protected]>
-
Niklas Adolfsson authored
* [http client]: re-export transport types. Closing #605 * cargo fmt
-
Alexander Samusev authored
-
- Dec 13, 2021
-
-
Alexander Samusev authored
* Add job to publish benchmark results to gh-pages * Allow publish to gh-pages fail * remove force push
-
- Dec 10, 2021
-
-
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 <[email protected]> * add rustdoc examples * fix tabs * no more tabs in docs * address grumbles * Update utils/src/server/rpc_module.rs Co-authored-by: David <[email protected]>
-
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
-
- Dec 09, 2021
-
-
David authored
* Remove usage of the `palaver` crate in an example * fmt
-
Niklas Adolfsson authored
-
- Dec 08, 2021
-
-
Niklas Adolfsson authored
-
- Dec 07, 2021
-
-
Niklas Adolfsson authored
* deps: use `FxHashMap` instead `fnv` * fmt
-
- Dec 06, 2021
-
-
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 <[email protected]> * Update types/src/v2/response.rs Co-authored-by: David <[email protected]> * grumbles * fix rustdoc links * Update utils/src/server/rpc_module.rs Co-authored-by: David <[email protected]> * Update utils/src/server/rpc_module.rs Co-authored-by: David <[email protected]> Co-authored-by: David <[email protected]>
-
- Dec 02, 2021
-
-
Alexander Samusev authored
* add badge to readme * first version of pipeline * Update .gitlab-ci.yml Co-authored-by: Niklas Adolfsson <[email protected]> * 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 <[email protected]> * Update .gitlab-ci.yml Co-authored-by: Niklas Adolfsson <[email protected]> * 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 <[email protected]> * 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 <[email protected]> Co-authored-by: David <[email protected]> Co-authored-by: Denis P <[email protected]> Co-authored-by: Denis Pisarev <[email protected]>
-
- Dec 01, 2021
-
-
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 <[email protected]> * 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 <[email protected]> * Update ws-server/src/server.rs Co-authored-by: Maciej Hirsz <[email protected]> * Update ws-server/src/server.rs Co-authored-by: Maciej Hirsz <[email protected]> Co-authored-by: Maciej Hirsz <[email protected]> * 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 <[email protected]> * Update examples/Cargo.toml Co-authored-by: Maciej Hirsz <[email protected]> Co-authored-by: Maciej Hirsz <[email protected]> * 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 <[email protected]>
-
- Nov 30, 2021
-
-
Niklas Adolfsson authored
* fix(types): use `Cow` for deserializing `str` * use ToString
-
- Nov 29, 2021
-
-
Niklas Adolfsson authored
-
- Nov 26, 2021
-
-
Niklas Adolfsson authored
-
- Nov 25, 2021
-
-
Niklas Adolfsson authored
* fix rpc error: support unquoted strings * Update types/src/v2/error.rs Co-authored-by: Maciej Hirsz <[email protected]> Co-authored-by: Maciej Hirsz <[email protected]>
-
Sergejs Kostjucenko authored
* Add CODEOWNERS file * Fix typo * Add tools-team as main codeowner
-
- Nov 24, 2021
-
-
David authored
* Bump version –> 0.5 Fix try-build tests * Changelog * Update CHANGELOG.md Co-authored-by: Niklas Adolfsson <[email protected]> * Update CHANGELOG.md Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Nov 23, 2021
-
-
Niklas Adolfsson authored
-
- Nov 22, 2021
-
-
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] <[email protected]> * make it work Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Nov 21, 2021
-
-
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.
-
- Nov 19, 2021
-
-
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 <[email protected]> * Update proc-macros/src/render_server.rs Co-authored-by: David <[email protected]> * Update proc-macros/src/rpc_macro.rs Co-authored-by: David <[email protected]> * Update proc-macros/src/rpc_macro.rs Co-authored-by: David <[email protected]> * Update utils/src/server/rpc_module.rs Co-authored-by: David <[email protected]> * grumbles * fix long lines * Update utils/src/server/rpc_module.rs Co-authored-by: David <[email protected]> * Update utils/src/server/rpc_module.rs Co-authored-by: David <[email protected]> * Update proc-macros/src/rpc_macro.rs Co-authored-by: David <[email protected]> * Update proc-macros/src/render_server.rs Co-authored-by: David <[email protected]> * Update proc-macros/src/render_server.rs Co-authored-by: David <[email protected]> * more grumbles Co-authored-by: Maciej Hirsz <[email protected]> Co-authored-by: David <[email protected]>
-
- Nov 18, 2021
-
-
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
-
- Nov 17, 2021
-
-
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
-
- Nov 11, 2021
-
-
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 <[email protected]> * Naming grumbles Co-authored-by: David <[email protected]>
-