jsonrpsee:68c39064ac6ecbc5d33e1623f8b3ae5e92576aac commitshttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commits/68c39064ac6ecbc5d33e1623f8b3ae5e92576aac2021-08-25T08:43:00+00:00https://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 412https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/8db65b4265d389b521499f736d89d47ba4ae005cModule API refactor (#412)2021-07-12T18:58:12+00:00Maciej Hirsz1096222+maciejhirsz@users.noreply.github.com
* Do not register methods on servers
* fmt
* Infallible `to_rpc` proc macro
* Remove dead code
* Check for duplicate names at compile time
* Add a UI test for name conflicts
* Apply suggestions from code review
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 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/b8af4cc0395c69890e89587d1f72224a9739500bSort out type paths in proc macros (#414)2021-07-12T15:25:09+00:00Daviddvdplm@gmail.com
* Only return the crate name when the crate is `jsonrpsee` as well
* Sort out the type paths in the macros, this time for real (?)
* fmthttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/b83be7421e09baa40a9579efb107cd5e28d7ca1eFix type paths for client macros (#413)2021-07-12T10:21:28+00:00Daviddvdplm@gmail.com
* type paths in client macros
* Tweak more paths
* Helpers as wellhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/0592442e1ff9607053cd86f4b399acf20c541ca3Rexport types for servers (#409)2021-07-12T08:43:42+00:00Daviddvdplm@gmail.com
* Include "macros" in the "server" feature
* Re-export SubscriptionSink
* Include the "types" feature in both the "client" and "server" features
Export types::* from façade when the "types" is active
Export types::* from servers
* fmt
* Export jsonrpsee_types under types
* fmt
* broken doc link
* fix benches
* fmt
* Fix test importshttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/d5d67e9879a29242cd95f74dfa8ac640b6285a0ePass OwnedRpcParams to async methods (#410)2021-07-10T12:41:12+00:00Daviddvdplm@gmail.com
* Pass OwnedRpcParams to async methods
* Cow-ified RpcParams
* fmt
* Separate `RpcParamsSequence` parser from `RpcParams`
* Remove OwnedId, use Id<'static> instead
* Ensure that parsed `Id` is borrowing from input slice
* Tweak/add some docs
Test that parse() works after calling sequence()
* Fix rustdoc link
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:hello@maciej.codes" title="hello@maciej.codes"><img alt="default avatar" src="https://secure.gravatar.com/avatar/fc6ae16dcd87ba90ffc9c52c69fc5a56?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:hello@maciej.codes" title="hello@maciej.codes">Maciej Hirsz</a> <<a href="mailto:hello@maciej.codes" title="hello@maciej.codes">hello@maciej.codes</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/360a7f31d64a549c78b450375ed6b156c8d67b5bTimeouts for all requests (#406)2021-07-08T10:42:41+02:00Daviddvdplm@gmail.com
* [clients]: use request timeout by-default
* add timeout for notif
* more feature flag mess
* rexport tokio types
* Update ws-client/src/client.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>
* Impose a timeout on all requests
Variant of #367
This PR takes a more opinionated stance than #367, where timeouts are optional. In this PR I suggest we make a all requests use a timeout and only let users choose the length.
* fmt
* Address review grumbles
* fmt
* Use tokio::select! for cleaner code
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>
Co-authored-by: <span data-trailer="Co-authored-by:"><a href="mailto:hello@maciej.codes" title="hello@maciej.codes"><img alt="default avatar" src="https://secure.gravatar.com/avatar/fc6ae16dcd87ba90ffc9c52c69fc5a56?s=32&d=identicon" class="avatar s16 avatar-inline"></a><a href="mailto:hello@maciej.codes" title="hello@maciej.codes">Maciej Hirsz</a> <<a href="mailto:hello@maciej.codes" title="hello@maciej.codes">hello@maciej.codes</a>></span>
https://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/ddb508063269d510210caa106da68b8fad20eeaeNew proc macro (#387)2021-07-01T18:37:27+02:00Igor Aleksanovpopzxc@yandex.ru
* Start working on the new proc macro system
* Add skeleton for rendering
* Improve error reporting
* Main part of 'render_client'
* Implement RPC client generation
* Client successfully rendered
* Add doc-comment generation for the API client
* Check that all the methods have receiver
* Start working on the server impl
* Add helper method to find server crate
* Fix usage of client rpc path
* Decent progress on the server macro implementation
* Server macro compiled successfully
* Remove unneeded re-export
* Insert SubscriptionSink argument to the subscription server signatures
* Add basic doc-comment for the macro
* no_run -> ignore
* Trait with subscription compiles
* Extend the example
* Add integration test for client/server impl
* Add trybuild setup
* Set correct span for attribute parsing related errors
* Add basic set of trybuild tests
* Add tests for client and server generated separately
* Improve proc-macro documentation
* Update proc-macros/src/lib.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 a couple of bugs in docs
* Fix rendering subscription with params
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/095db9b2d5d25f4ba822ff5878150563f1643f41Streaming RpcParams parsing (#401)2021-07-01T18:12:45+02:00Maciej Hirsz1096222+maciejhirsz@users.noreply.github.com
* Streaming RpcParams parsing
* DRY RpcParams::one again
* Fix doc commentshttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/f705e325a2524024c598f4c6f015863d6e1ec0a0Set allowed Host header values (#399)2021-07-01T18:12:29+02:00Maciej Hirsz1096222+maciejhirsz@users.noreply.github.com
* Set allowed Host header values
* Error if allowed hosts list is empty
* Grammar
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/7496afe201bef95d8c4e4fac7d729ca92f4f89eeSynchronization-less async connections in ws-server (#388)2021-06-30T17:48:50+02:00Maciej Hirsz1096222+maciejhirsz@users.noreply.github.com
* WIP
* More WIP
* Simplify ConnDriver
* Progress all connections on each poll
* Make ConnDriver more opaque and less leaky
* fmt
* Spawn connections on tasks after handshake
* WIP put connections on tasks
* cargo fmt, naming clarity
* Fix grumbles
* Extra comment on swap_remove
* Remove unwrap from the handshake
* Restore the wrapping_add on connection idhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/7a33bf5020896c65ce20c9c4d988e10743145f84[ws server]: terminate already established connection(s) when the server is s...2021-06-30T09:29:26+00:00Niklas Adolfssonniklasadolfsson1@gmail.com
* [ws server]: terminate connection when closed.
* fix tests
* add test
* address grumbles: return Ok when server stopped
* revert log
* revert outdated documentation
* use wrapping add for conn id
* address grumbles: replace Mutex with AtomicBool
* add comment to assertion
* fix nits
* address grumbles: naming of variables
* address grumbles: RwLock to wait for tasks
This commit introduces a RwLock instead of the Mutex to the shared by the background tasks
and the stop handle won't signal until all readers has been dropped.
* fix nit
* Update ws-server/src/server.rs
* remove AtomicBool; use stop_sender instead
* Update ws-server/src/server.rs
* Update ws-server/src/server.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>
* correct subscription err messages
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/8b65edf8ce083cd0239d6c2ffb0d6dc1a4bfd042feat: customizable JSON-RPC error codes via new enum variant on `CallErrror` ...2021-06-29T15:28:13+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
* feat: customizable error via RpcError trait
This commit introduces a new trait for defining user customizable error codes and messages
* revert trait stuff
* use RawValue
* fix docs
* rexport to_json_raw_valuehttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/2ca8355a82c683b0f17746e5160fe06890ccbc3c[ci]: test each individual crate's manifest (#392)2021-06-25T08:56:34+00:00Niklas Adolfssonniklasadolfsson1@gmail.com
* [ci]: test each crate outside workspace
We have bitten by these a few times now with that some features are leaked from the workspace
which makes it compile in the workspace but not using it's own Cargo.toml.
* [ci]: add tests for macos and windows
* add missed `WsServer` and `HttpServer`
* [ws server]: fix features
* debug failure in CI
* remove platform dependent assertion
* fix nit; proc-macros is proc-macros
* restore removed assertion
* remove whitespaceshttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/c93b1e7a4640ae60a0e89b2e7344ea37e631e080Add a way to stop servers (#386)2021-06-24T12:00:28+02:00Igor Aleksanovpopzxc@yandex.ru
* Add a way to stop HTTP server
* Add a way to stop WS server
* Apply suggestions from code review
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>
* Ensure the concrete type of error in stop test
* Resolve merge artifacts
* Add public re-exports of stop handle
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/13ea5b2186a9cffa43f54afeb1c70a8183a365a8[jsonrpsee types]: unify a couple of types + more tests (#389)2021-06-24T10:33:55+02:00Niklas Adolfssonniklasadolfsson1@gmail.com
* [jsonrpsee types]: unify types + more tests
* address grumbleshttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/edf5b9938eb699f1f88f77a27f8af76e44946bacUpdate roadmap link in readme (#390)2021-06-23T16:05:52+02:00Igor Aleksanovpopzxc@yandex.ruhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/26b061360791c08c5ddde9663bf7de60a4bdb89cCross-origin protection (#375)2021-06-18T14:13:58+02:00Maciej Hirsz1096222+maciejhirsz@users.noreply.github.com
* Initial implementation
* Comments
* Send a 403 on denied origin
* Noodling around with `set_allowed_origins`
* Error on empty list
* Soketto 0.6
* fmt
* Add `Builder::allow_all_origins`, clarify doc comments
* Rename Cors -> AllowedOrigins, nits, no panichttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/6c69a8c06e11fbb04825c722d8f090d4631ba705Method aliases + RpcModule: Clone (#383)2021-06-18T13:31:33+02:00Maciej Hirsz1096222+maciejhirsz@users.noreply.github.com
* Make sync methods into Arc pointers
* impl Clone for RpcModule and Methods
* No need to wrap Methods in Arc anymore
* Simplify generics
* register_alias
* fmt
* grammar
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>
* Use a separate Arc counter for tracking max_connections
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/82b161424e47704048f77c909ac2f766ff6600beUse criterion's async bencher (#385)2021-06-16T13:27:50+02:00Igor Aleksanovpopzxc@yandex.ru
* Use criterion's async bencher
* Rewrite concurrent roundtrip in functional stylehttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/ca11d1264c75e7c8b6e9a4beeea03f7be1f332feAsync/subscription benches (#372)2021-06-14T07:53:42+00:00Igor Aleksanovpopzxc@yandex.ru
* Add benches for async methods
* Benches for subscriptionshttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/9a02c10a311c36185b13d2d8d71d37ee44c16c0bsend text (#374)2021-06-10T12:23:12+02:00Niklas Adolfssonniklasadolfsson1@gmail.comhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/67e7c3db7305321b59ec408e9b65d26f24f0a3e8Fix link to ws server in README.md (#373)2021-06-08T09:27:07+02:00Igor Aleksanovpopzxc@yandex.ru
* Fix link to ws server in README.md
* Fix http client as wellhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/d5ba2bd8d3bba846da56774fdc1955e9bea2a1edConcat -> simple push (#370)2021-06-07T08:51:12+00:00Maciej Hirsz1096222+maciejhirsz@users.noreply.github.comhttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/3f804de16c4ce07cd40b8677cb610d418afaa8b6Add missing `rt` feature (#369)2021-06-04T12:19:59+00:00Daviddvdplm@gmail.com
* Add missing `rt` feature
* Use rt-multi-thread actually
* More feature flag foohttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/b3a0748b5eeb72c7183ef6a3e431a9d6533b2a20Release prep for v0.2 (#368)2021-06-04T11:58:22+00:00Daviddvdplm@gmail.com
* Release prep
* Mention proc macro limitations
* Mention publish scripthttps://gitlab.parity.io/parity/mirrors/jsonrpsee/-/commit/a3feec75d7151c7a1f7a549096e5b5d63c78b2a2chore(scripts): publish script (#354)2021-06-04T11:57:03+00:00Niklas Adolfssonniklasadolfsson1@gmail.com
* chore(scripts): publish script
* use script from jsonrpc