Registry / utility / core2
libraryrscratesunverified

Provides the essential parts of std::io for use in no_std environments, with optional alloc support.

# Cargo.toml [dependencies] core2 = "latest"
INSTALL
IMPORT
SIG · CORE2
C
core2
utilityrust
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 core2::io::Read;

Reads bytes from a cursor in a no_std context using core2's Read trait.

use core2::io::{Read, Cursor}; let data = [1, 2, 3]; let mut cursor = Cursor::new(&data); let mut buf = [0u8; 3]; cursor.read(&mut buf).unwrap(); assert_eq!(buf, [1, 2, 3]);
Debug
Known issues
gotchaNot all std::io features are available; some traits may have different method signatures.
fix
Refer to the crate documentation for the exact API differences and feature flags.
affects: >=0.1.0
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
core2 — cargo add core2 · libregistry