- 20 Apr, 2021 1 commit
-
-
Niklas Adolfsson authored
* rewrite me * v2 * PoC works without batch request * remove `PartialEq` bounds * add naive benches types * misc * remove useless lifetime * [ws client]: move request ID generation to client * make tests compile again * [client transport]: kill leaky abstractions. * [http client transport]: minor changes in the API. * [ws client]: fix batch requests. * fix nits * [ws client]: generate two request IDs for subscrib * fix tests * remove unused types + less alloc for params. * fix nits * more tweaks. * remove unused code * fix more nits * remove unused legacy types * reorg types_v2 mod * port macros to new types * fix tests again; more jsonvalue * [proc macros]: bring back impl Into for params. * fix build * [proc macros]: make it work for external crates. * [types]: remove weird From<Option<T>> to impl. * cleanup again * [examples]: remove unused async-std dep * Update types/src/v2/mod.rs * [types]: remove unsed dep smallvec * rewrite me * [types]: error code impl ser/deser Manual implementation of serialize/deserialize to get rid of duplicated message string * [types v2]: re-org with explicit mods * fix faulty test * add missed files * [ws client]: req_manager reserve unsubscribe slot. * simplify test code * add tracking issue for TODO * remove unused deps
-
- 19 Apr, 2021 1 commit
-
-
Svyatoslav Nikolsky authored
* reclaim request id for unsubscribe requests * fmt * cargo fmt * [tests]: ignore https and wss requests. Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
- 16 Apr, 2021 1 commit
-
-
Niklas Adolfsson authored
* [deps futures]: remove unused features I got annoyed that we bring in `futures-executor` as a dependency however `soketto` does this too, so doesn't help for the `WS` stuff. * cargo fmt
-
- 15 Apr, 2021 1 commit
-
-
Niklas Adolfsson authored
* add wrapper crate * add jsonrpsee crate back * [jsonrpsee]: feature gate modules * [proc macros]: support crate renaming of `types` * Update proc-macros/src/lib.rs Co-authored-by:
David <dvdplm@gmail.com> * re-export types * [proc macros]: remove unused features * Update proc-macros/Cargo.toml * fix bad merge Co-authored-by:
David <dvdplm@gmail.com>
-
- 13 Apr, 2021 2 commits
-
-
Caio authored
-
dependabot[bot] authored
Bumps [actions/cache](https://github.com/actions/cache) from v2.1.4 to v2.1.5. - [Release notes](https://github.com/actions/cache/releases) - [Commits](https://github.com/actions/cache/compare/v2.1.4...1a9e2138d905efd099035b49d8b7a3888c653ca8 ) Signed-off-by:
dependabot[bot] <support@github.com> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- 12 Apr, 2021 4 commits
-
-
David authored
* Apease Clippy and some renames * Last clippy warning * fmt Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
Niklas Adolfsson authored
* [utils]: use futures mpsc Use futures::channel::mpsc as it's already brought in as dependency and to avoid bring in tokio sync as an additional dependency. * remove unused deps/code * fix nit * [utils]: future mpsc works without alloc. * [http server]: future mpsc works without alloc.
-
Niklas Adolfsson authored
-
dependabot[bot] authored
* Update webpki requirement from 0.21 to 0.22 Updates the requirements on [webpki](https://github.com/briansmith/webpki) to permit the latest version. - [Release notes](https://github.com/briansmith/webpki/releases) - [Commits](https://github.com/briansmith/webpki/commits ) Signed-off-by:
dependabot[bot] <support@github.com> * update webpki Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
- 02 Apr, 2021 1 commit
-
-
Niklas Adolfsson authored
* prep for 0.2.0-alpha.4 * [http server]: reuse port unix only * skip `reuse_port` on socket
-
- 01 Apr, 2021 2 commits
-
-
Niklas Adolfsson authored
* [ws client]: client builder for uniform API * Update ws-client/src/transport.rs * Update ws-client/src/client.rs * Update ws-client/src/client.rs * Update ws-client/src/client.rs
-
Niklas Adolfsson authored
* refactor benches * start * fix build: enable `raw value` feature serde_json * start * port it * make tests compile * fix bench * fix bench * introduce builder pattern * tweaks * remove unused code * cleanup * [http server]: configure tcp socket manually. The major reason is to provide a uniform API with the WebSocket server to return the local address. * remove unused deps * [examples]: remove needless sleep * chore: add docs and refactor noise. * Update types/src/jsonrpc/error.rs * http server use constants
-
- 31 Mar, 2021 5 commits
-
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
* feat(http client): batch requests * fix(http batch request): request in any order. * Update src/types/jsonrpc/id.rs * tests(batch out-of-order): make it less confusing. * fix nit: `cloned` -> `copied` * fix bad merge * [client]: batch request generic response * wait with impl * [ws client]: add template for batch requests * remove jsonvalue * naive impl * fix make it work, The implemenation is quite inefficient because the responses might be unordered. Currently, a "digest" of a BTreeSet is stored to sort the requestIDs and don't have to try all combinations of requestIDs in the response. * fix nits * error handling * fix nits * more nits * use error msg pattern * add batch requests to client trait Keep it simple by require `Vec<(Method, Params)>` could be improved. * address review comments: use swap_remove Replace read values with `Vec::swap_remove` instead inserting dummy value. The reason is that `Vec::remove` is O(n) * address review grumbles: batch trait bound Default * don't be clever * [http client]: faster lookup for batch request. * fix: distguish request_id and batch_id * thanks clippy * fix: clarify bad response with a separate error * fix tests * add issue link to todo * Update types/src/error.rs Co-authored-by:
David <dvdplm@gmail.com> Co-authored-by:
David <dvdplm@gmail.com>
-
Niklas Adolfsson authored
* refactor benches * remove async-std * add new file * fix nits
-
Niklas Adolfsson authored
* docs: make readme more descriptive * Update README.md * Update README.md Co-authored-by:
David <dvdplm@gmail.com> * Update README.md Co-authored-by:
David <dvdplm@gmail.com> * Add more projects * Update README.md * Update README.md Co-authored-by:
David <dvdplm@gmail.com>
-
Niklas Adolfsson authored
Request ID is just a counter and doesn't require any synchronization besides an atomic value.
-
- 17 Mar, 2021 1 commit
-
-
Niklas Adolfsson authored
-
- 16 Mar, 2021 2 commits
-
-
Niklas Adolfsson authored
* [ws client]: unsubscribe directly When a subscription is dropped because of `max_notifs_per_subscription` is exceeded the client didn't send an `unsubcribe request` until the subscription was dropped which this commit fixes. This causes the server to still send messages to the subscription and the client would get lots of error messages `InvalidRequestId` * address grumbles * fix: rephrase and not use request everywhere.
-
Greg Hill authored
* add shutdown receiver to ws-client Signed-off-by:
Gregory Hill <gregorydhill@outlook.com> * ws-client: no clone, use AtomicBool for shutdown signal Signed-off-by:
Gregory Hill <gregorydhill@outlook.com> * store not swap Signed-off-by:
Gregory Hill <gregorydhill@outlook.com> * doesn't need to be async, update doc comment Signed-off-by:
Gregory Hill <gregorydhill@outlook.com> * address review: use existing backgroud channel Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
- 15 Mar, 2021 1 commit
-
-
Niklas Adolfsson authored
* fix clippy warns * [benches]: migrate to benchmark_group * cargo fmt * fix review comment
-
- 12 Mar, 2021 4 commits
-
-
Greg Hill authored
* ignore front-end receiver close on process_response Signed-off-by:
Gregory Hill <gregorydhill@outlook.com> * simplify errors on sending to front * fix import nit Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
Niklas Adolfsson authored
* Revert "[http client]: switch to surf instead of hyper (#204)" This reverts commit ce1625b7 . * feat(http client): HTTPS support * [deps]: hyper-rustls * fix nit * more ugly conditional compilation * Update http-client/src/transport.rs * Update http-client/src/transport.rs * Update http-client/src/transport.rs Co-authored-by:
David <dvdplm@gmail.com> * Update http-client/src/transport.rs Co-authored-by:
David <dvdplm@gmail.com> * Update http-client/src/transport.rs Co-authored-by:
David <dvdplm@gmail.com> * [http client]: make `tls` not optional. * fix bad merge * simplify imports Co-authored-by:
David <dvdplm@gmail.com>
-
Niklas Adolfsson authored
* implement background error reporting * introduce new error variant * [ws client]: remove `Clone` Breaking change which removes the `Clone` on the `WsClient`. It's better that users explictly makes it clone if that's desired, for example by putting it in `Arc<Mutex>`. * fix build * Update ws-client/src/client.rs * remove unused arc * Update ws-client/src/client.rs Co-authored-by:
David <dvdplm@gmail.com> * Update ws-client/src/client.rs Co-authored-by:
David <dvdplm@gmail.com> * Update ws-client/src/client.rs Co-authored-by:
David <dvdplm@gmail.com> * fix rustdoc link Co-authored-by:
David <dvdplm@gmail.com>
-
Maciej Hirsz authored
* Squashed Module * RpcModule and RpcContextModule * Formatting * Add Default to RpcModule Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Fixed grumbles, made module imports explicit * Export the modules Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
- 09 Mar, 2021 2 commits
-
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
* [ws client]: register request ID for unsubscribe. Fixes #220 * refactor manager usage * restrict request ID to u8 * Update ws-client/src/tests.rs * rename `max_notifs_per_subscription_capacity` * Update tests/src/lib.rs * fix nits * address grumbles: vecdeq for free slots * resolve todo * [request manager]: add test for max limit. * Update ws-client/src/client.rs Co-authored-by:
David <dvdplm@gmail.com> * fix stack overflow * grumbles: MaxMemory -> MaxSlots * address grumbles: stray capacity on configs * Update types/src/client.rs Co-authored-by:
David <dvdplm@gmail.com> * grumbles: stray confusing docs * grumbles: doc nits * grumbles: remove nested if let Co-authored-by:
David <dvdplm@gmail.com>
-
- 05 Mar, 2021 1 commit
-
-
Niklas Adolfsson authored
The generated enum variants is hack to bound the type params to the enum itself. Thus, the enum patterns are never used and will always generated warnings so this commit adds `unused` on all the variants.
-
- 04 Mar, 2021 1 commit
-
-
Niklas Adolfsson authored
* prep for client release. * fix nits * add changelogs * Update http-client/src/lib.rs Co-authored-by:
David <dvdplm@gmail.com> * address grumbles: one changelog * 0.2.0-alpha * revert rust2018 lint Co-authored-by:
David <dvdplm@gmail.com>
-
- 02 Mar, 2021 1 commit
-
-
Niklas Adolfsson authored
* draft: client trait sketch... * use async_trait instead of `Box<Future>` * refactor client trait * [types]: shared client types. * integrate with `jsonrpsee_proc_macros::rpc_api` * Update proc-macros/src/lib.rs * integrate with proc macros * fix: hacky support for generic types in proc macro * fix: make the examples work. * trait: error associated type * Update types/src/traits.rs * client trait: make object safe. Make the trait usable as a trait object i.e, `Box<dyn Trait>` * client trait: remove `Self::Sized` * add tests for proc macros. * fix build * fmt * [client trait]: remove unused associated error typ * [proc macros]: separate enum variant each return_t * add tracking issue to `TODO` * doc(client trait): improve documentation. * separate trait for subscribing client * add documentation * proc macros: remove debug impl * fix compile warns * address grumbles: remove fn process_response * Update types/src/client.rs Co-authored-by:
David <dvdplm@gmail.com> * Update types/src/client.rs Co-authored-by:
David <dvdplm@gmail.com> * Update types/src/client.rs Co-authored-by:
David <dvdplm@gmail.com> * Update types/src/client.rs Co-authored-by:
David <dvdplm@gmail.com> * Update types/src/client.rs Co-authored-by:
David <dvdplm@gmail.com> * remove old proc macro tests * address grumbles: shorter lines Co-authored-by:
David <dvdplm@gmail.com>
-
- 23 Feb, 2021 1 commit
-
-
Maciej Hirsz authored
* Re-apply changes * Fixed tests * 3 to go * Passing tests! * Fix formatting * Fix formatting in tests * Fixed examples * Bind listener when server starts * Formatting, disable deadlock test to check CI * Fixed deadlock test * Fix benches * Remove dead code * Restoring unit tests * Restored all unit tests * Missing unwraps Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Missing unwraps Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Typo :) Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Remove broken connections from subscriptions * Tweak tests * Add some doc comments Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
- 22 Feb, 2021 1 commit
-
-
Niklas Adolfsson authored
* [tests]: buffer deadlock Fix a bad merge changed to `request_channel_capacity` to `subscription_channel_capacity` https://github.com/paritytech/jsonrpsee/commit/7dc9435e225bcc1887a2532e830266d7b1ecd0af#diff-aeefe6b3d3f8b1b5248d6bb4c2888cf2d6802dbf82515f7b02b6a89a1400228fL188 * Update tests/src/lib.rs * fix build: `max_concurrent_requests_capacity`
-
- 18 Feb, 2021 1 commit
-
-
Niklas Adolfsson authored
* test(ws client): wss (TLS) * fix(ws client): bug replace target with host. * address review suggestions * tests: add tests for non-ascii URLs * refactor: impl TryFrom for WebSocketTransportBuild * fix nit: try to connect to all sockaddrs * document `Host type` * doc(ws client): default port. * remove helper function
-
- 15 Feb, 2021 1 commit
-
-
Niklas Adolfsson authored
* feat(http client): support tokio02 via hyper 0.13 * fix: address review suggestions. * [ci]: update to work again * deps(http client): remove unused hyper features * grumbles: replace \" with ` in compile_error!
-
- 12 Feb, 2021 1 commit
-
-
Niklas Adolfsson authored
This reverts commit ce1625b7.
-
- 11 Feb, 2021 1 commit
-
-
Niklas Adolfsson authored
-
- 10 Feb, 2021 1 commit
-
-
Niklas Adolfsson authored
* [http client] use surf instead of hyper * user exposed features * feature for surf middleware logging * feature flag WASM support * update ci * fix ci nit; install wasm32 * Update http-client/src/transport.rs Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com>
-
- 08 Feb, 2021 1 commit
-
-
dependabot[bot] authored
Bumps [actions/cache](https://github.com/actions/cache) from v2 to v2.1.4. - [Release notes](https://github.com/actions/cache/releases) - [Commits](https://github.com/actions/cache/compare/v2...26968a09c0ea4f3e233fdddbafd1166051a095f6 ) Signed-off-by:
dependabot[bot] <support@github.com> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- 02 Feb, 2021 1 commit
-
-
Niklas Adolfsson authored
* fix examples * [ws client]: transport use `max_payload_size` * fix nits * fix more nits * Update ws-client/src/client.rs * fix doc tests * [ws client]: all transport config configurable * Update ws-client/src/client.rs Co-authored-by:
David <dvdplm@gmail.com> * Update ws-client/src/manager.rs Co-authored-by:
David <dvdplm@gmail.com> * address grumbles * grumbles: WsDnsError -> WsHandshakeError * grumbles: remove needless clone * fix lint: remove explicit lifetime * fix nits: channel capacity + docs * clippy nits * clippy nits * fix grumbles: channel capacity 256 As Maciej pointed out the capacity is the number of messages (not bytes) and each message is 96 bytes. Thus, 256 * 96 = ~24kB which is reasonable default value. * Update ws-client/src/client.rs Co-authored-by:
David <dvdplm@gmail.com> * grumbles: docs Co-authored-by:
David <dvdplm@gmail.com>
-