source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11"
-[[package]]
-name = "cervine"
-version = "0.0.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9f0db89834ef04fc63d2f136327b42d532b45def0345213d28690a3446c7bdb5"
-
[[package]]
name = "cfg-if"
version = "1.0.0"
dependencies = [
"backtrace",
"base64",
- "cervine",
"educe",
+ "either",
"env_logger",
"extend",
"eyre",
backtrace = "0.3"
base64 = "0.13"
educe = "0.4"
+either = "1"
env_logger = "0.9"
futures = "0.3"
heck = "0.4"
indenter = "0.3" # no deps not in sid
fehler = "1" # no deps (other than fehler-macros, obvs)
lazy-regex = "2" # no deps not in sid
-cervine = "0.0" # no (non-dev)-deps not in sid
pub use std::task::Poll;
pub use std::time::{SystemTime, UNIX_EPOCH};
-pub use cervine::Cow as Cervine;
pub use educe::Educe;
+pub use either::Either;
pub use extend::ext;
pub use fehler::{throw, throws};
pub use futures::{poll, future, FutureExt, StreamExt, TryStreamExt};
queue: QueueBuf<QueuedBytes>,
}
-pub type QueuedBytes = Cervine<'static, Box<[u8]>, [u8]>;
-use Cervine::Owned as QueuedBytesOwned;
-use Cervine::Borrowed as QueuedBytesBorrowed;
+pub type QueuedBytes = Either<Box<[u8]>, &'static [u8]>;
+use Either::Left as QueuedBytesOwned;
+use Either::Right as QueuedBytesBorrowed;
impl<E> Debug for QueueBuf<E> where E: AsRef<[u8]> {
#[throws(fmt::Error)]