jsonrpsee:ffdab3e028ed3cc6d8c2217e4f066eb6f3bdf640 commits
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commits/ffdab3e028ed3cc6d8c2217e4f066eb6f3bdf640
2022-04-04T17:28:01+02:00
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/ffdab3e028ed3cc6d8c2217e4f066eb6f3bdf640
chore: release v0.10.0 (#723)
2022-04-04T17:28:01+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* update changelog
* update versions v0.10.0
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update CHANGELOG.md
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/df298f2c3f8e80e82c0ffe31a9302aa4?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com">Tarik Gul</a> <<a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com">47201679+TarikGul@users.noreply.github.com</a>></span>
* Update CHANGELOG.md
* Update CHANGELOG.md
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/df298f2c3f8e80e82c0ffe31a9302aa4?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com">Tarik Gul</a> <<a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com">47201679+TarikGul@users.noreply.github.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/85df2efb567874fbaf61f4772c5770a0d0104dae
benches: improve concurrent benches with 10 requests per conn (#713)
2022-04-04T16:07:32+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* improve benches with 10 requests per conn
* add subscription bench
* fix nits
* fix nit run 256 too
* add CPU profiling via pprof
* rewrite me
* add move benchmark methods; fast, slow & memory intensive
* add instructions for ulimit
* reduce mem call not reach 256MB limit in WS for batches
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/961e6bd528da268bc682c28db23db017a5e6b4b5
[examples]: update pubsub examples (#705)
2022-04-02T17:17:08+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* update pubsub examples
* Update examples/ws_subscription.rs
* remove some docs
* remove needless clone
* simplify example
* simplify code with async-broadcast channel
* use tokio broadcast for smaller dependency tree
* Update examples/ws_pubsub_broadcast.rs
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/34c2fbef59ca0bdae3b1c5fef0c355ed518ef8cd
feat(http server): add new builder APIs `build_from_tcp` and `build_from_hype...
2022-04-01T22:34:52+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* unify servers; use tokio::TcpListener
* add API to build server from tcp socket
* build_from_tcp nit: not async
* fix nits
* change `build_from_tcp` force users configure hyper
The hyper settings might contradict to settings on the provided
socket, force users of this API to configure that avoid confusion and
unexpected settings.
* Update http-server/src/server.rs
* fix doc links
* add separate APIs `build_from_tcp` and `build_from_hyper`
* fix clippy
* remove dead code
* fix build
* fix nit in example code
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/f55ab3e30c5f33d637a1df9c0c39afef0d254687
fix(client): close subscription when server sent `SubscriptionClosed` notific...
2022-04-01T18:53:45+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* fix(client): close subscription when server sent `SubscriptionClosed` notification
* Update core/src/client/async_client/helpers.rs
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/545ceaf6c897190ae137909bb0c9e97beecdca4f
feat: add `SubscriptionSink::pipe_from_try_stream` to support streams that r...
2022-04-01T13:56:02+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* refactor: make `pipe_from_stream` take stream of result
The rationale for this is that it is more flexible for use cases when `Stream<Item = Result<T, Error>>`.
Take for example `tokio_stream::Broadcast` then one would have to something like:
```rust
let stream = BroadcastStream::new(rx).take_while(|r| future::ready(r.is_ok())).filter_map(|r| future::ready(r.ok()));
```
Of course it's a bit awkward to return `Result` when the underlying stream can't fail but I think that's fair trade-off
here.
* Update core/src/server/rpc_module.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/df298f2c3f8e80e82c0ffe31a9302aa4?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com">Tarik Gul</a> <<a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com">47201679+TarikGul@users.noreply.github.com</a>></span>
* pipe_from_stream: make E: Display instead of StdError
* add a test
* add `pipe_from_try_stream` API to support `TryStream`
* Update tests/tests/integration_tests.rs
* Update proc-macros/src/lib.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com"><img alt="default avatar" src="https://secure.gravatar.com/avatar/df298f2c3f8e80e82c0ffe31a9302aa4?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com">Tarik Gul</a> <<a href="mailto:47201679+TarikGul@users.noreply.github.com" title="47201679+TarikGul@users.noreply.github.com">47201679+TarikGul@users.noreply.github.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/14b1b4b5c38cc8c5a418f11a9266da72fa9378cf
core: remove `Error::Request` variant (#717)
2022-03-30T11:24:50+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* refactor: get rid off `Error::Request` variant
* fix nit
* to_owned -> to_call_error
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/3f13274bf79b5e7f4f0a4ee80c3091f4d8023238
fix(http client): set reuseaddr and nodelay. (#687)
2022-03-29T15:04:08+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* fix(http client): set reuseaddr and nodelay.
* configure socket for https too
* http server: `set_reuse_port`
* fix windows build
* revert http server changes
* fix build with latest syn
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/054c0e393c02ec815da4d16addd0271654c9db3b
http server: fix regression set backlog to 1024 (#718)
2022-03-28T20:48:14+02:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/78055feb19dc95f53f6145aba606a253efe9f82a
fix: max_request_body_size setting should not override max_response_size (#711)
2022-03-22T10:21:28+01:00
Quake Wang
quake.wang@gmail.com
* fix: max_request_body_size setting should not override max_response_size
* chore: apply review comment
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/7c46458e4c5568c2c7a0352dd36ca89377f53d32
Replace async-channel (#708)
2022-03-09T20:16:22+00:00
David
dvdplm@gmail.com
* wip wip wip
Use tokio::sync::Notify to signal to the server when a subscriber has gone away without calling unsubscribe
* Cleanup
* Fmt
* More cleanup more TODOs
* fmt
* Address a few todos
* Update core/src/server/rpc_module.rs
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>
* Update ws-server/src/server.rs
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>
* Fix bad merge
* Test
* fmt
* fix test
* Finish test
* Cleanup
Add a second subscription to serverless test
* Update tests/tests/integration_tests.rs
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>
* simplify test
* Review feedback: avoid allocations
* cleanup
* Remove async-channel
* remove async-channel deps
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/662676e8b8da0f1585c0431d4db0b83a779f7f7d
chore(deps): bump actions/checkout from 2.4.0 to 3 (#710)
2022-03-02T15:30:16+01:00
dependabot[bot]
49699333+dependabot[bot]@users.noreply.github.com
Bumps [actions/checkout](<a href="https://github.com/actions/checkout" rel="nofollow noreferrer noopener" target="_blank">https://github.com/actions/checkout</a>) from 2.4.0 to 3.
- [Release notes](<a href="https://github.com/actions/checkout/releases" rel="nofollow noreferrer noopener" target="_blank">https://github.com/actions/checkout/releases</a>)
- [Changelog](<a href="https://github.com/actions/checkout/blob/main/CHANGELOG.md" rel="nofollow noreferrer noopener" target="_blank">https://github.com/actions/checkout/blob/main/CHANGELOG.md</a>)
- [Commits](<a href="https://github.com/actions/checkout/compare/v2.4.0...v3" rel="nofollow noreferrer noopener" target="_blank">https://github.com/actions/checkout/compare/v2.4.0...v3</a>
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
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/b0f89485f35925e4a56d0776b9d4e116e88d8a4a
fix(rpc module): unsubscribe according ethereum pubsub spec (#693)
2022-02-22T20:59:40+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* fix(rpc module): unsubscribe ethereum pubsub spec
* update docs
* fix clippy
* fix tests
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/721117de2abb49a50e16a6cec3261d2ba63d5aea
[proc macros]: only generate unsub method if not provided (#702)
2022-02-18T10:32:16+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* [proc macros]: only generate unsub if not provided
* Update proc-macros/src/rpc_macro.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 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>
* fix grumbles
* 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>
* 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>
* 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>
* Update proc-macros/tests/ui/correct/alias_doesnt_use_namespace.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/4bc9f5762580fcc92bdb7d76d7011a689a06c471
CI: cache cargo hack installation (#706)
2022-02-18T08:33:58+01:00
Denis Pisarev
17856421+TriplEight@users.noreply.github.com
Co-authored-by: CI system <>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/b2553e0e6b8b435d1fb335d7d86043862a9f74a0
README.MD: fix link to `ws server` (#703)
2022-02-16T12:06:45+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/afdf57dbe75a8bbde827a79fef9d2a6ec6a32b3f
CI: try nextest (#701)
2022-02-16T12:14:09+01:00
Denis Pisarev
17856421+TriplEight@users.noreply.github.com
* CI: try nextest
* CI: nextest for mac and wim
Co-authored-by: CI system <>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/4d67b35668811ba7dcafdbe01f84e7344de1a9e6
chore(deps): update tokio-util requirement from 0.6 to 0.7 (#695)
2022-02-11T17:39:35+01:00
dependabot[bot]
49699333+dependabot[bot]@users.noreply.github.com
Updates the requirements on [tokio-util](<a href="https://github.com/tokio-rs/tokio" rel="nofollow noreferrer noopener" target="_blank">https://github.com/tokio-rs/tokio</a>) to permit the latest version.
- [Release notes](<a href="https://github.com/tokio-rs/tokio/releases" rel="nofollow noreferrer noopener" target="_blank">https://github.com/tokio-rs/tokio/releases</a>)
- [Commits](<a href="https://github.com/tokio-rs/tokio/commits" rel="nofollow noreferrer noopener" target="_blank">https://github.com/tokio-rs/tokio/commits</a>
)
---
updated-dependencies:
- dependency-name: tokio-util
dependency-type: direct:production
...
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/cd9f9a39a994bf8dc12a587ab52478a123b27aee
Move CI script to new location (#694)
2022-02-09T18:53:55+02:00
Sergejs Kostjucenko
85877331+sergejparity@users.noreply.github.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/f66ef5517d7936d87cd72141963659fa6f3e4328
Release prep for v0.9 (#689)
2022-02-03T10:27:37+00:00
David
dvdplm@gmail.com
* Release prep for v0.9
* Update CHANGELOG
Don't dry-run when releasing
* Tweak release notes
* Update CHANGELOG.md
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>
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/425ae56dc871a406b6b789a111ddfaaf9dcf1e21
refactor(ws server): impl `IdProvider` for Box<T> (#684)
2022-02-02T00:16:35+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* refactor(ws server): set_id_provider `Box<dyn>`
* address grumbles: thanks James
* relax trait bounds with ?Sized
* Update ws-server/src/tests.rs
* add docs
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/2864756dce6ff4dd38f3e985a312bcb19ef33417
chore(deps): update parking_lot requirement from 0.11 to 0.12 (#682)
2022-01-31T14:37:39+01:00
dependabot[bot]
49699333+dependabot[bot]@users.noreply.github.com
Updates the requirements on [parking_lot](<a href="https://github.com/Amanieu/parking_lot" rel="nofollow noreferrer noopener" target="_blank">https://github.com/Amanieu/parking_lot</a>) to permit the latest version.
- [Release notes](<a href="https://github.com/Amanieu/parking_lot/releases" rel="nofollow noreferrer noopener" target="_blank">https://github.com/Amanieu/parking_lot/releases</a>)
- [Changelog](<a href="https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md" rel="nofollow noreferrer noopener" target="_blank">https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md</a>)
- [Commits](<a href="https://github.com/Amanieu/parking_lot/compare/0.11.0...0.12.0" rel="nofollow noreferrer noopener" target="_blank">https://github.com/Amanieu/parking_lot/compare/0.11.0...0.12.0</a>
)
---
updated-dependencies:
- dependency-name: parking_lot
dependency-type: direct:production
...
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/5ffc037aca0f62417132ad1f108b778ec6e29ebf
update readme: crate is "stable" now (#671)
2022-01-25T18:32:53+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
The `crate` is rather stable now, so I think it makes sense to remove that from the README
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/7e7d3d6e94c79a20d2aa0f5608f8dc1e849d51f6
Prep for releasing v0.8.0 (#664)
2022-01-21T15:41:25+00:00
David
dvdplm@gmail.com
* Prep for releasing v0.8.0
* Grumble
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/708d421378611283ba842593b4bcbfe55c9e6a46
feat(client): support request id as Strings. (#659)
2022-01-21T14:37:15+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* feat(client): support request id as Strings.
* add tests for Id::String
* address grumbles: move id_kind to RequestManager
* Update client/http-client/src/client.rs
* types: take ref to `ID` get rid of some `Clone`
* remove more clone
* grumbles: rename tests
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/c0f343d4ead956dbb2bbfa658074d7ad4255a8cb
Add a method to RpcModule that transforms the module into a `RpcModule<()>`,...
2022-01-21T13:21:24+00:00
David
dvdplm@gmail.com
Add a method to RpcModule that transforms the module into a `RpcModule<()>`, i.e. removes the context. (#660)
* Add a method to RpcModule, `decontextualize`, that transforms the module into a `RpcModule<()>`, i.e. removes the context.
* Merging a module with an empty module cannot fail
* fmt
* Address grumbles
* Cleanup macro
* Update core/src/server/rpc_module.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/9bd212748be033d8461a88988adfc279b1e4fd79
feat(rpc module): `stream API` for SubscriptionSink (#639)
2022-01-21T13:10:00+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* feat(rpc module): add_stream to subscription sink
* fix some nits
* unify parameters to rpc methods
* Update core/src/server/rpc_module.rs
* Update tests/tests/integration_tests.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
* fix subscription tests
* new type for `SubscriptionCallback` and glue code
* remove unsed code
* remove todo
* add missing feature tokio/macros
* make `add_stream` cancel-safe
* rename add_stream and return status
* fix nits
* rename stream API -> streamify
* Update core/src/server/rpc_module.rs
* provide proper close reason
* spelling
* consume_and_streamify + docs
* fmt
* rename API pipe_from_stream
* improve logging; indicate which subscription method that failed
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/429c196db523aa164761e6ebeb241a136db44868
fix: nit in WsError (#662)
2022-01-21T11:37:43+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/b098a87ccc3a39b16514573a43acf37377e6927f
fix(jsonrpsee): feature `macro` include client types (#656)
2022-01-19T13:26:09+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
Closing <a href="https://github.com/paritytech/jsonrpsee/issues/649" rel="nofollow noreferrer noopener" target="_blank">https://github.com/paritytech/jsonrpsee/issues/649</a>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/dc603484a8678fb80f4677a33078707e4b626596
[ci] stick benchmarks to one host (#655)
2022-01-19T09:01:51+01:00
Alexander Samusev
41779041+alvicsam@users.noreply.github.com
* stick benchmarks to one host
* test bench in pr pipeline
* return schedule refs to benchmark job
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/f509346d801d509ef1bfe477c02a53c3bba7ecde
fix(ws client): export `WsClient` (#646)
2022-01-10T21:16:29+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* fix(ws client): export `WsClient`
* fix build
* fix doc links
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/3749ae277ff8da1c1bb285420a97055e7b9a137a
fix(ws client): improve error message bad URL (#642)
2022-01-06T13:38:20+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* fix(ws client): improve error message bad URL
* fix nit: uri -> target
* fix nit
* fix grumbles
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/6b88ec2c5a8907f7623215ce06a9242b892ebf41
fix(ws client): expose tls feature. (#640)
2022-01-06T13:10:39+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/6f99a03867154332e34262be289a54ad02055fc8
fix(http server): handle post and option HTTP requests properly. (#637)
2022-01-05T16:01:49+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* fix(http server): handle post and option requests.
* Update http-server/src/response.rs
* fmt
* grumbles: validate CORS before checking method kind
* revert unintentional change
* Add A few tests around CORS and http method/header acceptance
* Tweak the CORS test
* return appropriate headers for CORS preflight response
* cargo fmt
* jsonrpc, not jsonrpsee in test requests
* don't test OPTIONS method in unsupported_methods test as it has different expectations
* Update tests/tests/integration_tests.rs
* Update tests/tests/integration_tests.rs
* Update tests/tests/integration_tests.rs
* Update tests/tests/integration_tests.rs
* Add an example to test CORS in browser, and a couple of fixes to CORS handling
* cargo fmt
* Update examples/cors_server.rs
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:james@jsdw.me" title="james@jsdw.me"><img alt="default avatar" src="https://secure.gravatar.com/avatar/c2a9583423180b820a133ea1af77289f?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:james@jsdw.me" title="james@jsdw.me">James Wilson</a> <<a href="mailto:james@jsdw.me" title="james@jsdw.me">james@jsdw.me</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/1730368adaf22200c52da011b9db11b4397948c4
Fix publication order (#626)
2021-12-22T16:37:31+01:00
David
dvdplm@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/ab621ed488c450f9cd4be798110bb48612cc8f97
chore: release v0.7.0 (#623)
2021-12-22T14:49:11+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* chore: release v0.7.0
* Update CHANGELOG.md
* Update CHANGELOG.md
* update changelog
* Tweak CHANGELOG
* re-export core for clients as well
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 Palm</a> <<a href="mailto:dvdplm@gmail.com" title="dvdplm@gmail.com">dvdplm@gmail.com</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/f319d58e4b1a065ed0ddd3c7aa2aeb34b2c8e53f
fix jsonrpsee: feature renamed `client` -> `async-client` (#625)
2021-12-22T14:23:52+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
* feature renamed to async-client
* export rpc_macro for core client
* re-export core from wrapper crate
* rename feature core-client -> async-client
* add client feature too
* reorg features
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/906bbd4a0276ab0282c0ae749f257e9bafa95fa0
chore(types): remove unused deps (#624)
2021-12-22T11:43:27+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/f5217b9cdbb06fadb760dd6a60ca4f5ea4bd5a9c
chore(http client): remove needless clone (#620)
2021-12-22T09:36:45+00:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/1e77c2df765209b54f23036d9302f94943ab2dd6
chore: migrate to rust 2021 (#618)
2021-12-22T10:30:28+01:00
Niklas Adolfsson
niklasadolfsson1@gmail.com
Implies MSRV 1.56.x