- Mar 16, 2020
-
-
Alexey Ivushkin authored
* Add correct response on incorrect JSON Implement correct response on requests with incorrect JSON instead of just panic. Errors in `body_to_request` are propagated to response if they occurred before request deserialization * Remove imports and use :: syntax within functions Co-Authored-By: Pierre Krieger <[email protected]> * Fix module path * Apply cargo fmt after name resolution Co-authored-by: Pierre Krieger <[email protected]>
-
Alexey Ivushkin authored
As described in [JSON-RPC specs](https://www.jsonrpc.org/specification), server errors must be used only for errors from server implementation. They can take only values from -32099 to -32000, and library users must not use them to describe business logic errors. I separated them from user code errors, and now users must use MethodError to describe errors from business logic
-
- Feb 28, 2020
-
-
Pierre Krieger authored
* Deny intra_doc_link_resolution_failure on travis only * Fix nightly not installed * Actually fix links * Last link
-
Pierre Krieger authored
* Move common to crate root * Move transport traits to own module * Hide transport::client and transport::server * Move ws and http to transport * Typo fix * Remove the shortcuts for raw client and servers * Rename core to raw * Remove commented-out code * Fix docs of raw module * Rustfmt * Force inline * Rustfmt
-
- Feb 26, 2020
-
-
Pierre Krieger authored
* Merge all the crates into one * Rustfmt * Fix examples * Fix tests
-
- Feb 24, 2020
-
-
Hernando Castano authored
* New rpc attribute for rpc_api macro allowing methods to have positional args. * Fix some whitespace issues * Make Cargo Fmt happy again Co-authored-by: Jim Posen <[email protected]>
-
- Feb 19, 2020
-
-
Pierre Krieger authored
* Prepare core for no_std support * Fix missing documentation thingies * Rustfmt * For some reason my local rustfmt didn't pick up these changes * Fix compilation * Rustfmt
-
Qinxuan Chen authored
* Replace err-derive with thiserror * Remove some useless dependencies Signed-off-by: koushiro <[email protected]>
-
- Jan 28, 2020
-
-
- Jan 20, 2020
-
-
* Experiment using TLS for ws client * Polkadot example works * Fmt * Support both Plain and Tls streams * Dependencies in alphabetic order * Use url scheme in connect to determine Plain or Tls * Fmt * Fix mode match * License and docs stream.rs * Move url parsing to ClientBuilder * Remove commented out line, remove default port from wss
-
* Fix panic when dropping subscription * Remove remove active subscription
-
- Jan 13, 2020
-
-
* Export client module for Subscription and Error types * Update polkadot example to use Client subscription
-
- Jan 09, 2020
-
-
* Update to stable futures * Fix breaking hyper and tokio changes * Fix breaking soketto changes * Try to fix hyper update errors * Fix remaining hyper compilation error * Update futures timer * Update to tokio 0.2 * Enable basic_scheduler * Enable logging in example * Bind server inside runtime context * Format code * Return error via channel if async server bind fails * Apply suggestions from code review Co-Authored-By: Pierre Krieger <[email protected]> * Question mark Co-authored-by: Pierre Krieger <[email protected]>
-
- Jan 03, 2020
-
-
Pierre Krieger authored
* local() -> local_raw() and add local() * Add shortcuts in lib.rs
-
Pierre Krieger authored
* Rename Client/Server -> RawClient/RawServer * SharedClient/Server -> Client/Server * Rename http/ws constructors * Rustfmt * Fix some bad renames * Rustfmt * More fixing
-
Pierre Krieger authored
* Add a SharedServer * More work * More work * More work * Make it work * Copyright update * Finish work
-
* Add Deserialize type constraint on server for generic params * Add generic type params to Tmp struct * fmt Co-authored-by: Pierre Krieger <[email protected]>
-
- Jan 02, 2020
-
-
Pierre Krieger authored
-
Pierre Krieger authored
* Add a SharedClient * More work * More work * More work * Finish Sharedclient * Fix merge conflict * Add From impl
-
- Nov 22, 2019
-
-
Pierre Krieger authored
* RawClient -> TransportClient * RawServer -> TransportServer * Rustfmt
-
- Nov 21, 2019
-
-
Pierre Krieger authored
-
Pierre Krieger authored
-
Pierre Krieger authored
* Add ClientActiveSubscription::is_closing * Rustfmt
-
- Nov 19, 2019
-
-
Pierre Krieger authored
* Allow closing a subscription from the client side * Rustfmt
-
- Nov 18, 2019
-
-
Fixes #26.
-
Pierre Krieger authored
* Apply Rustfmt and add a CI check * Install rustfmt
-
Pierre Krieger authored
-
Pierre Krieger authored
-
* Add initial acl implementation * Implemented access control with utilities from paritytech::jsonrpc * Incorrect if * Make allowed_hosts an enum * Handling CORS in process_request * Build for AccessControl and naming coherence * "clean up your room! clean up your room ! that's all i ever hear..." - preflight requests - test and bench - wasm for yew * Add basic acl tests for 'host' * Remove 'macro_use' * Apply rustfmt to server-utils * Apply rustfmt to http * Bump lazy_static dependency
-
Pierre Krieger authored
* Try make CI pass again * Use stable Rust
-
- Nov 16, 2019
-
-
Pierre Krieger authored
-
Pierre Krieger authored
-
- Nov 15, 2019
-
-
Pierre Krieger authored
* Run rustfmt on core * Apply rustfmt on ws * Apply rustfmt on proc-macro
-
Pierre Krieger authored
* Don't modify ApiDefinition; instead clone the generics * Split client functions impl block into own function * Some doc
-
- Nov 14, 2019
-
-
Pierre Krieger authored
* Servers can no longer error * Add comment about errors * Fix comment
-
Pierre Krieger authored
-
Pierre Krieger authored
-
- Nov 09, 2019
-
-
Pierre Krieger authored
-
- Oct 31, 2019
-
-
Pierre Krieger authored
* Support generics in proc macro * Some work on allowing generics for the proc macro
-
- Oct 30, 2019
-
-
Pierre Krieger authored
-