Skip to content

Commit df337d1

Browse files
committed
Fix serial read hang
Check following for details: * serialport/serialport-rs#7 * serialport/serialport-rs#192
1 parent 24349a4 commit df337d1

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,15 @@ version = "0.1.0"
9191
default-features = false
9292
features = ["sync"]
9393
path = "lib"
94+
95+
# Fix https://github.com/serialport/serialport-rs/issues/7 by applying
96+
# patch from https://github.com/serialport/serialport-rs/pull/192.
97+
[patch.crates-io.serialport]
98+
git = "https://github.com/im-0/serialport-rs"
99+
rev = "eb60844272f60d8df5271605a122cb9ef7bf6209"
100+
101+
# Bring back VMIN=1 so async does not break after fixing
102+
# https://github.com/serialport/serialport-rs/issues/7.
103+
[patch.crates-io.mio-serial]
104+
git = "https://github.com/im-0/mio-serial"
105+
rev = "2411c0abbb976c08f28aa090309c1c81ad605a19"

0 commit comments

Comments
 (0)