Skip to content

deps: replace rtnetlink and nix with netlink-proto and rustix - #81

Open
shubham-kaushal wants to merge 1 commit into
n0-computer:mainfrom
outpostHQ:pr/rustix
Open

shubham-kaushal wants to merge 1 commit into
n0-computer:mainfrom
outpostHQ:pr/rustix

Conversation

@shubham-kaushal

Copy link
Copy Markdown

patchbay now uses netlink-proto, netlink-packet-route and rustix in place of rtnetlink and nix. netwatch uses the same netlink crates.

  • Cold cargo build -p patchbay on a 32-core VM, median of 3 runs: 11.1 s, main 16.8 s.
  • Cargo.lock has 381 packages, main has 388. nix is in the lock once, main has 2 copies.
  • The kernel writes the device name back into the struct ifreq of TUNSETIFF. The ioctl now gets a &mut request, not a & one, and a compile-time assert checks that IfReq has the size of libc::ifreq.
  • cargo nextest run --workspace --profile ci: 226 passed, 2 skipped.

This change removes rtnetlink, so #78 is not needed after it.

patchbay now uses the netlink crates of netwatch.

This branch has not been deployed

No deployments
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.

1 participant