Registry / networking / tokio-byteorder

tokio-byteorder

JSON →
library0.3.0rscratesunverified

An asynchronous library for reading and writing numbers in big-endian and little-endian byte order.

# Cargo.toml [dependencies] tokio-byteorder = "0.3.0"
INSTALL
IMPORT
SIG · TOKIO-BYTEORDER
T
tokio-byteorder
networkingrustv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AsyncReadBytesExt
use tokio_byteorder::AsyncReadBytesExt;

Read a u32 asynchronously from a reader.

use tokio_byteorder::AsyncReadBytesExt; use tokio::io::AsyncRead; async fn read_u32<R: AsyncRead + Unpin>(reader: &mut R) -> std::io::Result<u32> { reader.read_u32().await }
Debug
Known issues
gotchaRequires Tokio runtime to be active for async I/O.
fix
Ensure you are running within a Tokio runtime, e.g., #[tokio::main].
affects: >=0.3.0
Upgrade
Version history
0.3.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
37 hits · last 30 days
node
32
Amazon
1
OpenAI (training)
1
Resources
tokio-byteorder — cargo add tokio-byteorder · libregistry