This repository has been archived by the owner on Jul 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
7 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,8 @@ | ||
//! Copy from [serde-rs/json](https://github.com/serde-rs/json/blob/0de7b516f504b5c1df1774425eef18efb132ed93/src/io/mod.rs) | ||
//! 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::{Result, Write}; | ||
pub use self::io::{Result, Write}; | ||
|
||
#[cfg(not(feature = "std"))] | ||
#[path = "core.rs"] | ||
mod imp; | ||
mod io; | ||
|
||
#[cfg(feature = "std")] | ||
use std::io as imp; | ||
use std::io; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters