Skip to main content

Crate core3

Crate core3 

Source
Expand description

§core3

The bare essentials of std::io for use in no_std environments. Drop-in successor to core2.

When the std feature is enabled (default), this crate re-exports std::io directly with zero overhead. When running without std, it provides its own implementations of the core I/O traits and types.

§Usage

use core3::io::{Read, Write, Cursor};

§Features

  • std (default) - re-exports std::io
  • alloc - enables Vec<u8> impls and allocating Read methods

§Migrating from core2

# Before
core2 = { version = "0.4", default-features = false }
# After
core3 = { version = "0.1", default-features = false }

Then replace core2::io with core3::io in your source.

Modules§

io
Traits, helpers, and type definitions for core I/O functionality.