- 25 Aug, 2021 1 commit
-
-
David authored
* Doc tweaks * More tweaks * Move proc macro code out of the "new" folder * fmt * Can't add doc-links to dev-dependencies
-
- 18 Aug, 2021 2 commits
-
-
Niklas Adolfsson authored
* 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 nit
-
Maciej Hirsz authored
-
- 17 Aug, 2021 1 commit
-
-
Maciej Hirsz authored
* Experimental generic driver for methods * Move FutureDriver to its own module * "Infallible" sync methods + fmt * Drive all methods to completion before background_task closes
-
- 16 Aug, 2021 1 commit
-
-
David authored
* 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 * Cleanup
-
- 13 Aug, 2021 4 commits
-
-
Niklas Adolfsson authored
Co-authored-by:
David Palm <dvdplm@gmail.com>
-
David authored
* 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 feedback
-
Niklas Adolfsson authored
* fix: update example to new proc macros * remove unused code * remove client builder
-
Niklas Adolfsson authored
-
- 09 Aug, 2021 1 commit
-
-
Niklas Adolfsson authored
To make sure that we are not affected by: - https://github.com/hyperium/hyper/security/advisories/GHSA-f3pg-qwvg-p99c - https://github.com/hyperium/hyper/security/advisories/GHSA-5h46-h7hh-c6x9 However, `hyper 13` is not fixed but I think we should remove that support anyway?!
-
- 05 Aug, 2021 1 commit
-
-
Niklas Adolfsson authored
* 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_query
-
- 27 Jul, 2021 1 commit
-
-
Maciej Hirsz authored
* 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 grumbles
-
- 15 Jul, 2021 1 commit
-
-
dependabot[bot] authored
Updates the requirements on [env_logger](https://github.com/env-logger-rs/env_logger) to permit the latest version. - [Release notes](https://github.com/env-logger-rs/env_logger/releases) - [Changelog](https://github.com/env-logger-rs/env_logger/blob/main/CHANGELOG.md) - [Commits](https://github.com/env-logger-rs/env_logger/compare/v0.8.0...v0.9.0 ) --- updated-dependencies: - dependency-name: env_logger dependency-type: direct:production ... Signed-off-by:
dependabot[bot] <support@github.com> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- 12 Jul, 2021 5 commits
-
-
Maciej Hirsz authored
* 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:
David <dvdplm@gmail.com> Co-authored-by:
David Palm <dvdplm@gmail.com>
-
David authored
* Only return the crate name when the crate is `jsonrpsee` as well * Sort out the type paths in the macros, this time for real (?) * fmt
-
David authored
* type paths in client macros * Tweak more paths * Helpers as well
-
David authored
* 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 imports
- 10 Jul, 2021 1 commit
-
-
David authored
* 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:
Maciej Hirsz <hello@maciej.codes>
-
- 08 Jul, 2021 1 commit
-
-
David authored
* [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:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> * 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:
Niklas Adolfsson <niklasadolfsson1@gmail.com> Co-authored-by:
Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com> Co-authored-by:
Maciej Hirsz <hello@maciej.codes>
-
- 01 Jul, 2021 3 commits
-
-
Igor Aleksanov authored
* 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:
Niklas Adolfsson <niklasadolfsson1@gmail.com> * Fix a couple of bugs in docs * Fix rendering subscription with params Co-authored-by:
Niklas Adolfsson <niklasadolfsson1@gmail.com>
-
Maciej Hirsz authored
* Streaming RpcParams parsing * DRY RpcParams::one again * Fix doc comments
-
Maciej Hirsz authored
* Set allowed Host header values * Error if allowed hosts list is empty * Grammar Co-authored-by:
David <dvdplm@gmail.com> Co-authored-by:
David <dvdplm@gmail.com>
-
- 30 Jun, 2021 2 commits
-
-
Maciej Hirsz authored
* 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 id
-
Niklas Adolfsson authored
* [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:
David <dvdplm@gmail.com> * correct subscription err messages Co-authored-by:
David <dvdplm@gmail.com>
-
- 29 Jun, 2021 1 commit
-
-
Niklas Adolfsson authored
* 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_value
-
- 25 Jun, 2021 1 commit
-
-
Niklas Adolfsson authored
* [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 whitespaces
-
- 24 Jun, 2021 2 commits
-
-
Igor Aleksanov authored
* Add a way to stop HTTP server * Add a way to stop WS server * Apply suggestions from code review Co-authored-by:
David <dvdplm@gmail.com> * Ensure the concrete type of error in stop test * Resolve merge artifacts * Add public re-exports of stop handle Co-authored-by:
David <dvdplm@gmail.com>
-
Niklas Adolfsson authored
* [jsonrpsee types]: unify types + more tests * address grumbles
-
- 23 Jun, 2021 1 commit
-
-
Igor Aleksanov authored
-
- 18 Jun, 2021 2 commits
-
-
Maciej Hirsz authored
* 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 panic
-
Maciej Hirsz authored
* 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:
James Wilson <james@jsdw.me> * Use a separate Arc counter for tracking max_connections Co-authored-by:
James Wilson <james@jsdw.me>
-
- 16 Jun, 2021 1 commit
-
-
Igor Aleksanov authored
* Use criterion's async bencher * Rewrite concurrent roundtrip in functional style
-
- 14 Jun, 2021 1 commit
-
-
Igor Aleksanov authored
* Add benches for async methods * Benches for subscriptions
-
- 10 Jun, 2021 1 commit
-
-
Niklas Adolfsson authored
-
- 08 Jun, 2021 1 commit
-
-
Igor Aleksanov authored
* Fix link to ws server in README.md * Fix http client as well
-
- 07 Jun, 2021 1 commit
-
-
Maciej Hirsz authored
-
- 04 Jun, 2021 3 commits
-
-
David authored
* Release prep * Mention proc macro limitations * Mention publish script
-
Niklas Adolfsson authored
* chore(scripts): publish script * use script from jsonrpc