jsonrpsee:31153ac771bb00bdd376130ebeb4fee53f1d0108 commits
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commits/31153ac771bb00bdd376130ebeb4fee53f1d0108
2021-04-20T14:02:07+02:00
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/31153ac771bb00bdd376130ebeb4fee53f1d0108
[client] use types v2 (less alloc) (#269)
2021-04-20T14:02:07+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* 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
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/de7b58a881512cd5ab8bbf16a56241ca808c7765
Reclaim request id for unsubscribe requests (#274)
2021-04-19T12:48:16+02:00
Svyatoslav Nikolsky
svyatonik@gmail.com
* reclaim request id for unsubscribe requests
* fmt
* cargo fmt
* [tests]: ignore https and wss requests.
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/3f2af26fb85b9843506505560d7831a4ecb3e373
[deps futures]: remove unused features (#272)
2021-04-16T19:08:27+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* [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
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/5fd1b9be879414b63107f96622435121539e55d0
add `jsonrpsee` root crate (#260)
2021-04-15T13:50:03+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* 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: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* re-export types
* [proc macros]: remove unused features
* Update proc-macros/Cargo.toml
* fix bad merge
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/e4c8da5083f587f2065f2270fb6fa1f4283a3836
[types] Remove unnecessary deps (#261)
2021-04-13T14:37:15+00:00
Caio
c410.f3r@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/fb7bd2dea74532bcc47d05532be50ee874efb830
Bump actions/cache from v2.1.4 to v2.1.5 (#270)
2021-04-13T09:49:16+02:00
dependabot[bot]
49699333+dependabot[bot]@users.noreply.github.com
Bumps [actions/cache](<a href="https://github.com/actions/cache" rel="nofollow noreferrer noopener" target="_blank">https://github.com/actions/cache</a>) from v2.1.4 to v2.1.5.
- [Release notes](<a href="https://github.com/actions/cache/releases" rel="nofollow noreferrer noopener" target="_blank">https://github.com/actions/cache/releases</a>)
- [Commits](<a href="https://github.com/actions/cache/compare/v2.1.4...1a9e2138d905efd099035b49d8b7a3888c653ca8" rel="nofollow noreferrer noopener" target="_blank">https://github.com/actions/cache/compare/v2.1.4...1a9e2138d905efd099035b49d8b7a3888c653ca8</a>
)
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:support@github.com" title="support@github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/61024896f291303615bcd4f7a0dcfb74?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:support@github.com" title="support@github.com">dependabot[bot]</a> <<a href="mailto:support@github.com" title="support@github.com">support@github.com</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:49699333+dependabot[bot]@users.noreply.github.com" title="49699333+dependabot[bot]@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/48ea49be76d0c68403a7f3df87e3487d?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:49699333+dependabot[bot]@users.noreply.github.com" title="49699333+dependabot[bot]@users.noreply.github.com">dependabot[bot]</a> <<a href="mailto:49699333+dependabot[bot]@users.noreply.github.com" title="49699333+dependabot[bot]@users.noreply.github.com">49699333+dependabot[bot]@users.noreply.github.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/2578728507db2013acbb50af4aaaa5a8ef26b7d2
Apease Clippy and some renames (#268)
2021-04-12T15:26:53+02:00
David
dvdplm@gmail.com
* Apease Clippy and some renames
* Last clippy warning
* fmt
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/495e0bb35f4fa175ec6abba7bbde5915ef3516ab
[utils]: use futures mpsc instead of tokio sync (#263)
2021-04-12T15:16:02+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* [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.
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/4316ec7d86e5a8630b1ac96ada527dc2d32fa35e
refactor utils crate (#264)
2021-04-12T11:37:42+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/375df1010546f71a0393c43555a69dbb52424850
Update webpki requirement from 0.21 to 0.22 (#267)
2021-04-12T11:33:15+00:00
dependabot[bot]
49699333+dependabot[bot]@users.noreply.github.com
* Update webpki requirement from 0.21 to 0.22
Updates the requirements on [webpki](<a href="https://github.com/briansmith/webpki" rel="nofollow noreferrer noopener" target="_blank">https://github.com/briansmith/webpki</a>) to permit the latest version.
- [Release notes](<a href="https://github.com/briansmith/webpki/releases" rel="nofollow noreferrer noopener" target="_blank">https://github.com/briansmith/webpki/releases</a>)
- [Commits](<a href="https://github.com/briansmith/webpki/commits" rel="nofollow noreferrer noopener" target="_blank">https://github.com/briansmith/webpki/commits</a>
)
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:support@github.com" title="support@github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/61024896f291303615bcd4f7a0dcfb74?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:support@github.com" title="support@github.com">dependabot[bot]</a> <<a href="mailto:support@github.com" title="support@github.com">support@github.com</a>></span>
* update webpki
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:49699333+dependabot[bot]@users.noreply.github.com" title="49699333+dependabot[bot]@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/48ea49be76d0c68403a7f3df87e3487d?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:49699333+dependabot[bot]@users.noreply.github.com" title="49699333+dependabot[bot]@users.noreply.github.com">dependabot[bot]</a> <<a href="mailto:49699333+dependabot[bot]@users.noreply.github.com" title="49699333+dependabot[bot]@users.noreply.github.com">49699333+dependabot[bot]@users.noreply.github.com</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/2f6c8e9e859d52948ab065012db32652673cda23
prep for 0.2.0-alpha.4 (#259)
2021-04-02T16:48:50+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* prep for 0.2.0-alpha.4
* [http server]: reuse port unix only
* skip `reuse_port` on socket
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/4c9ced8891a8cb5bbfcda54dc0050dc994dd019b
[ws client]: client builder for uniform API with the HTTP client (#258)
2021-04-01T18:43:56+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* [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
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/498997405f9fa78ca9086fca335d4947e60443cd
HTTP server refactor (#253)
2021-04-01T18:16:42+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* 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
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/7028dc4133dd870dadbe4618b27401606676c539
[ws client]: set tcp_nodelay on the socket. (#256)
2021-03-31T15:08:03+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/b8bd715d98f4d9eb8ec30b1f51a51e82d05f2c52
[client] batch requests (#216)
2021-03-31T14:53:50+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* 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: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/7abcb1e94a0037b744260fec4d2633701d9c1994
refactor benches (#247)
2021-03-31T14:53:27+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* refactor benches
* remove async-std
* add new file
* fix nits
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/3807e2763ccd189ea5e79144f85b447a890485be
docs: make readme more descriptive (#252)
2021-03-31T14:53:12+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* docs: make readme more descriptive
* Update README.md
* Update README.md
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update README.md
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Add more projects
* Update README.md
* Update README.md
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/75c3fe24637262e13d198718c4a8c626c7657e44
[http client]: request ID `Ordering::Relaxed` (#245)
2021-03-31T14:52:56+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
Request ID is just a counter and doesn't require any synchronization besides an atomic value.
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/23c44292584befdec43e5b878d5fc53cfbb8f211
release 0.2.0-alpha.3 (#246)
2021-03-17T15:30:05+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/b9ee6dcee0bae44026cd9eef1086e6e7ef63e3ae
[ws client]: unsubscribe direct when subscription is dropped. (#244)
2021-03-16T13:23:07+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* [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.
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/19d18bbc836fc13276ab8c428b955c9a8789329e
[ws client]: add function to detect if the background task is canceled. (#243)
2021-03-16T11:46:03+01:00
Greg Hill
gregorydhill@outlook.com
* add shutdown receiver to ws-client
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:gregorydhill@outlook.com" title="gregorydhill@outlook.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/710692d56e85a8329c4c317742d79ca4?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:gregorydhill@outlook.com" title="gregorydhill@outlook.com">Gregory Hill</a> <<a href="mailto:gregorydhill@outlook.com" title="gregorydhill@outlook.com">gregorydhill@outlook.com</a>></span>
* ws-client: no clone, use AtomicBool for shutdown signal
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:gregorydhill@outlook.com" title="gregorydhill@outlook.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/710692d56e85a8329c4c317742d79ca4?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:gregorydhill@outlook.com" title="gregorydhill@outlook.com">Gregory Hill</a> <<a href="mailto:gregorydhill@outlook.com" title="gregorydhill@outlook.com">gregorydhill@outlook.com</a>></span>
* store not swap
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:gregorydhill@outlook.com" title="gregorydhill@outlook.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/710692d56e85a8329c4c317742d79ca4?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:gregorydhill@outlook.com" title="gregorydhill@outlook.com">Gregory Hill</a> <<a href="mailto:gregorydhill@outlook.com" title="gregorydhill@outlook.com">gregorydhill@outlook.com</a>></span>
* doesn't need to be async, update doc comment
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:gregorydhill@outlook.com" title="gregorydhill@outlook.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/710692d56e85a8329c4c317742d79ca4?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:gregorydhill@outlook.com" title="gregorydhill@outlook.com">Gregory Hill</a> <<a href="mailto:gregorydhill@outlook.com" title="gregorydhill@outlook.com">gregorydhill@outlook.com</a>></span>
* address review: use existing backgroud channel
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/854002d6f1a1e505d5973d84855f8d3f062bf441
fix some compile warnings and clippy (#242)
2021-03-15T15:32:18+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* fix clippy warns
* [benches]: migrate to benchmark_group
* cargo fmt
* fix review comment
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/d1462c93c5233b49fae61c8132144ce3b0226d4d
[ws client]: Make requests and subscriptions cancel-safe (#237)
2021-03-12T22:09:26+01:00
Greg Hill
gregorydhill@outlook.com
* ignore front-end receiver close on process_response
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:gregorydhill@outlook.com" title="gregorydhill@outlook.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/710692d56e85a8329c4c317742d79ca4?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:gregorydhill@outlook.com" title="gregorydhill@outlook.com">Gregory Hill</a> <<a href="mailto:gregorydhill@outlook.com" title="gregorydhill@outlook.com">gregorydhill@outlook.com</a>></span>
* simplify errors on sending to front
* fix import nit
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/2efb6f795618d04cff42e947a4957804977085a9
[http client]: add HTTPS support (#210)
2021-03-12T13:07:45+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* Revert "[http client]: switch to surf instead of hyper (#204)"
This reverts commit <a href="/parity/mirrors/jsonrpsee/-/commit/ce1625b705d2e302fac30ff50bcbfe3352064742" data-reference-type="commit" data-original="ce1625b705d2e302fac30ff50bcbfe3352064742" data-link="false" data-link-reference="false" data-project="559" data-commit="ce1625b705d2e302fac30ff50bcbfe3352064742" data-container="body" data-placement="top" title="[http client]: switch to surf instead of hyper (#204)" class="gfm gfm-commit has-tooltip">ce1625b7</a>
.
* 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: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update http-client/src/transport.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update http-client/src/transport.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* [http client]: make `tls` not optional.
* fix bad merge
* simplify imports
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/e2b62bab91789edafc7d99cc656fc9cecb4dfac4
[ws client]: background error reporting to frontend (#234)
2021-03-12T11:39:05+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* 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: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update ws-client/src/client.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update ws-client/src/client.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* fix rustdoc link
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/7eac1f564444f75627a0788dbad9ac809f05bb4c
RpcModule and RpcContextModule (#224)
2021-03-12T09:35:28+00:00
Maciej Hirsz
1096222+maciejhirsz@users.noreply.github.com
* Squashed Module
* RpcModule and RpcContextModule
* Formatting
* Add Default to RpcModule
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
* Fixed grumbles, made module imports explicit
* Export the modules
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/cf2a5a7750baee0e1bc7693ec24e482fc162327d
prep 0.2.0-alpha.2 (#232)
2021-03-09T14:20:26+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/09e7a4d62dfe649de7660b56a3d748b0f369ea60
[ws client]: register request IDs for unsubscribe requests. (#223)
2021-03-09T12:22:57+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* [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: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* fix stack overflow
* grumbles: MaxMemory -> MaxSlots
* address grumbles: stray capacity on configs
* Update types/src/client.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* grumbles: stray confusing docs
* grumbles: doc nits
* grumbles: remove nested if let
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/7fffd8eca8697c92cd7606de783ae59b8a3aabf6
[proc macros]: fix wrong compile warnings. (#226)
2021-03-05T10:25:12+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
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.
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/7aeb95deee45c929ce6f93c40425484275b612da
prepare for client release (#215)
2021-03-04T12:43:57+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* prep for client release.
* fix nits
* add changelogs
* Update http-client/src/lib.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* address grumbles: one changelog
* 0.2.0-alpha
* revert rust2018 lint
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/50d8bf7827491f1f3c9a55e4f11689a5a65b0b6b
feat: client trait + porting client proc macros (#199)
2021-03-02T13:02:56+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* 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: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update types/src/client.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update types/src/client.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update types/src/client.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update types/src/client.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* remove old proc macro tests
* address grumbles: shorter lines
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/5db1da008c8044c3fa66047ae2668c26ecebbc55
WsServer refactor (#174)
2021-02-23T17:06:50+01:00
Maciej Hirsz
1096222+maciejhirsz@users.noreply.github.com
* 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: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
* Missing unwraps
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
* Typo :)
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
* Remove broken connections from subscriptions
* Tweak tests
* Add some doc comments
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/f4c2634184172564be1cba31914b37b1?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">Niklas Adolfsson</a> <<a href="mailto:niklasadolfsson1@gmail.com" title="niklasadolfsson1@gmail.com">niklasadolfsson1@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/8685ff40d4350bb462786605882793ecc40e2d58
[tests]: fix buffer deadlock bug (#218)
2021-02-22T19:42:41+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* [tests]: buffer deadlock
Fix a bad merge changed to `request_channel_capacity` to `subscription_channel_capacity`
<a href="https://github.com/paritytech/jsonrpsee/commit/7dc9435e225bcc1887a2532e830266d7b1ecd0af#diff-aeefe6b3d3f8b1b5248d6bb4c2888cf2d6802dbf82515f7b02b6a89a1400228fL188" rel="nofollow noreferrer noopener" target="_blank">https://github.com/paritytech/jsonrpsee/commit/7dc9435e225bcc1887a2532e830266d7b1ecd0af#diff-aeefe6b3d3f8b1b5248d6bb4c2888cf2d6802dbf82515f7b02b6a89a1400228fL188</a>
* Update tests/src/lib.rs
* fix build: `max_concurrent_requests_capacity`
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/1cdd1381211e6cea1179e9e454b25f7cb8b8f7d6
[ws client]: add `wss` test + refactor `WebSocketTransport builder` (#209)
2021-02-18T12:01:47+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* 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
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/eb4f5b32cb88642ae234279757985d888b960098
feat(http client): support tokio02 via hyper 0.13 (#201)
2021-02-15T11:50:37+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* 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!
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/11d4010384f6968af1279ca854d95e30b8ace96f
Revert "[http client]: switch to surf instead of hyper (#204)" (#208)
2021-02-12T15:36:43+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
This reverts commit <a href="/parity/mirrors/jsonrpsee/-/commit/ce1625b705d2e302fac30ff50bcbfe3352064742" data-reference-type="commit" data-original="ce1625b705d2e302fac30ff50bcbfe3352064742" data-link="false" data-link-reference="false" data-project="559" data-commit="ce1625b705d2e302fac30ff50bcbfe3352064742" data-container="body" data-placement="top" title="[http client]: switch to surf instead of hyper (#204)" class="gfm gfm-commit has-tooltip">ce1625b7</a>.
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/523489e40b35405a99637b8d01deea0009c05e62
fix(http client): generic return type. (#206)
2021-02-11T17:50:33+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/ce1625b705d2e302fac30ff50bcbfe3352064742
[http client]: switch to surf instead of hyper (#204)
2021-02-10T17:06:58+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* [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: <span data-trailer="Co-authored-by:"><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/e6d3d799a6d38d63090033557bcc0455?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">Maciej Hirsz</a> <<a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">1096222+maciejhirsz@users.noreply.github.com</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/e6d3d799a6d38d63090033557bcc0455?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">Maciej Hirsz</a> <<a href="mailto:1096222+maciejhirsz@users.noreply.github.com" title="1096222+maciejhirsz@users.noreply.github.com">1096222+maciejhirsz@users.noreply.github.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/29036c8385a4c9e6c15aacb206ff1d0d3f2c16db
Bump actions/cache from v2 to v2.1.4 (#202)
2021-02-08T13:58:16+01:00
dependabot[bot]
49699333+dependabot[bot]@users.noreply.github.com
Bumps [actions/cache](<a href="https://github.com/actions/cache" rel="nofollow noreferrer noopener" target="_blank">https://github.com/actions/cache</a>) from v2 to v2.1.4.
- [Release notes](<a href="https://github.com/actions/cache/releases" rel="nofollow noreferrer noopener" target="_blank">https://github.com/actions/cache/releases</a>)
- [Commits](<a href="https://github.com/actions/cache/compare/v2...26968a09c0ea4f3e233fdddbafd1166051a095f6" rel="nofollow noreferrer noopener" target="_blank">https://github.com/actions/cache/compare/v2...26968a09c0ea4f3e233fdddbafd1166051a095f6</a>
)
Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:support@github.com" title="support@github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/61024896f291303615bcd4f7a0dcfb74?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:support@github.com" title="support@github.com">dependabot[bot]</a> <<a href="mailto:support@github.com" title="support@github.com">support@github.com</a>></span>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:49699333+dependabot[bot]@users.noreply.github.com" title="49699333+dependabot[bot]@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/48ea49be76d0c68403a7f3df87e3487d?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:49699333+dependabot[bot]@users.noreply.github.com" title="49699333+dependabot[bot]@users.noreply.github.com">dependabot[bot]</a> <<a href="mailto:49699333+dependabot[bot]@users.noreply.github.com" title="49699333+dependabot[bot]@users.noreply.github.com">49699333+dependabot[bot]@users.noreply.github.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/7dc9435e225bcc1887a2532e830266d7b1ecd0af
[ws client]: use `max_payload_size` in transport (#198)
2021-02-02T15:39:35+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* 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: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* Update ws-client/src/manager.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* 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: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
* grumbles: docs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/6bed507c0085d39447171b95c515a890?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">David</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>