- Apr 14, 2023
-
-
Niklas Adolfsson authored
-
- Apr 13, 2023
-
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
* Update Cargo.toml * docs: add keywords publishing on crates.io Close #970 * workspace: version and authors * use workspace dependencies to avoid speciyfing version * Update Cargo.toml
-
Niklas Adolfsson authored
* feat(server): configurable limit for batch requests. * Update server/src/server.rs * Update server/src/server.rs
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
-
- Apr 11, 2023
-
-
Niklas Adolfsson authored
* IntoResponse trait for rpc calls * remove ErrorResponse * cleanup, fix nits * separate types from ser/deserialization * fix uncommented code * add Success type * add missing dev-dep * fix tests with issue link * fix tests * add missing file * PartialResponse -> ResponsePayload * chore(deps): bump actions/checkout from 3.4.0 to 3.5.0 (#1055) Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 3.5.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.4.0...v3.5.0 ) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump baptiste0928/cargo-install from 1 to 2 (#1056) Bumps [baptiste0928/cargo-install](https://github.com/baptiste0928/cargo-install) from 1 to 2. - [Release notes](https://github.com/baptiste0928/cargo-install/releases) - [Changelog](https://github.com/baptiste0928/cargo-install/blob/main/CHANGELOG.md) - [Commits](https://github.com/baptiste0928/cargo-install/compare/v1...v2 ) --- updated-dependencies: - dependency-name: baptiste0928/cargo-install dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix: tokio v1.27 (#1062) * fix: tokio v1.27 * Update server/src/transport/ws.rs * fix rustdoc * Update server/src/transport/ws.rs * Update server/src/transport/ws.rs * no more futuredriver for incoming conns * add comment for unclear code * ResponsePayload Cow-like * fix ugly code * cleanup * address grumbles * ToOwned -> Clone * compile-time tests to workaround rustc bug * Update proc-macros/src/helpers.rs * add missing impls for Vec and [T; N] --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
-
- Apr 07, 2023
-
-
Niklas Adolfsson authored
-
- Apr 06, 2023
-
-
Niklas Adolfsson authored
-
- Mar 30, 2023
-
-
Niklas Adolfsson authored
* fix: tokio v1.27 * Update server/src/transport/ws.rs * fix rustdoc * Update server/src/transport/ws.rs * Update server/src/transport/ws.rs * no more futuredriver for incoming conns * add comment for unclear code
-
- Mar 24, 2023
-
-
dependabot[bot] authored
Bumps [baptiste0928/cargo-install](https://github.com/baptiste0928/cargo-install) from 1 to 2. - [Release notes](https://github.com/baptiste0928/cargo-install/releases) - [Changelog](https://github.com/baptiste0928/cargo-install/blob/main/CHANGELOG.md) - [Commits](https://github.com/baptiste0928/cargo-install/compare/v1...v2 ) --- updated-dependencies: - dependency-name: baptiste0928/cargo-install dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
dependabot[bot] authored
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.4.0 to 3.5.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.4.0...v3.5.0 ) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Mar 23, 2023
-
-
Niklas Adolfsson authored
* refactor subscription to return `Option<Result<>>` * address grumbles: change to Result<(), Option<M>> This changes the subscription API again to return `Result<(), Option<SubscriptionMessage>>` to work a little smoother with the combinators and it introduces an extention trait to make convert it `Result<T, Error>` to `Result<T, Option<SubscriptionMessage>>` This trait is implemented for types where it is possible and for custom types and tricky situations the user has to implement themselves. For instance it's not possible to implement on `TrySendError` because that depends on the use-case i.e. whether the channel is full should be regarded as an error or not. * remove weird default errors * fix tests * revert weird trait * introduce `IntoSubscriptionResult` * refactor: introduce subscription mod * impl StdError for subscription error types * fix nits + tests * fix doc tests * remove deadcode * Update server/src/tests/ws.rs * cleanup to make review easier * SubscriptionAcceptError -> PendingSubscriptionAcceptError * make it clear that SubscriptionPermit is mocked * remove deadcode * fix doc links * make register_subscription more readable * remove Option impl for IntoSubscriptionCloseResponse * fix tests * add test for subscription return type * fix nits * impl `IntoSubscriptionCloseResponse` for () * remove useless ui test * Update core/src/server/error.rs * register_subscription: change order of parameters * Update core/src/server/error.rs * Update proc-macros/src/lib.rs * fix doc link * proc macro: compile test for !Result * hacky solution * add niklas ugly hack for providing default value * fix hacks * cargo fmt * Update core/src/server/subscription.rs Co-authored-by: James Wilson <[email protected]> * fix grumbles * fix tests * add test for null notification * impl IntoSubscriptionResponse for Result<(), E> * more descriptive error impls * Update core/src/server/subscription.rs Co-authored-by: James Wilson <[email protected]> * update docs: Subscription::next * revert UI tests * proc macro tests: add subscription -> () * remove unused tokio feature * show failing test * fix tests * revert JSON str parsing * add `SerializeAsStr` error * show James * push hack to show James what I mean * SubscriptionResult = Result<(), StringError> * fix tests * address grumbles * Update core/src/server/subscription.rs * Update proc-macros/src/lib.rs * Update proc-macros/src/lib.rs * remove unused error variant SubscriptionCallbackError --------- Co-authored-by: James Wilson <[email protected]>
-
- Mar 21, 2023
-
-
Niklas Adolfsson authored
-
- Mar 16, 2023
-
-
dependabot[bot] authored
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.3.0 to 3.4.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.3.0...v3.4.0 ) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Giovanni Napoli authored
* use `Option` for `jsonrpc` field in `Response` * add tests for serializing/deserializing `Response` * cargo fmt * manage missing field in serializing
-
- Mar 14, 2023
-
-
Niklas Adolfsson authored
* refactor: ErrorResponse::error_object API * Update core/src/server/rpc_module.rs Co-authored-by: Alexandru Vasile <[email protected]> * address grumbles * fix ui tests --------- Co-authored-by: Alexandru Vasile <[email protected]>
-
- Mar 06, 2023
-
-
Niklas Adolfsson authored
* ci: add cargo-machete job * remove unused deps
-
- Mar 01, 2023
-
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
-
- Feb 27, 2023
-
-
dependabot[bot] authored
* chore(deps): update tower-http requirement from 0.3.4 to 0.4.0 Updates the requirements on [tower-http](https://github.com/tower-rs/tower-http) to permit the latest version. - [Release notes](https://github.com/tower-rs/tower-http/releases) - [Commits](https://github.com/tower-rs/tower-http/compare/tower-http-0.3.4...tower-http-0.4.0 ) --- updated-dependencies: - dependency-name: tower-http dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Update examples/Cargo.toml --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alexandru Vasile <[email protected]>
-
dependabot[bot] authored
Updates the requirements on [socket2](https://github.com/rust-lang/socket2) to permit the latest version. - [Release notes](https://github.com/rust-lang/socket2/releases) - [Changelog](https://github.com/rust-lang/socket2/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/socket2/commits/v0.5.1 ) --- updated-dependencies: - dependency-name: socket2 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Feb 24, 2023
-
-
dependabot[bot] authored
Bumps [Swatinem/rust-cache](https://github.com/Swatinem/rust-cache) from 2.2.0 to 2.2.1. - [Release notes](https://github.com/Swatinem/rust-cache/releases) - [Changelog](https://github.com/Swatinem/rust-cache/blob/master/CHANGELOG.md) - [Commits](https://github.com/Swatinem/rust-cache/compare/v2.2.0...v2.2.1 ) --- updated-dependencies: - dependency-name: Swatinem/rust-cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Feb 23, 2023
-
-
bear authored
-
- Feb 22, 2023
-
-
Niklas Adolfsson authored
* rpc module: remove `SubscriptionAnswer` This abstraction is not very nice and I think it's more readable with Result<MethodResult, Id> anyway so let's remove it. * Update server/src/transport/ws.rs
-
- Feb 21, 2023
-
-
Xiliang Chen authored
-
- Feb 20, 2023
-
-
Xiliang Chen authored
* update MethodKind * fmt
-
- Feb 18, 2023
-
-
Xiliang Chen authored
* remove batch response * fmt * Update core/src/server/helpers.rs Co-authored-by: Niklas Adolfsson <[email protected]> * fix --------- Co-authored-by: Niklas Adolfsson <[email protected]>
-
- Feb 17, 2023
-
-
Xiliang Chen authored
-
- Feb 16, 2023
-
-
Niklas Adolfsson authored
* fix server: don't send error JSON-RPC notification * Update server/src/transport/ws.rs * add comment to test
-
Niklas Adolfsson authored
-
- Feb 15, 2023
-
-
Niklas Adolfsson authored
-
Niklas Adolfsson authored
* rpc_module: split `close` to `close_with_err_notif` * Update core/src/server/rpc_module.rs * fix grumbles * Update examples/examples/ws_pubsub_with_params.rs
-
- Feb 13, 2023
-
-
Niklas Adolfsson authored
* client: rename `max_buffer_capacity_per_sub` rename `max_notifs_per_subscription` to `max_buffer_capacity_per_sub` * Update core/src/client/mod.rs
-
- Feb 09, 2023
-
-
bear authored
* chore: update error code * chore: format * chore: try fix ci * chore: fix ci
-
- Feb 08, 2023
-
-
Niklas Adolfsson authored
* bounded channels * remove bounded subscriptions * remove resource limiting * kill connection once message tx fails * switch to tokio::mpsc * fix nits * make futures_channel hard dependency * add real backpressure to rx * PoC with crossbeam queue * remove pipe_from_stream * bring back Pending and SubscriptionSink again * more refactoring * add example of old APIs * introduce opaque SubscriptionMessage * feat: make subscription callbacks async * fix tests * move non-jsonrpc spec types from types * fix nits * improve docs * add pipe_from_stream APIs back * cleanup * Update core/src/server/helpers.rs * Update server/src/server.rs * more cleanup * Update core/src/server/helpers.rs * small fixes * rpc module: add unit test for backpressure * doc fixes * fix more nits * refactor: pipe_from_stream * fix examples: revert unintentional change * address grumbles * revert: don't require subscriptions to return Result * Update core/src/server/helpers.rs Co-authored-by: Alexandru Vasile <[email protected]> * grumbles: simplify PendingSubscription * grumbles: fix doc nits * remove pipe_from_stream APIs again * add backpressure test for ws server * rpc module: add `send_timeout` APIs * rpc module: add tokio/time * cleanup * Update examples/Cargo.toml * Update server/src/server.rs * Update server/src/server.rs * Update server/src/server.rs * extract `build_message` to `SubscriptionMessage` * remove resource limiting leftover * Update core/src/server/rpc_module.rs * Update examples/examples/ws_pubsub_broadcast.rs * Update examples/examples/ws_pubsub_broadcast.rs * revert unintentional change * Update examples/examples/ws_pubsub_with_params.rs * fix more nits * improve SubscriptionEmptyErr * clippy --fix * bring back subscription limit * server: `set_message_buffer_capacity` * rpc module: revert raw_json_request API * subscribe_bounded -> subscribe * CallResponse -> CallOrSubscription --------- Co-authored-by: Alexandru Vasile <[email protected]>
-