-
Notifications
You must be signed in to change notification settings - Fork 4
feat: fix minimal crates and update dependencies #19
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
Conversation
Documentation for this PR has been generated and is available at: https://n0-computer.github.io/net-tools/pr/19/docs/net_tools/ Last updated: 2025-05-05T09:56:51Z |
@link2xt I am trying to reduce the chaos that is rtnetlink, could you check if this version still works for you? |
This at least compiles in chatmail/core#6687 I also tested that backup transfer works. |
thanks @link2xt that's great news, as this means we can stop carrying two different versions of netlink |
26d8425
to
8212a5c
Compare
This is currently blocked on a release of rust-netlink/netlink-packet-route#161 to restore android |
There is now a netlink-packet-route 0.23.0, but rtnetlink needs an update of netlink-packet-route dependency: |
@link2xt good news, I managed to just inline the parts of |
I updated PR chatmail/core#6687 and built my Android. |
0d2ef1f
to
35dc8eb
Compare
35dc8eb
to
3502b13
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can just barely squint at the code, I'm really unfamiliar with netlink and such code in general. So looking at both the old and new code I feel a little out of depth, but I can comment on what I was squinting at I guess, and it was fine.
} | ||
|
||
#[cfg(not(target_os = "android"))] | ||
async fn default_route_netlink() -> Result<Option<DefaultRouteDetails>, Error> { | ||
mod sane { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mod android
and mod sane
🙃 😂
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
somewhere I have to express my disgust with the android platform chaos, pretending to be linux, but not being it
#[cfg(any(target_os = "android", test))] | ||
fn parse_android_ip_route(stdout: &str) -> Option<&str> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should move this into mod android
and make mod android
cfg(test)
as well (and just run it in the test once).
(How flaky can running shell commands be?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't run tests with target_os=android
which is why I have this work around
Depends on - [x] n0-computer/net-tools#19 - [x] n0-computer/n0-future#3
fix minimal dependencies
portmapper: update igd-next
netwatch: update to latest
netlink
crates and drop direct dependency onrtnetlink
Depends on chore: fix minimal crate versions n0-future#3