forked from technocreatives/core2
-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
11 changed files
with
46 additions
and
44 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,22 +1,21 @@ | ||
[package] | ||
name = "bare-io" | ||
version = "0.2.1" | ||
name = "core2" | ||
version = "0.1.0" | ||
authors = ["Brendan Molloy <brendan@bbqsrc.net>"] | ||
description = "The bare essentials of std::io for use in no_std. Alloc support is optional." | ||
license = "Apache-2.0 OR MIT" | ||
edition = "2018" | ||
repository = "https://github.com/bbqsrc/bare-io" | ||
repository = "https://github.com/bbqsrc/core2" | ||
categories = ["no-std"] | ||
|
||
[dependencies] | ||
memchr = { version = "2", default-features = false } | ||
|
||
[features] | ||
default = [] | ||
alloc = [] | ||
default = ["std"] | ||
std = ["alloc"] | ||
alloc = [] | ||
nightly = [] | ||
std-nightly = ["std", "nightly"] | ||
|
||
[package.metadata.docs.rs] | ||
features = ["nightly"] |
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#[cfg(feature = "nightly")] | ||
mod buffered; | ||
mod cursor; | ||
mod error; | ||
mod impls; | ||
mod traits; | ||
mod util; | ||
|
||
#[cfg(not(feature = "std"))] | ||
pub use cursor::Cursor; | ||
#[cfg(not(feature = "std"))] | ||
pub use error::{Error, ErrorKind, Result}; | ||
#[cfg(not(feature = "std"))] | ||
pub use traits::{BufRead, Bytes, Chain, Read, Seek, SeekFrom, Take, Write}; | ||
|
||
#[cfg(feature = "std")] | ||
pub use std::io::{ | ||
BufRead, Bytes, Chain, Cursor, Error, ErrorKind, Read, Result, Seek, SeekFrom, Take, Write, | ||
}; | ||
|
||
// Use this crate's implementation on both std and no_std | ||
#[cfg(feature = "nightly")] | ||
pub use buffered::{BufReader, BufWriter, LineWriter}; | ||
|
||
#[cfg(feature = "nightly")] | ||
pub use util::copy; |
File renamed without changes.
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
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