tokio-tun breaking changes
tokio-tun 1.0.0 (November 8, 2026) is its newest release with breaking changes, 40 of them. The first: Removed tokio_tun::Error. Every breaking API change we have recorded in tokio-tun on crates.io: 40 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.0.0, released November 8, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
tokio-tun 1.0.0 breaking changes
- Removed
tokio_tun::Error
The crate's Error type is replaced by std::io::Error; update error type references. crates.io - Removed
tokio_tun::Result
The crate's Result type is replaced by std::io::Result; update result type references. crates.io - Removed
tokio_tun::Tun::send_all
Tun::send_all was removed; use send or sendv for packet-oriented writes. crates.io - Removed
tokio_tun::Tun::sendv_all
Tun::sendv_all was removed; use send or sendv for packet-oriented writes. crates.io - Removed
tokio_tun::TunQueue::send_all
TunQueue::send_all was removed; use send or sendv for packet-oriented writes. crates.io - Removed
tokio_tun::TunQueue::sendv_all
TunQueue::sendv_all was removed; use send or sendv for packet-oriented writes. crates.io - Behavior changed
AsyncWrite
A short native write is reported as WriteZero instead of a partial count, so write_all no longer splits a packet. github.com - Behavior changed
Tun.recv
recv and try_recv return io::Result<Packet> instead of io::Result<usize>; code using the returned count must read packet.payload or equivalent. github.com - Behavior changed
Tun.send
send, sendv, try_send and try_sendv return io::Result<()> instead of io::Result<usize>. github.com - Behavior changed
Tun.sendv
sendv returns io::Result<()> instead of io::Result<usize>. github.com - Behavior changed
Tun.try_recv
try_recv returns io::Result<Packet> instead of io::Result<usize>. github.com - Behavior changed
Tun.try_send
try_send returns io::Result<()> instead of io::Result<usize>. github.com - Behavior changed
Tun.try_sendv
try_sendv returns io::Result<()> instead of io::Result<usize>. github.com - Signature changed
tokio_tun::Tun::address
Was fn address(&self) -> Result<IpAddr>; now fn address(&self) -> io::Result<IpAddr>. crates.io - Signature changed
tokio_tun::Tun::addresses
Was fn addresses(&self) -> Result<Vec<AddressInfo>>; now fn addresses(&self) -> io::Result<Vec<AddressInfo>>. crates.io - Signature changed
tokio_tun::Tun::broadcast
Was fn broadcast(&self) -> Result<Ipv4Addr>; now fn broadcast(&self) -> io::Result<Ipv4Addr>. crates.io - Signature changed
tokio_tun::Tun::destination
Was fn destination(&self) -> Result<IpAddr>; now fn destination(&self) -> io::Result<IpAddr>. crates.io - Signature changed
tokio_tun::Tun::flags
flags returns u32 instead of i16; update any code relying on the old type. crates.io - Signature changed
tokio_tun::Tun::index
Was fn index(&self) -> Result<u32>; now fn index(&self) -> io::Result<u32>. crates.io - Signature changed
tokio_tun::Tun::mac_address
Was fn mac_address(&self) -> Result<[u8; 6]>; now fn mac_address(&self) -> io::Result<[u8; 6]>. crates.io - Signature changed
tokio_tun::Tun::mtu
Was fn mtu(&self) -> Result<i32>; now fn mtu(&self) -> io::Result<i32>. crates.io - Signature changed
tokio_tun::Tun::netmask
Was fn netmask(&self) -> Result<Ipv4Addr>; now fn netmask(&self) -> io::Result<Ipv4Addr>. crates.io - Signature changed
tokio_tun::Tun::recv
Was async fn recv(&self, buf: &mut [u8]) -> io::Result<usize>; now async fn recv<'a>(&self, buf: &'a mut [u8]) -> io::Result<Packet<'a>>. crates.io - Signature changed
tokio_tun::Tun::send
Was async fn send(&self, buf: &[u8]) -> io::Result<usize>; now async fn send<'a, P>(&self, packet: P) -> io::Result<()> where P: Into<Packet<'a>>,. crates.io - Signature changed
tokio_tun::Tun::sendv
Was async fn sendv(&self, bufs: &[IoSlice<'_>]) -> io::Result<usize>; now async fn sendv(&self, packet: &[IoSlice<'_>]) -> io::Result<()>. crates.io - Signature changed
tokio_tun::Tun::set_mac_address
Was fn set_mac_address(&self, mac: [u8; 6]) -> Result<()>; now fn set_mac_address(&self, mac: [u8; 6]) -> io::Result<()>. crates.io - Signature changed
tokio_tun::Tun::try_recv
Was fn try_recv(&self, buf: &mut [u8]) -> io::Result<usize>; now fn try_recv<'a>(&self, buf: &'a mut [u8]) -> io::Result<Packet<'a>>. crates.io - Signature changed
tokio_tun::Tun::try_send
Was fn try_send(&self, buf: &[u8]) -> io::Result<usize>; now fn try_send<'a, P>(&self, packet: P) -> io::Result<()> where P: Into<Packet<'a>>,. crates.io - Signature changed
tokio_tun::Tun::try_sendv
Was fn try_sendv(&self, bufs: &[IoSlice<'_>]) -> io::Result<usize>; now fn try_sendv(&self, packet: &[IoSlice<'_>]) -> io::Result<()>. crates.io - Signature changed
tokio_tun::TunBuilder::build
Was fn build(self) -> Result<Vec<Tun>>; now fn build(self) -> io::Result<Vec<Tun>>. crates.io - Signature changed
tokio_tun::TunBuilder::group
group takes u32 instead of i32; update argument types. crates.io - Signature changed
tokio_tun::TunBuilder::owner
owner takes u32 instead of i32; update argument types. crates.io - Signature changed
tokio_tun::TunQueue
Was struct TunQueue(AsyncFd<TunIo>); now struct TunQueue(AsyncFd<TunIo>, #[cfg(target_os = "linux")] usize, #[cfg(target_os = "linux")] bool). crates.io - Signature changed
tokio_tun::TunQueue::recv
Was async fn recv(&self, buf: &mut [u8]) -> io::Result<usize>; now async fn recv<'a>(&self, buf: &'a mut [u8]) -> io::Result<Packet<'a>>. crates.io - Signature changed
tokio_tun::TunQueue::send
Was async fn send(&self, buf: &[u8]) -> io::Result<usize>; now async fn send<'a, P>(&self, packet: P) -> io::Result<()> where P: Into<Packet<'a>>,. crates.io - Signature changed
tokio_tun::TunQueue::sendv
Was async fn sendv(&self, bufs: &[IoSlice<'_>]) -> io::Result<usize>; now async fn sendv(&self, packet: &[IoSlice<'_>]) -> io::Result<()>. crates.io - Signature changed
tokio_tun::TunQueue::try_recv
Was fn try_recv(&self, buf: &mut [u8]) -> io::Result<usize>; now fn try_recv<'a>(&self, buf: &'a mut [u8]) -> io::Result<Packet<'a>>. crates.io - Signature changed
tokio_tun::TunQueue::try_send
Was fn try_send(&self, buf: &[u8]) -> io::Result<usize>; now fn try_send<'a, P>(&self, packet: P) -> io::Result<()> where P: Into<Packet<'a>>,. crates.io - Signature changed
tokio_tun::TunQueue::try_sendv
Was fn try_sendv(&self, bufs: &[IoSlice<'_>]) -> io::Result<usize>; now fn try_sendv(&self, packet: &[IoSlice<'_>]) -> io::Result<()>. crates.io - Signature changed
tokio_tun::TunQueue::vnet_hdr_len
vnet_hdr_len returns usize instead of io::Result<usize>. crates.io
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.