Sha256: fd1ed5080495cab21117f6f7d3c2c9e3687cad0c69a0cd087b08a145a9e672da

Contents?: true

Size: 684 Bytes

Versions: 31

Compression:

Stored size: 684 Bytes

Contents

//! A tiny, `no_std`-friendly facade around `std::io`.
//! Reexports types from `std` when available; otherwise reimplements and
//! provides some of the core logic.
//!
//! The main reason that `std::io` hasn't found itself reexported as part of
//! the `core` crate is the `std::io::{Read, Write}` traits' reliance on
//! `std::io::Error`, which may contain internally a heap-allocated `Box<Error>`
//! and/or now relying on OS-specific `std::backtrace::Backtrace`.

pub use self::imp::{Error, ErrorKind, Result, Write};

#[cfg(not(feature = "std"))]
#[path = "core.rs"]
mod imp;

#[cfg(feature = "std")]
use std::io as imp;

#[cfg(feature = "std")]
pub use std::io::{Bytes, Read};

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/serde_json-1.0.137/src/io/mod.rs
wasmtime-28.0.0 ./ext/cargo-vendor/serde_json-1.0.135/src/io/mod.rs
wasmtime-27.0.0 ./ext/cargo-vendor/serde_json-1.0.133/src/io/mod.rs
wasmtime-26.0.0 ./ext/cargo-vendor/serde_json-1.0.132/src/io/mod.rs
wasmtime-25.0.2 ./ext/cargo-vendor/serde_json-1.0.125/src/io/mod.rs
wasmtime-25.0.1 ./ext/cargo-vendor/serde_json-1.0.125/src/io/mod.rs
wasmtime-25.0.0 ./ext/cargo-vendor/serde_json-1.0.125/src/io/mod.rs
wasmtime-24.0.0 ./ext/cargo-vendor/serde_json-1.0.125/src/io/mod.rs
wasmtime-23.0.2 ./ext/cargo-vendor/serde_json-1.0.111/src/io/mod.rs
wasmtime-22.0.0 ./ext/cargo-vendor/serde_json-1.0.111/src/io/mod.rs
wasmtime-21.0.1 ./ext/cargo-vendor/serde_json-1.0.111/src/io/mod.rs
wasmtime-20.0.2 ./ext/cargo-vendor/serde_json-1.0.111/src/io/mod.rs
wasmtime-20.0.0 ./ext/cargo-vendor/serde_json-1.0.111/src/io/mod.rs
wasmtime-18.0.3 ./ext/cargo-vendor/serde_json-1.0.111/src/io/mod.rs
wasmtime-17.0.1 ./ext/cargo-vendor/serde_json-1.0.111/src/io/mod.rs
wasmtime-17.0.0 ./ext/cargo-vendor/serde_json-1.0.111/src/io/mod.rs
wasmtime-16.0.0 ./ext/cargo-vendor/serde_json-1.0.111/src/io/mod.rs
wasmtime-15.0.1 ./ext/cargo-vendor/serde_json-1.0.111/src/io/mod.rs
wasmtime-15.0.0 ./ext/cargo-vendor/serde_json-1.0.111/src/io/mod.rs
wasmtime-14.0.4 ./ext/cargo-vendor/serde_json-1.0.107/src/io/mod.rs