1. Nov 22, 2021
  2. 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
  3. Nov 19, 2021
  4. Nov 18, 2021
  5. Nov 17, 2021
  6. Nov 11, 2021
  7. Nov 10, 2021
  8. Nov 09, 2021
  9. Nov 08, 2021
  10. Nov 05, 2021
  11. 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
  12. Nov 01, 2021
  13. Oct 29, 2021
  14. Oct 21, 2021
  15. Oct 18, 2021
  16. 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
  17. 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
  18. Oct 14, 2021
  19. Oct 13, 2021
  20. Oct 12, 2021
  21. Oct 11, 2021
    • Niklas Adolfsson's avatar
      [http server]: use tokio::spawn internally in `HttpServer::start` and return `StopHandle` (#402) · 6fb61dc1
      Niklas Adolfsson authored
      
      
      * [ws server]: refactor start()
      
      * remove needless clone
      
      * fix http server too
      
      * fmt
      
      * unify stop APIs
      
      * fix bad merge
      
      * add API to use custom tokio runtime
      
      * use futures oneshot
      
      * fix unintentional change
      
      * Revert "use futures oneshot"
      
      This reverts commit 0432f6ba41d49a3494943458657a31f8afd79160.
      
      * Update http-server/src/server.rs
      
      Co-authored-by: default avatarMaciej Hirsz <[email protected]>
      
      Co-authored-by: default avatarMaciej Hirsz <[email protected]>
      6fb61dc1
    • Maciej Hirsz's avatar
      Proc macro Argument parsing should permit commas inside angle brackets (#509) · 03e72bfb
      Maciej Hirsz authored
      * Remove unused import
      
      * Add a simple test for angle braces in arguments
      
      * Argument parsing should permit commas inside angle brackets
      
      * Add a comment, move test to trybuild
      03e72bfb
    • David's avatar
      ParamsSer::NoParams no more (#508) · d2f78037
      David authored
      d2f78037
    • Niklas Adolfsson's avatar
      [http server]: use similar API for host and origin filtering as `WS` (#473) · 7a9ebc91
      Niklas Adolfsson authored
      
      
      * use similar API for HTTP ACL builder
      
      * revert unintentional change
      
      * fix nits
      
      * Update http-server/src/access_control/mod.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * grumbles
      
      Co-authored-by: default avatarDavid <[email protected]>
      7a9ebc91
    • Niklas Adolfsson's avatar
      remove `ParamsSer::NoParams` (#501) · b3e4297b
      Niklas Adolfsson authored
      * fix(ParamsSer): serialize to empty array
      
      Serialize `ParamsSer::NoParams` to an empty array inorder to comply with the jsonrpc v2 spec.
      
      * fix tests
      
      * remove ParamsSer::NoParams
      
      * address grumbles: adjust rpc params macro
      b3e4297b
    • Niklas Adolfsson's avatar
      improve SubscriptionClosed error (#504) · 36bdb85e
      Niklas Adolfsson authored
      Closing #485
      36bdb85e
    • Maciej Hirsz's avatar
      Resource Limiting (#500) · 518a6155
      Maciej Hirsz authored
      
      
      * Squash post merge
      
      * RAII claims and some comments
      
      * Adding resources to Methods
      
      * Use arrays for claiming all resources at once
      
      * Register resources on ws-server
      
      * Return MethodResourcesBuilder from register_method
      
      * Return MethodResourcesBuilder from register_async_method
      
      * fmt and comments
      
      * Add `verify_and_insert` to get rid of `or_insert` in order to get mut ref to value
      
      * Resources initialization
      
      * No need for ResourceBuilder
      
      * Comment all the things
      
      * Handle errors on ws-server `start` method
      
      * Passing ResourceGuard to method execution
      
      * Start ws-server in background, simplify all the tests!
      
      * Claiming resources on runtime
      
      * Do checked math on resource claiming
      
      * Clearer error path for resources at limit
      
      * Resource limiting tests WIP
      
      * Unbox async futures
      
      * fmt
      
      * Cleaner proc macro
      
      * Fix lifetime issues with ResourceGuard with internal Arc
      
      * Remove unnecessary lifetime generic
      
      * Working tests
      
      * Use turbofish in tests
      
      * fmt
      
      * Fixed (?) benches
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Tweak more grumbles
      
      * Adding a test for resource limiting with proc macros (WIP)
      
      * Reworking attribute macros for resource limiting (#507)
      
      * Squashed macros WIP
      
      * bae-less macros!
      
      * Make things simpler and more readable
      
      * Some comments and DRY aliases parsing
      
      * Naming things is hard
      
      * Respan is no longer needed
      
      * Simpler Arguments
      
      * Remove stale code
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      
      * syn-up all the things, handle resources on methods
      
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      
      * Resource limiting on the http server
      
      * Test two resources at once
      
      * Test the HTTP server for resource limiting
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarDavid <[email protected]>
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      
      * Comment tweaks
      
      * More explicit error type for `AttributeMeta::retain`
      
      * Remove generic from ResourceTable; derive Default on ws Builder
      
      * Make the macros shorter
      
      Co-authored-by: default avatarDavid <[email protected]>
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      518a6155