Skip to content

update polling to 3.x - #279

Closed
Fabian-Gruenbichler wants to merge 1 commit into
keepsimple1:mainfrom
Fabian-Gruenbichler:pr/update-polling-3
Closed

update polling to 3.x#279
Fabian-Gruenbichler wants to merge 1 commit into
keepsimple1:mainfrom
Fabian-Gruenbichler:pr/update-polling-3

Conversation

@Fabian-Gruenbichler

Copy link
Copy Markdown

didn't do any in-depth tests and don't know this code base all to well, so please don't hesitate to do things differently as you see fit.

Debian has recently upgrade to polling 3.x, and this is one of the few packaged crates still using the 2.x release series..

Signed-off-by: Fabian Grünbichler <git@fabian.gruenbichler.email>
Comment thread src/service_daemon.rs
&zc.signal_sock,
polling::Event::readable(SIGNAL_SOCK_EVENT_KEY),
) {
#[allow(unsafe_code)]

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR! I want to keep this library safe code only, unless we really have to break it.

Let me take a look at our options.

@keepsimple1

Copy link
Copy Markdown
Owner

As I wanted to keep this lib safe code only, and polling 3.x does not provide a safe API (add is unsafe), I'm trying to move away from polling and use mio instead (see PR #280 ).

Could you please confirm if mio 1.0 is allowed / packaged in Debian? Thanks!

@Fabian-Gruenbichler

Copy link
Copy Markdown
Author

it is (in unstable/testing, which will become trixie/stable next year :))

https://tracker.debian.org/pkg/rust-mio

@keepsimple1

Copy link
Copy Markdown
Owner

Thanks for confirming. I've merged PR #280, which replaced this PR. Will close this PR now. If any related questions, please feel free to open a new issue or PR. Thanks!

@keepsimple1 keepsimple1 closed this Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants