1. Dec 01, 2021
    • Niklas Adolfsson's avatar
      deps: tokio ^1.8 (#586) · bdc25a88
      Niklas Adolfsson authored
      bdc25a88
    • Maciej Hirsz's avatar
      Middleware for metrics (#576) · 1657e26b
      Maciej Hirsz authored
      
      
      * Squashed MethodSink
      
      * Middleware WIP
      
      * Passing all the information through
      
      * Unnecessary `false`
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Add a setter for middleware (#577)
      
      * Fix try-build tests
      
      * Add a middleware setter and an example
      
      * Actually add the example
      
      * Grumbles
      
      * Use an atomic
      
      * Set middleware with a constructor instead
      
      * Resolve a todo
      
      * Update ws-server/src/server.rs
      
      Co-authored-by: default avatarMaciej Hirsz <[email protected]>
      
      * Update ws-server/src/server.rs
      
      Co-authored-by: default avatarMaciej Hirsz <[email protected]>
      
      * Update ws-server/src/server.rs
      
      Co-authored-by: default avatarMaciej Hirsz <[email protected]>
      
      Co-authored-by: default avatarMaciej Hirsz <[email protected]>
      
      * Middleware::on_response for batches
      
      * Middleware in HTTP
      
      * fmt
      
      * Server builder for HTTP
      
      * Use actual time in the example
      
      * HTTP example
      
      * Middleware to capture method not found calls
      
      * An example of adding multiple middlewares. (#581)
      
      * Add an example of adding multiple middlewares.
      
      * Update examples/multi-middleware.rs
      
      Co-authored-by: default avatarMaciej Hirsz <[email protected]>
      
      * Update examples/Cargo.toml
      
      Co-authored-by: default avatarMaciej Hirsz <[email protected]>
      
      Co-authored-by: default avatarMaciej Hirsz <[email protected]>
      
      * Move `Middleware` to jsonrpsee-types (#582)
      
      * Move `Middleware` to jsonrpsee-types
      
      * Move Middleware trait to jsonrpsee-types
      
      * Add some docs.
      
      * Link middleware to `with_middleware` methods in docs
      
      * Doctests
      
      * Doc comment fixed
      
      * Clean up a TODO
      
      * Switch back to `set_middleware`
      
      * fmt
      
      * Tests
      
      * Add `on_connect` and `on_disconnect`
      
      * Add note to future selves
      
      Co-authored-by: default avatarDavid <[email protected]>
      1657e26b
  2. Nov 30, 2021
  3. Nov 29, 2021
  4. Nov 26, 2021
  5. Nov 25, 2021
  6. Nov 24, 2021
  7. Nov 23, 2021
  8. Nov 22, 2021
  9. Nov 21, 2021
    • Alexandru Vasile's avatar
      proc-macros: Support deprecated methods for rpc client (#570) · 9a3c1e98
      Alexandru Vasile authored
      * proc-macros: Fix documentation typo of `rpc_identifier`
      
      * proc-macros: Support deprecated methods for rpc client (#564)
      
      Calling a deprecated method of the RPC client should warn
      the user at compile-time.
      
      Extract the `#[deprecated]` macro as is while parsing the
      RpcMethod, and pass through the macro to the RPC client
      rendering.
      
      * tests/ui: Check deprecated method for rpc client (#564)
      
      To ensure that the test will fail during compilation,
      warnings are denied.
      
      Check that the deprecate macro will generate warnings
      just for the methods that are utilized.
      9a3c1e98
  10. Nov 19, 2021
  11. Nov 18, 2021
  12. Nov 17, 2021
  13. Nov 11, 2021
  14. Nov 10, 2021
  15. Nov 09, 2021
  16. Nov 08, 2021
  17. Nov 05, 2021
  18. Nov 03, 2021
    • ¯\_(ツ)_/¯'s avatar
      Proc mac support map param (#544) · ff3337b1
      ¯\_(ツ)_/¯ authored
      * feat(proc_macro): add support for map arguments
      
      * feat(proc_macro): formatting
      
      * feat(proc_macro): fix issues with Into trait
      
      * feat(proc_macro): param_format for methods
      
      * feat(proc_macro): improve param_format checking
      
      - Addressed @niklasad1
      
      's suggestion to use an Option instead of just
      defaulting to "array".
      
      * feat(proc_macro): apply suggestions, add test case
      
      - Use enum for param format.
      - Extract parsing logic into separate function.
      - Add ui test.
      
      * feat(proc_macro): run cargo fmt
      
      * feat(proc_macro): address suggestions
      
      * feat(proc_macro): document param_kind argument
      
      * feat(proc_macro):  consistent spacing
      
      Apply @maciejhirsz formatting suggestion.
      
      Co-authored-by: default avatarMaciej Hirsz <[email protected]>
      
      * feat(proc_macro): apply suggestions
      
      - make parameter encoding DRY
      - remove strings from param_kind
      - return result from parse_param_kind
      
      * feat(proc_macro): formatting
      
      Co-authored-by: default avatarMaciej Hirsz <[email protected]>
      ff3337b1
  19. Nov 01, 2021
  20. Oct 29, 2021
  21. Oct 21, 2021
  22. Oct 18, 2021
  23. Oct 17, 2021
    • Niklas Adolfsson's avatar
      benches: add option to run benchmarks against jsonrpc crate servers (#527) · 0b435556
      Niklas Adolfsson authored
      * fix http client bench with request limit
      
      * benches for jsonrpc servers
      
      * workaround; dont use max request limit
      
      * add subscriptions
      
      * revert unintentional change
      
      * ignore batch request bench for ws
      
      * fmt
      
      * log -> tracing
      
      * test bench CI
      
      * test bench v0.3
      
      * wtf; run CI
      
      * work plz
      
      * remove test CI bench
      
      * fix compile warn on macos
      0b435556
  24. Oct 15, 2021
    • Niklas Adolfsson's avatar
      switch to the tracing crate (#525) · 37474f45
      Niklas Adolfsson authored
      37474f45
    • Maciej Hirsz's avatar
      Re-introduce object param parsing (#526) · af16b390
      Maciej Hirsz authored
      * Re-introduce object param parsing
      
      * fmt and unnecessary collect
      af16b390
    • Maciej Hirsz's avatar
      `register_blocking_method` (#523) · 50b172e2
      Maciej Hirsz authored
      * register_blocking_method
      
      * Support `blocking` flag in `#[method]`
      
      * Macro support and tests
      
      * MacOS CI fails if there are too many blocking tasks
      
      * conn_id is never used in async callbacks
      
      * Dry-run blocking callbacks to maybe satisfy MacOS CI
      
      * Make tokio optional behind server feature flag
      
      * Document `blocking` flag use in `#[method]`
      
      * Comment why the test is disabled on mac
      
      * Fix warnings on macos tests
      50b172e2
  25. Oct 14, 2021
  26. Oct 13, 2021
  27. Oct 12, 2021