Skip to content
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

Refactor IPC API implementation #116

Merged
merged 22 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
0c3a13b
Refactor IPC API implementation
Dampfwalze Apr 13, 2024
42c8232
Add test to Client
Dampfwalze Apr 13, 2024
d4113e9
Return error when client.readable() has error
Dampfwalze Apr 14, 2024
7fe54a3
Remove unnecessary print
Dampfwalze Apr 14, 2024
8736ac4
Save `Receiver` instead of `Sender` in `Client`, which ensures all se…
Dampfwalze Apr 14, 2024
cfcac14
Improve test
Dampfwalze Apr 14, 2024
7928078
Change `add_event_receiver()` to return subscription object
Dampfwalze Apr 14, 2024
4df0813
Fix test sometimes running forever
Dampfwalze Apr 14, 2024
b7e2fde
Add test `event_receiver_cancel_from_cb`
Dampfwalze Apr 14, 2024
e410178
Add doc string to `add_event_receiver`
Dampfwalze Apr 14, 2024
4b3a724
Refactor doc strings
Dampfwalze Apr 14, 2024
2d9baba
Improve test `event_receiver_cancel_from_cb` (check that the callback…
Dampfwalze Apr 14, 2024
1985a40
Add duplicate functionality
Dampfwalze Apr 14, 2024
fc6e852
Handle panics in event receiver callback
Dampfwalze Apr 14, 2024
5533832
Fix event receiver canceled when subscription dropped
Dampfwalze Apr 14, 2024
f026228
Correctly handle lagged error in `request_state()`
Dampfwalze Apr 15, 2024
2e30f1e
Improve driver ipc api errors
Dampfwalze Jun 24, 2024
be4a184
Change `receive_event` to return `Result`
Dampfwalze Jun 24, 2024
fe1fbee
Resolve warnings
Dampfwalze Jun 24, 2024
48e9ea4
Remove `IpcError` since it is not used anymore
Dampfwalze Jun 24, 2024
c7c55a3
Change `Client::connect` and `Client::connect_to` to be async
Dampfwalze Jun 24, 2024
2eae9d8
Merge branch 'master' into driver-ipc-api
MolotovCherry Jun 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 38 additions & 11 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 18 additions & 1 deletion rust/driver-ipc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,21 @@ windows = { version = "0.54.0", features = ["Win32_Foundation"] }
lazy_format = "2.0.3"
joinery = "3.1.0"
winreg = "0.52.0"
tokio = { version = "1.37.0", features = ["full"] }
tokio = { version = "1.37.0", features = [
"rt-multi-thread",
"sync",
"time",
"net",
"macros",
] }
tokio-stream = { version = "0.1.15", features = ["sync"] }

[dev-dependencies]
tokio = { version = "1.37.0", features = [
"rt-multi-thread",
"sync",
"time",
"net",
"macros",
"io-util",
] }
Loading
Loading