jsonrpsee:5ea8cbe8dd7aab13bd6e59aa1f5a796984046e0b commitshttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commits/5ea8cbe8dd7aab13bd6e59aa1f5a796984046e0b2021-09-30T10:42:34+02:00https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/5ea8cbe8dd7aab13bd6e59aa1f5a796984046e0bShare the request id code between the http and websocket clients (#490)2021-09-30T10:42:34+02:00Daviddvdplm@gmail.com
* Move RequestIdGuard to types::client
* Use the RequestIdGuard type for the http client as well
* Fix batch request ID handling (one batch uses one slot)
* Add a few tests to check that max_concurrent_requests work for http clients
* Docshttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/5ae280a34c7205527ffbc8b4029b9be73c181099wrapper struct for test subscription (#489)2021-09-29T14:47:07+02:00Niklas Adolfssonniklasadolfsson1@gmail.comhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/7cd7f36a2f05842f58af817638ac8fd34f6ac2a8fix: ws server terminate subscriptions when connection is closed by the clien...2021-09-24T19:59:43+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
* fix: server should not send to closed subscription
Closing #481
* add a test
* rewrite me
* remove faulty server close
* fix tests
* fix tests
* remove needless code
* Update ws-client/src/client.rs
* fix: remove atomic flag; use `close_sender`
* remove terminate message; use close channel
* remove faulty subscription closed error msg
* fix tests
* fix grumbles
* fix buildhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/c3235fb660c735a9ba35a33d84dc076057177fcfless deps (#484)2021-09-24T07:28:41+00:00Squirrelgilescope@gmail.comhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/321ee4ae9ee61669c442c48177b3b6116fbebb51examples: remove weather (#479)2021-09-21T10:54:31+02:00Niklas Adolfssonniklasadolfsson1@gmail.comhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/e3aabe867e6f882fa1f99d427d307b0e477c1c15[ws client]: default subscription buffer 1024 (#475)2021-09-17T11:20:44+02:00Niklas Adolfssonniklasadolfsson1@gmail.comhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/0b7614884ea24fd1e00ffb406a79d48e0be8dee1Ignore troublesome test on windows (#471)2021-09-16T12:28:41+00:00Daviddvdplm@gmail.comhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/b9be017703319cb83448238cfe43a5862679298aRe-export `v2` submodules (#469)2021-09-16T06:15:36+00:00Daviddvdplm@gmail.com
* Re-export v2::params, error, request and response types
* Use shallow type pathshttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/e0635fd917b52260df37e5cf51fe6b90f7455ae7replace `array_impl macro` with const generics (#470)2021-09-16T06:12:23+00:00Niklas Adolfssonniklasadolfsson1@gmail.comhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/635142e36b5acb65b9e38b44831726d964a4f20eRename and reorg types (#462)2021-09-15T14:13:47+00:00Daviddvdplm@gmail.com
* Renames
* More renames
* fmt
* s/RpcParams/Params/
* Add a type alias `SubscriptionResponse` to `Notification` which is parametrized to `SubscriptionPayload`
Move `SubscriptionResponse` to the `response` module
* Fix doc links
* Cleanup and some docs
* Review feedback
* cleanuphttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/be96c56d5343267848cd1032affc3c5385915b17[http server]: export acl types + remove cors_max_age (#466)2021-09-15T16:13:30+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
* [http server]: export acl + kill cors_max_age
* fix cors_max_age nit
* fmt
* remove max_cors_agehttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/c13f97ba8bb5a5862dd0372053f5d9aa56531c3bFix build warnings (#465)2021-09-14T15:16:10+00:00Daviddvdplm@gmail.com
* Silence warning on cors_max_age
* Revert change to `AccessControl`https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/b16568b448cbe096c4bafa543c6695cf8edd4b2aPropagate cause of `InvalidParams` (#463)2021-09-14T13:24:39+00:00Daviddvdplm@gmail.com
* Add a test illustrating how to use the `call` convenience method
* Extend test + review feedback
* log
* log
* log
* log
* log
* log
* log
* log
* log
* log
* log
* log
* log
* log
* log
* Add Methods::test_subscription
Log more when params parsing fails
* Add call_with test helper (ty @niklas!) + cleanup
* Remove todo (part of <a href="https://github.com/paritytech/jsonrpsee/issues/457" rel="nofollow noreferrer noopener" target="_blank">https://github.com/paritytech/jsonrpsee/issues/457</a>
)
* fmt
* Let `test_subscription` be called from other crates
* Manually fix indentation
* fmt
* SSself-review grumbles
* CallError::InvalidParams carries an anyhow::Error
* fmt
* Tweak docs
* Update utils/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>
* review grumble
* Fix todos
* fmt
* Fixup error messages
* Include source in the error message for `CallError`
* fmt
* Update proc-macros/src/render_server.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>
* Mention needing jsonrpsee crate in scope
* Resolve todo
* Impl ToRpcParams for 0-sized array
* optimized logging
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: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/bf2fff041786ff9210aa152a9a797a986f7d0c15Reject overflowing connection with status code 429 (#456)2021-09-14T08:45:00+02:00Maciej Hirsz1096222+maciejhirsz@users.noreply.github.com
* Reject overflowing connection with status code 429
* fmt
* rename Handshake -> HandshakeMode for clarity; verbose test
* Gracefully shutdown after rejecting to hopefully fix the errors on windows
* HandshakeMode -> HandshakeResponse; tweak pending subscriptions on shutdown testhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/a5162ec632b5ba2938c29db6f211def04918eebaRemove unstable rustfmt comment wrapping/limiting (#464)2021-09-13T19:53:36+00:00Daviddvdplm@gmail.com
In #461 I missed that these options are not stable so it breaks our CI. This PR reverts that change while keeping the whitespace changes from #461.
Apologies for the noise.https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/932304c4c8aa8b06e9ba18c6b3b95b6fa83cd94c[rpc module] test helper for calling and converting types to JSON-RPC params ...2021-09-13T16:04:44+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
* new helper for testing
* fix features
* call_with_params -> call_with
* call_with_params -> call_with
* Update utils/src/server/rpc_module.rs
* fix trait bound
* Update utils/src/server/rpc_module.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>
* call_with -> test_call
* fix grumbles
* fix nits
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/d452bfbf2c046811f8986b6fb8e75edf70ccc8a7Let rustfmt wrap comments at the 120 width boundary (#461)2021-09-11T12:36:48+00:00Daviddvdplm@gmail.comhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/d828e26e57ddd29d0c3d1538e0c11cd3f4cd82adfix(proc macros): subscriptions must return result (#455)2021-09-09T16:57:48+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
Similar to #435 that adds the same restrictions to subscriptions too.
To avoid having faulty trait bounds on when the subcription actually returns Result.https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/b6d93d298878a948bc0aeec8a9ac8a42d0fd0054cleanup after #453 (#454)2021-09-08T15:48:20+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
* cleanup
* Update ws-server/src/tests.rs
* Update http-server/src/tests.rshttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/089aa11584d79dc2ecc7b403f137cf5a0448a682fix(proc macros): generate documentation for trait methods. (#453)2021-09-08T11:57:03+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
* fix(proc macros): generate documentation
Fixes #449
* revert proc macro example
* add test that docs are generated
* use import
* address grumbles
* make the code less ugly
* simplify more
* fix grumbles: check ident before parse
* more grumbles: filter_map -> filterhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/ffa504e2b2cf991187ffd4dadb971841df1d2ee8Tidy `StopHandle` (#425)2021-09-01T20:15:43+02:00Maciej Hirsz1096222+maciejhirsz@users.noreply.github.com
* Experimental generic driver for methods
* Move FutureDriver to its own module
* "Infallible" sync methods + fmt
* Drive all methods to completion before background_task closes
* Testing a different stop handle
* Added the waker for the monitors
* Fix the test
* Fix a possible deadlock
* fmt
* Explain strong_count check in StopHandle Drop impl
* Clippy tweak
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>
* Added comment on atomicbool ordering
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/3ad1cc215e0788121a36116bb5f2d38cc3d8a4cbfeat: alias attribute for proc macros (#442)2021-09-01T19:16:17+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
* feat: alias attribute for proc macros
* implement David's suggested no more unsub field
* keep aliases outside namespace
* revert example
* fix build
* Update proc-macros/src/attributes.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: alias -> aliases
* grumbles v2: alias -> aliases
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/bf211cb247e2104f2e6d957654b96fb326a1325dMake it possible to treat empty JSON response as no params (#446)2021-09-01T17:37:36+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
* treat empty json as no params when optional
* add test with nested array brackets
* address grumbles: better tests
* Update types/src/v2/params.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>
* introduce RpcParams::sequence_ignore_empty
* address grumbles: ignore empty json in RpcParams
* Update proc-macros/src/render_server.rs
* address grumbles: remove trim in next_inner()
* address grumbles: trim_start after params.next()
* address more grumbles
* [proc macros]: add test for empty array
* make proc macro kind of work
* add hack to make it work in proc macros
* add hack to make it work in proc macros
* [] ->
* revert cerebral palsy
* Update proc-macros/tests/ui/correct/basic.rs
* Update proc-macros/tests/ui/correct/basic.rs
* address grumbles
* improve is_option
* add test for core::option::Option
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/c49f4affdf8d3278ce03613662a8ca808970d393benches: add benchmark for concurrent connections (#430)2021-08-31T10:35:16+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
* benches: add benchmark for concurrent connections
* address grumbles: use array into_iterhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/1045c7851da02627a20df83deab31cbbe8a4a8ba[proc macros]: support generic type params (#436)2021-08-27T14:15:23+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
* PoC support generic type params
* more annoying example
* add trait bounds for generic params in proc macros
* add compile-time test for complicated trait
* smarter trait bounds in proc macros
* add non-working example for now
* revert nits
* Update examples/proc_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/helpers.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>
* add messy code but works
* cleanup
* add some simple compile check in tests
* fix doc link
* fix doc link last time
* address grumbles
* docs
* Update proc-macros/src/helpers.rs
* Update proc-macros/src/helpers.rs
* Update proc-macros/src/helpers.rs
* Update proc-macros/src/helpers.rs
* Update proc-macros/src/visitor.rs
* fix nit: | -> ||
* Update proc-macros/src/helpers.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/helpers.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/helpers.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>
* add issues to introduced TODOs
* generics support where clause on trait
* Update proc-macros/src/helpers.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/helpers.rs
* address grumbles
* add more 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>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/d188da709fd16dd238b6dbd52d81a66dcbc25f45Add license headers where missing and update year (#439)2021-08-25T12:35:38+00:00Daviddvdplm@gmail.com
* Add license headers where missing and update year
* Update examples/http.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>
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/68c39064ac6ecbc5d33e1623f8b3ae5e92576aacCleanup proc-macros (#438)2021-08-25T08:43:00+00:00Daviddvdplm@gmail.com
* Doc tweaks
* More tweaks
* Move proc macro code out of the "new" folder
* fmt
* Can't add doc-links to dev-dependencieshttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/09abbaaa63b0ecef51fa12d38ede6b67c5164c63[proc macros] force proc macro api to return `Result` (#435)2021-08-18T12:03:02+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
* rewrite me
* require proc macro API to return result
* send unknown message when error is not CallError
* show example that auto cast StdError doesn't work
* register_*_method Into<Error>
* clippy
* replace generic errors with anyhow::Error
* fix nits
* example that anyhow::Error in register_method works
* CallError: add missing From impl
* [types]: add helper methods for Error types
The rationale is to make it possible for users to either use anyhow::Error or use the helper methods.
* fmt
* Revert "register_*_method Into<Error>"
This reverts commit 33b4fa28730b72647ba150659d3c0ab1937e524a.
* add better comment
* fix nithttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/872a8d7fc94b3697eeef7d05cc6ab6a7fb44681fFix errors with generics when using the proc macro (#433)2021-08-18T11:20:54+02:00Maciej Hirsz1096222+maciejhirsz@users.noreply.github.comhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/c69e0dd871cf25104f827da5da1f1832641419afConcurrent polling on async methods (#424)2021-08-17T18:07:15+02:00Maciej Hirsz1096222+maciejhirsz@users.noreply.github.com
* Experimental generic driver for methods
* Move FutureDriver to its own module
* "Infallible" sync methods + fmt
* Drive all methods to completion before background_task closeshttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/326d0c91be76e1a485d6091ec1ddef2df67d6f98Don't allocate until we know it's worth it (#420)2021-08-16T10:59:54+02:00Daviddvdplm@gmail.com
* Sniff the first byte to glean if the incoming request is a single or batch request
This works around the serde limitations around `untagged` enums and `RawValue`.
* fmt
* For http server, check first byte before allocating space for the body
Also, rework the way we return errors: prefer JSON-RPC errors according to spec (application/json) wherever sensible.
* Review feedback
* Don't assume there is a first byte to read
* ty clipyp
* Review concerns
* Cleanuphttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/32811d3ce2dc0095e5452524a8492fcc96d5cc43[clients]: remove tokio 0.2 runtime support (#432)2021-08-13T14:30:34+00:00Niklas Adolfssonniklasadolfsson1@gmail.com
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/fba533f86209261581d293b161738c009efbd838Sniff the first byte to glean if the incoming request is a single or batch re...2021-08-13T07:52:33+00:00Daviddvdplm@gmail.com
* Sniff the first byte to glean if the incoming request is a single or batch request
This works around the serde limitations around `untagged` enums and `RawValue`.
* fmt
* Review feedback
* Don't assume there is a first byte to read
* remove todo
* review feedbackhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/fc030ad85a25d0092b2f81ea8c4622ffd5cd56f8[proc macros]: remove old code and tests. (#431)2021-08-13T09:26:24+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
* fix: update example to new proc macros
* remove unused code
* remove client builderhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/052a3844c4fc2d147bf0859c74ce9ed03733699efix most clippy warnings (#434)2021-08-13T09:19:14+02:00Niklas Adolfssonniklasadolfsson1@gmail.comhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/6db2ee15af05fbe2b4ad5417a730820321aea69fdeps(hyper): require 0.14.10 (#427)2021-08-09T12:03:13+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
To make sure that we are not affected by:
- <a href="https://github.com/hyperium/hyper/security/advisories/GHSA-f3pg-qwvg-p99c" rel="nofollow noreferrer noopener" target="_blank">https://github.com/hyperium/hyper/security/advisories/GHSA-f3pg-qwvg-p99c</a>
- <a href="https://github.com/hyperium/hyper/security/advisories/GHSA-5h46-h7hh-c6x9" rel="nofollow noreferrer noopener" target="_blank">https://github.com/hyperium/hyper/security/advisories/GHSA-5h46-h7hh-c6x9</a>
However, `hyper 13` is not fixed but I think we should remove that support anyway?!https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/430dcfaff6e83d56e3cba1543d0103563ad86958fix(ws client): use query part of URL. (#429)2021-08-05T14:46:42+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
* fix(ws client): use query part of URL.
Fixes #428, we didn't take that query part of the URL into account and it wasn't sent in GET request.
* add log when connecting to a target
* fix(grumbles): path -> path_and_queryhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/3d52c6aca87a4a9018aad2a5da4ad48ffb653714Proc macro params optimizations and tests. (#421)2021-07-27T09:44:54+02:00Maciej Hirsz1096222+maciejhirsz@users.noreply.github.com
* WIP
* Feature-complete-ish
* WIP
* Cleaner replace marker
* Inject lifetimes in elided `Cow`s
* Use a single static &str for all injected lifetimes
* Working lifetimes
* Add the `call` method to `Methods`
* Testing proc macro with optional params
* Remove internal loop
* fmt
* Fix grumbleshttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/242cdb5201ee6d1d64f8249d68101df8e3a53c37Update env_logger requirement from 0.8 to 0.9 (#418)2021-07-15T15:45:44+00:00dependabot[bot]49699333+dependabot[bot]@users.noreply.github.com
Updates the requirements on [env_logger](<a href="https://github.com/env-logger-rs/env_logger" rel="nofollow noreferrer noopener" target="_blank">https://github.com/env-logger-rs/env_logger</a>) to permit the latest version.
- [Release notes](<a href="https://github.com/env-logger-rs/env_logger/releases" rel="nofollow noreferrer noopener" target="_blank">https://github.com/env-logger-rs/env_logger/releases</a>)
- [Changelog](<a href="https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md" rel="nofollow noreferrer noopener" target="_blank">https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md</a>)
- [Commits](<a href="https://github.com/env-logger-rs/env_logger/compare/v0.8.0...v0.9.0" rel="nofollow noreferrer noopener" target="_blank">https://github.com/env-logger-rs/env_logger/compare/v0.8.0...v0.9.0</a>
)
---
updated-dependencies:
- dependency-name: env_logger
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/0f66093ed56eb4357f620d48c943a3c794a96553Prepare v0.3.0 (#415)2021-07-12T19:15:58+00:00Daviddvdplm@gmail.com
* Bump versions to 0.3.0
* Add draft release checklist
* Changelog for v0.3.0
* Mention possibility of passing params to `publish.sh`
* Added PR 412