-
Notifications
You must be signed in to change notification settings - Fork 20
Make features optional #24
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
Comments
Thanks a lot for the feedback! I think there are indeed a couple of simple dependencies that could be dropped (e.g. However I don't want to start introducing cargo-features for each specific sub-areas. That would introduce a matrix of cases for API-maintenance and testing. All methods so far are covering the main systemd API and they are non-optional there, and this crate it's just sticking to that direction. |
Please consider this in the context of https://raphlinus.github.io/rust/2019/08/21/rust-bloat.html. In agersant/polaris#40 I added It's fair if you don't want to introduce feature gates for extra functionality, though. Perhaps there's room for a |
I've published https://crates.io/crates/sd-notify, which offers a workaround for this. |
That makes sense to me. Is there anything I can do to make parallel maintenance easier? I don't plan to touch this module in the short term, except for an async version at some point when the dust settles on the rest of the ecosystem. |
No, I don't think so. My implementation is mostly inspired from yours (so you could use it as a dependency, but.. meh). I'm more worried about how neither of them conforms to what the C library does, like credential passing and increasing the send buffer size. |
This crate is nifty, but it has quite a lot of dependencies. For example, a lot of apps might be interested only in the
notify
functionality, which presumably doesn't need external crates.The text was updated successfully, but these errors were encountered: