Skip to content

Commit

Permalink
Replace the polling crate with rustix code
Browse files Browse the repository at this point in the history
This removes the use of the "polling" crate for interacting with
epoll/kqueue/etc, in favour of doing so ourselves using rustix. This
reduces the number of dependencies, gives us greater control over how
polling is performed, and ensures we're not impacted by any undesired
upstream changes. For more details, refer to
#344 (comment).

This fixes #344.

Changelog: changed
  • Loading branch information
yorickpeterse committed Apr 5, 2024
1 parent 2f320e5 commit e90b0dc
Show file tree
Hide file tree
Showing 7 changed files with 267 additions and 240 deletions.
132 changes: 14 additions & 118 deletions Cargo.lock

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

3 changes: 1 addition & 2 deletions rt/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ crossbeam-queue = "^0.3"
# (e.g. signal management) we still need to use libc in those cases.
libc = "^0.2"
rand = { version = "^0.8", features = ["default", "small_rng"] }
polling = "^2.8"
unicode-segmentation = "^1.10"
backtrace = "^0.3"
rustix = { version = "^0.38", features = ["fs", "mm", "param", "process", "net", "std", "time"], default-features = false }
rustix = { version = "^0.38", features = ["fs", "mm", "param", "process", "net", "std", "time", "event"], default-features = false }

[dependencies.socket2]
version = "^0.5"
Expand Down
Loading

0 comments on commit e90b0dc

Please sign in to comment.