1. Jan 21, 2022
    • Niklas Adolfsson's avatar
      feat(rpc module): `stream API` for SubscriptionSink (#639) · 9bd21274
      Niklas Adolfsson authored
      
      
      * feat(rpc module): add_stream to subscription sink
      
      * fix some nits
      
      * unify parameters to rpc methods
      
      * Update core/src/server/rpc_module.rs
      
      * Update tests/tests/integration_tests.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * address grumbles
      
      * fix subscription tests
      
      * new type for `SubscriptionCallback` and glue code
      
      * remove unsed code
      
      * remove todo
      
      * add missing feature tokio/macros
      
      * make `add_stream` cancel-safe
      
      * rename add_stream and return status
      
      * fix nits
      
      * rename stream API -> streamify
      
      * Update core/src/server/rpc_module.rs
      
      * provide proper close reason
      
      * spelling
      
      * consume_and_streamify + docs
      
      * fmt
      
      * rename API pipe_from_stream
      
      * improve logging; indicate which subscription method that failed
      
      Co-authored-by: default avatarDavid <[email protected]>
      9bd21274
    • Niklas Adolfsson's avatar
      fix: nit in WsError (#662) · 429c196d
      Niklas Adolfsson authored
      429c196d
  2. Jan 19, 2022
  3. Jan 10, 2022
  4. Jan 06, 2022
  5. Jan 05, 2022
    • Niklas Adolfsson's avatar
      fix(http server): handle post and option HTTP requests properly. (#637) · 6f99a038
      Niklas Adolfsson authored
      
      
      * fix(http server): handle post and option requests.
      
      * Update http-server/src/response.rs
      
      * fmt
      
      * grumbles: validate CORS before checking method kind
      
      * revert unintentional change
      
      * Add A few tests around CORS and http method/header acceptance
      
      * Tweak the CORS test
      
      * return appropriate headers for CORS preflight response
      
      * cargo fmt
      
      * jsonrpc, not jsonrpsee in test requests
      
      * don't test OPTIONS method in unsupported_methods test as it has different expectations
      
      * Update tests/tests/integration_tests.rs
      
      * Update tests/tests/integration_tests.rs
      
      * Update tests/tests/integration_tests.rs
      
      * Update tests/tests/integration_tests.rs
      
      * Add an example to test CORS in browser, and a couple of fixes to CORS handling
      
      * cargo fmt
      
      * Update examples/cors_server.rs
      
      Co-authored-by: default avatarJames Wilson <[email protected]>
      6f99a038
  6. Dec 22, 2021
  7. Dec 21, 2021
  8. Dec 20, 2021
    • 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: default avatarDavid <[email protected]>
      
      * Update client/core-client/src/lib.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * cargo fmt
      
      * Update client/ws-client/src/lib.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update client/ws-client/src/lib.rs
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * 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: default avatarDavid <[email protected]>
      292bd88a
  9. Dec 17, 2021
    • 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: default avatarNiklas Adolfsson <[email protected]>
      
      * fmt
      
      * Feature gate the Client trait
      
      * Move `Client` traits to `client` module
      
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      e159c449
  10. Dec 15, 2021
  11. Dec 14, 2021
  12. Dec 13, 2021
  13. Dec 10, 2021
  14. Dec 09, 2021
  15. Dec 08, 2021
  16. Dec 07, 2021
  17. Dec 06, 2021
  18. Dec 02, 2021
    • Alexander Samusev's avatar
      Create gitlab pipeline (#534) · 66aa6c49
      Alexander Samusev authored
      
      
      * add badge to readme
      
      * first version of pipeline
      
      * Update .gitlab-ci.yml
      
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      
      * add pre-cache script
      
      * fmt and clippy stable
      
      * add check and test
      
      * remove output text file from bench
      
      * Update scripts/ci/pre_cache.sh
      
      Co-authored-by: default avatarDavid <[email protected]>
      
      * Update .gitlab-ci.yml
      
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      
      * small fix
      
      * fix test and schedule
      
      * CI: verbose is a surplus
      
      * CI: separately check rustdoc linx
      
      * fix refs
      
      * add bench to gh-pages
      
      * fix refs
      
      * fix benchmarks
      
      * added vault to ci
      
      * fix vars
      
      * comment bench
      
      * fix benches name
      
      * added script to push benchmark results to VM
      
      * make script executable
      
      * change bench psuh executor
      
      * changed benchmark task to run on a dedicated node pool
      
      * change prometheus metric name for benchmarks
      
      * send 2 metrics with benchmark results
      
      * disable non-schedule jobs from schedule run
      
      * empty commit for benchmark test
      
      * change metric name
      
      * empty commit for benchmark test
      
      * empty commit for benchmark test
      
      * add cirunner label to vm metric
      
      * split vm metric to 2 metrics
      
      * change runner description to runner tag in ci scripts
      
      * add pass runner tags from benchmark to publish job
      
      * change runner tag to runner description
      
      * add debug message
      
      * empty commit for test
      
      * empty commit for test
      
      * Update .scripts/ci/push_bench_results.sh
      
      Co-authored-by: default avatarDenis Pisarev <[email protected]>
      
      * add defaults, remove dups, change ci image for publish-bench
      
      * remove pre_cache.sh
      
      * move interruptible to defaults
      
      * add issue to fixme comment
      
      Co-authored-by: default avatarNiklas Adolfsson <[email protected]>
      Co-authored-by: default avatarDavid <[email protected]>
      Co-authored-by: default avatarDenis P <[email protected]>
      Co-authored-by: default avatarDenis Pisarev <[email protected]>
      66aa6c49
  19. Dec 01, 2021