1. 22 Dec, 2021 2 commits
  2. 20 Dec, 2021 1 commit
    • Niklas Adolfsson's avatar
      extract async client abstraction. (#580) · 292bd88a
      Niklas Adolfsson authored
      
      
      * extract ws client to async client
      
      * bring back jsonrpsee-ws-client crate
      
      * new crate core client
      
      * add missing file
      
      * jsonrpsee crate: add core client
      
      * rexport core client
      
      * more re-exports
      
      * downgrade trait bounds
      
      * update version
      
      * fix nits
      
      * send close reason
      
      * Update types/src/traits.rs
      
      * move 'TEN_MB_CONST' to core
      
      * Update client/core-client/Cargo.toml
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      
      * Update client/core-client/src/lib.rs
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      
      * cargo fmt
      
      * Update client/ws-client/src/lib.rs
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      
      * Update client/ws-client/src/lib.rs
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      
      * move `async-client` core
      
      The `async-client` is hidden behind a new feature flag `async-client`
      because it brings in additional dependecies such as tokio rt.
      
      * fix docs
      
      * add example how to use "core client"
      
      * fix build
      
      * Update http-server/Cargo.toml
      
      * Update client/transport/Cargo.toml
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      292bd88a
  3. 17 Dec, 2021 1 commit
    • Maciej Hirsz's avatar
      Crate restructuring (#590) · e159c449
      Maciej Hirsz authored
      
      
      * Nuke V2
      
      * fmt
      
      * Formatting and imports
      
      * Updated benches
      
      * Fix doc comment link
      
      * Brace imports in ws-server
      
      * Reworking imports
      
      * std first
      
      * fmt
      
      * std on top
      
      * Update to match changed line numbers
      
      * Rename jsonrpsee_utils -> jsonrpsee_core
      
      * Migrating things types -> core
      
      * RpcError -> ErrorResponse
      
      * Merge types::client into core::client
      
      * Continued move types -> core
      
      * Removing features to make checks pass
      
      * Move rpc_module tests to tests crate
      
      * Fixed doc comment links
      
      * Add futures-util dependency for client
      
      * Remove dead code
      
      Co-authored-by: Niklas Adolfsson's avatarNiklas Adolfsson <niklasadolfsson1@gmail.com>
      
      * fmt
      
      * Feature gate the Client trait
      
      * Move `Client` traits to `client` module
      
      Co-authored-by: Niklas Adolfsson's avatarNiklas Adolfsson <niklasadolfsson1@gmail.com>
      e159c449
  4. 07 Dec, 2021 1 commit
  5. 06 Dec, 2021 1 commit
    • Niklas Adolfsson's avatar
      clients: feature gate `tls` (#545) · 3f1c7fcf
      Niklas Adolfsson authored
      * clients: introduce tls feature flag
      
      * Update tests/tests/integration_tests.rs
      
      * fix: don't rebuild tls connector of every connect
      
      * fix tests + remove url dep
      
      * fix tests again
      3f1c7fcf
  6. 01 Dec, 2021 2 commits
  7. 26 Nov, 2021 1 commit
  8. 24 Nov, 2021 1 commit
  9. 22 Nov, 2021 1 commit
  10. 05 Nov, 2021 1 commit
  11. 29 Oct, 2021 1 commit
  12. 15 Oct, 2021 1 commit
  13. 12 Oct, 2021 2 commits
  14. 24 Sep, 2021 1 commit
  15. 13 Aug, 2021 1 commit
  16. 09 Aug, 2021 1 commit
  17. 12 Jul, 2021 1 commit
    • David's avatar
      Prepare v0.3.0 (#415) · 0f66093e
      David authored
      * 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
      v0.3.0
      0f66093e
  18. 08 Jul, 2021 1 commit
  19. 04 Jun, 2021 1 commit
  20. 31 May, 2021 1 commit
  21. 27 May, 2021 1 commit
  22. 27 Apr, 2021 1 commit
  23. 21 Apr, 2021 1 commit
  24. 20 Apr, 2021 2 commits
    • Niklas Adolfsson's avatar
      prep to release 0.2.0-alpha.5 (#278) · 09d6df17
      Niklas Adolfsson authored
      09d6df17
    • Niklas Adolfsson's avatar
      [client] use types v2 (less alloc) (#269) · 31153ac7
      Niklas Adolfsson authored
      * rewrite me
      
      * v2
      
      * PoC works without batch request
      
      * remove `PartialEq` bounds
      
      * add naive benches types
      
      * misc
      
      * remove useless lifetime
      
      * [ws client]: move request ID generation to client
      
      * make tests compile again
      
      * [client transport]: kill leaky abstractions.
      
      * [http client transport]: minor changes in the API.
      
      * [ws client]: fix batch requests.
      
      * fix nits
      
      * [ws client]: generate two request IDs for subscrib
      
      * fix tests
      
      * remove unused types + less alloc for params.
      
      * fix nits
      
      * more tweaks.
      
      * remove unused code
      
      * fix more nits
      
      * remove unused legacy types
      
      * reorg types_v2 mod
      
      * port macros to new types
      
      * fix tests again; more jsonvalue
      
      * [proc macros]: bring back impl Into for params.
      
      * fix build
      
      * [proc macros]: make it work for external crates.
      
      * [types]: remove weird From<Option<T>> to impl.
      
      * cleanup again
      
      * [examples]: remove unused async-std dep
      
      * Update types/src/v2/mod.rs
      
      * [types]: remove unsed dep smallvec
      
      * rewrite me
      
      * [types]: error code impl ser/deser
      
      Manual implementation of serialize/deserialize to get rid of duplicated message string
      
      * [types v2]: re-org with explicit mods
      
      * fix faulty test
      
      * add missed files
      
      * [ws client]: req_manager reserve unsubscribe slot.
      
      * simplify test code
      
      * add tracking issue for TODO
      
      * remove unused deps
      31153ac7
  25. 16 Apr, 2021 1 commit
  26. 12 Apr, 2021 1 commit
  27. 02 Apr, 2021 1 commit
  28. 31 Mar, 2021 1 commit
    • Niklas Adolfsson's avatar
      [client] batch requests (#216) · b8bd715d
      Niklas Adolfsson authored
      
      
      * feat(http client): batch requests
      
      * fix(http batch request): request in any order.
      
      * Update src/types/jsonrpc/id.rs
      
      * tests(batch out-of-order): make it less confusing.
      
      * fix nit: `cloned` -> `copied`
      
      * fix bad merge
      
      * [client]: batch request generic response
      
      * wait with impl
      
      * [ws client]: add template for batch requests
      
      * remove jsonvalue
      
      * naive impl
      
      * fix make it work,
      
      The implemenation is quite inefficient because the responses might be unordered.
      Currently, a "digest" of a BTreeSet is stored to sort the requestIDs
      and don't have to try all combinations of requestIDs in the response.
      
      * fix nits
      
      * error handling
      
      * fix nits
      
      * more nits
      
      * use error msg pattern
      
      * add batch requests to client trait
      
      Keep it simple by require `Vec<(Method, Params)>` could be improved.
      
      * address review comments: use swap_remove
      
      Replace read values with `Vec::swap_remove` instead inserting dummy value.
      The reason is that `Vec::remove` is O(n)
      
      * address review grumbles: batch trait bound Default
      
      * don't be clever
      
      * [http client]: faster lookup for batch request.
      
      * fix: distguish request_id and batch_id
      
      * thanks clippy
      
      * fix: clarify bad response with a separate error
      
      * fix tests
      
      * add issue link to todo
      
      * Update types/src/error.rs
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      b8bd715d
  29. 17 Mar, 2021 1 commit
  30. 12 Mar, 2021 1 commit
  31. 09 Mar, 2021 1 commit
  32. 04 Mar, 2021 1 commit
  33. 02 Mar, 2021 1 commit
    • Niklas Adolfsson's avatar
      feat: client trait + porting client proc macros (#199) · 50d8bf78
      Niklas Adolfsson authored
      
      
      * draft: client trait sketch...
      
      * use async_trait instead of `Box<Future>`
      
      * refactor client trait
      
      * [types]: shared client types.
      
      * integrate with `jsonrpsee_proc_macros::rpc_api`
      
      * Update proc-macros/src/lib.rs
      
      * integrate with proc macros
      
      * fix: hacky support for generic types in proc macro
      
      * fix: make the examples work.
      
      * trait: error associated type
      
      * Update types/src/traits.rs
      
      * client trait: make object safe.
      
      Make the trait usable as a trait object i.e, `Box<dyn Trait>`
      
      * client trait: remove `Self::Sized`
      
      * add tests for proc macros.
      
      * fix build
      
      * fmt
      
      * [client trait]: remove unused associated error typ
      
      * [proc macros]: separate enum variant each return_t
      
      * add tracking issue to `TODO`
      
      * doc(client trait): improve documentation.
      
      * separate trait for subscribing client
      
      * add documentation
      
      * proc macros: remove debug impl
      
      * fix compile warns
      
      * address grumbles: remove fn process_response
      
      * Update types/src/client.rs
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      
      * Update types/src/client.rs
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      
      * Update types/src/client.rs
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      
      * Update types/src/client.rs
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      
      * Update types/src/client.rs
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      
      * remove old proc macro tests
      
      * address grumbles: shorter lines
      
      Co-authored-by: David's avatarDavid <dvdplm@gmail.com>
      50d8bf78
  34. 15 Feb, 2021 1 commit
  35. 12 Feb, 2021 1 commit
  36. 10 Feb, 2021 1 commit