diff options
author | 2019-09-05 14:00:23 -0700 | |
---|---|---|
committer | 2019-09-05 14:00:23 -0700 | |
commit | c17e40115f5bb2a2db71ed90dceae6ec643dc024 (patch) | |
tree | 5457d4a726f8e16120c02976fa8b07caf07df0f1 /src/buf/take.rs | |
parent | 73426dfaa3e56884977d7822b79696ac2cc96a42 (diff) | |
download | bytes-c17e40115f5bb2a2db71ed90dceae6ec643dc024.tar.gz bytes-c17e40115f5bb2a2db71ed90dceae6ec643dc024.tar.zst bytes-c17e40115f5bb2a2db71ed90dceae6ec643dc024.zip |
Add no_std support, by adding an `std` feature (#281)
To make the library work as `no_std` we add an `std` feature which
is on by default. When it is off, we compile as `no_std` and make
parts of the API that require `std::io` conditional on the `std`
feature.
Diffstat (limited to 'src/buf/take.rs')
-rw-r--r-- | src/buf/take.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buf/take.rs b/src/buf/take.rs index d4b1881..03f3141 100644 --- a/src/buf/take.rs +++ b/src/buf/take.rs @@ -1,6 +1,6 @@ use crate::Buf; -use std::cmp; +use core::cmp; /// A `Buf` adapter which limits the bytes read from an underlying buffer. /// |