---
title: "tokio-tun 1.0.0 Breaking Changes on crates.io | Since.dev"
description: "What each tokio-tun release removed, renamed or changed: 40 breaking changes in 1 version on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/tokio-tun
last_updated: 2026-12-04
---

# 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

Latest version `1.0.0`, released November 8, 2026. [Source repository](https://github.com/yaa110/tokio-tun)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

## tokio-tun 1.0.0 breaking changes

tokio-tun 1.0.0, released November 8, 2026: 40 breaking changes.

- **Removed** `tokio_tun::Error`  

The crate's Error type is replaced by std::io::Error; update error type references. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **Removed** `tokio_tun::Result`  

The crate's Result type is replaced by std::io::Result; update result type references. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **Removed** `tokio_tun::Tun::send_all`  

Tun::send_all was removed; use send or sendv for packet-oriented writes. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **Removed** `tokio_tun::Tun::sendv_all`  

Tun::sendv_all was removed; use send or sendv for packet-oriented writes. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **Removed** `tokio_tun::TunQueue::send_all`  

TunQueue::send_all was removed; use send or sendv for packet-oriented writes. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **Removed** `tokio_tun::TunQueue::sendv_all`  

TunQueue::sendv_all was removed; use send or sendv for packet-oriented writes. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://github.com/yaa110/tokio-tun/releases/tag/v1.0.0)
- **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](https://github.com/yaa110/tokio-tun/releases/tag/v1.0.0)
- **Behavior changed** `Tun.send`  

send, sendv, try_send and try_sendv return io::Result<()> instead of io::Result\<usize>. [github.com](https://github.com/yaa110/tokio-tun/releases/tag/v1.0.0)
- **Behavior changed** `Tun.sendv`  

sendv returns io::Result<()> instead of io::Result\<usize>. [github.com](https://github.com/yaa110/tokio-tun/releases/tag/v1.0.0)
- **Behavior changed** `Tun.try_recv`  

try_recv returns io::Result\<Packet> instead of io::Result\<usize>. [github.com](https://github.com/yaa110/tokio-tun/releases/tag/v1.0.0)
- **Behavior changed** `Tun.try_send`  

try_send returns io::Result<()> instead of io::Result\<usize>. [github.com](https://github.com/yaa110/tokio-tun/releases/tag/v1.0.0)
- **Behavior changed** `Tun.try_sendv`  

try_sendv returns io::Result<()> instead of io::Result\<usize>. [github.com](https://github.com/yaa110/tokio-tun/releases/tag/v1.0.0)
- **Signature changed** `tokio_tun::Tun::address`  

Was fn address(&self) -> Result\<IpAddr>; now fn address(&self) -> io::Result\<IpAddr>. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **Signature changed** `tokio_tun::Tun::addresses`  

Was fn addresses(&self) -> Result\<Vec\<AddressInfo>>; now fn addresses(&self) -> io::Result\<Vec\<AddressInfo>>. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **Signature changed** `tokio_tun::Tun::broadcast`  

Was fn broadcast(&self) -> Result\<Ipv4Addr>; now fn broadcast(&self) -> io::Result\<Ipv4Addr>. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **Signature changed** `tokio_tun::Tun::destination`  

Was fn destination(&self) -> Result\<IpAddr>; now fn destination(&self) -> io::Result\<IpAddr>. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **Signature changed** `tokio_tun::Tun::flags`  

flags returns u32 instead of i16; update any code relying on the old type. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **Signature changed** `tokio_tun::Tun::index`  

Was fn index(&self) -> Result\<u32>; now fn index(&self) -> io::Result\<u32>. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://crates.io/crates/tokio-tun/1.0.0)
- **Signature changed** `tokio_tun::Tun::mtu`  

Was fn mtu(&self) -> Result\<i32>; now fn mtu(&self) -> io::Result\<i32>. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **Signature changed** `tokio_tun::Tun::netmask`  

Was fn netmask(&self) -> Result\<Ipv4Addr>; now fn netmask(&self) -> io::Result\<Ipv4Addr>. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://crates.io/crates/tokio-tun/1.0.0)
- **Signature changed** `tokio_tun::TunBuilder::build`  

Was fn build(self) -> Result\<Vec\<Tun>>; now fn build(self) -> io::Result\<Vec\<Tun>>. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **Signature changed** `tokio_tun::TunBuilder::group`  

group takes u32 instead of i32; update argument types. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **Signature changed** `tokio_tun::TunBuilder::owner`  

owner takes u32 instead of i32; update argument types. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://crates.io/crates/tokio-tun/1.0.0)
- **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](https://crates.io/crates/tokio-tun/1.0.0)
- **Signature changed** `tokio_tun::TunQueue::vnet_hdr_len`  

vnet_hdr_len returns usize instead of io::Result\<usize>. [crates.io](https://crates.io/crates/tokio-tun/1.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
