Registry / utility / core-io

core-io

JSON →
library0.1.20210325rscratesunverified

Provides Read and Write traits for no_std environments, ported from libstd::io.

# Cargo.toml [dependencies] core_io = "0.1.20210325"
INSTALL
IMPORT
SIG · CORE-IO
C
core-io
utilityrustv0.1.20210325
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.

Read
✓ use core_io::{Read, Write};

Reads bytes from a slice using the Read trait.

use core_io::{Read, Write}; fn main() { let mut data: &[u8] = b"hello"; let mut buf = [0u8; 5]; data.read(&mut buf).unwrap(); println!("{:?}", buf); }
Debug
Known issues
gotchaThis crate is a copy of libstd::io; some features may be missing or behave differently in no_std.
fix
Test thoroughly in your target environment.
affects: >=0.1.0
Upgrade
Version history
0.1.20210325latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
core-io — cargo add core-io · libregistry