-
Notifications
You must be signed in to change notification settings - Fork 205
unify usage of JSON via Box<RawValue> #1545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
33ad778
feat: client rpc middleware
niklasad1 401dfc1
PoC works
niklasad1 11d7b4d
cargo fmt
niklasad1 622bffd
more refactoring
niklasad1 56be708
Merge remote-tracking branch 'origin/master' into na-client-rpc-middl…
niklasad1 93c9b6f
use Cow in Notification to avoid alloc
niklasad1 5929436
cleanup some todos
niklasad1 946afee
Merge remote-tracking branch 'origin/master' into na-client-rpc-middl…
niklasad1 ff64b91
rpc trait: return Result<MethodResponse, Err>
niklasad1 9515e40
remove infallible err
niklasad1 062ead3
make it compile
niklasad1 d52740b
fix tests
niklasad1 b508470
introduce client method response type
niklasad1 dec873f
fix faulty imports
niklasad1 3aa828d
minor cleanup
niklasad1 b1e3b41
introduce Batch/BatchEntry for middleware
niklasad1 46ef085
remove ignore for batch test
niklasad1 5759407
fix rustdocs
niklasad1 ee75d58
add rpc middleware for the async client
niklasad1 79216b5
remove serialize specific types
niklasad1 8849af5
commit missing file
niklasad1 6a6e3aa
no serde_json::Value
niklasad1 02fb917
more nit fixing
niklasad1 09b4e0b
more cleanup
niklasad1 763cad6
refactor method response client
niklasad1 0e2adb0
fix some nits
niklasad1 6b80964
add client middleware rpc
niklasad1 631d7c0
fix wasm build
niklasad1 4ddee29
Merge remote-tracking branch 'origin/master' into na-client-rpc-middl…
niklasad1 a7324d3
add client middleware example
niklasad1 38b5261
Update examples/examples/rpc_middleware_client.rs
niklasad1 9640517
ToJson -> RawValue
niklasad1 100bda0
Merge remote-tracking branch 'origin/master' into na-client-rpc-middl…
niklasad1 b051bd6
replace Future type with impl Trait
niklasad1 f03371a
revert changelog
niklasad1 cc08ebf
remove logger response future
niklasad1 9936607
some cleanup
niklasad1 4149181
move request timeout from transport to client
niklasad1 8161e01
more nit fixing
niklasad1 1f73b97
have pass over examples
niklasad1 de1461d
show proper batch middleware example
niklasad1 a148135
middleware: clean up batch type
niklasad1 5285fc4
fix wasm build
niklasad1 54c7fe3
Update Cargo.toml
niklasad1 cc7807e
doc: fix typo
niklasad1 f722acd
core: remove tracing mod
niklasad1 ed4fb5b
fix more clippy
niklasad1 76d56c5
refactor: use json rawvalue
niklasad1 9671152
replace StringError with SubscriptionErr
niklasad1 cdc8465
Merge remote-tracking branch 'origin/master' into na-json-raw-value
niklasad1 822b7ba
cleanup json APIs with RawValue
niklasad1 ebcd810
cleanup and fix tests
niklasad1 6088a06
remove from_json api
niklasad1 50ce885
revert faulty change in types
niklasad1 f1448aa
revert faulty change in types v2
niklasad1 b995cfd
fix rustdocs
niklasad1 add0baf
use explicit JSON null value instead of default
niklasad1 f9b3117
Merge remote-tracking branch 'origin/master' into na-json-raw-value
niklasad1 0039e3a
cleanup Rawvalue::from_string usage
niklasad1 03603e0
fix tests
niklasad1 cccd706
Update core/src/traits.rs
niklasad1 c0e8a34
Update benches/bench.rs
niklasad1 01f76fd
Update core/src/params.rs
niklasad1 601d623
cleanup expects on RawValue
niklasad1 dfd6df3
improve docs
niklasad1 51ce03f
replace manual serialization with to_raw_value
niklasad1 ca3e5bf
fix clippy
niklasad1 097f084
fix nit
niklasad1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.