Verified Commit 98f94d96 authored by Josh Robson Chase's avatar Josh Robson Chase
Browse files

Bump to crates.io embrio fork

parent 4c8e8266
[package]
name = "async-codec"
version = "0.4.0-alpha.4"
version = "0.4.0"
authors = ["Josh Robson Chase <josh@robsonchase.com>"]
edition = "2018"
license = "MIT/Apache-2.0"
......@@ -11,14 +11,14 @@ repository = "https://gitlab.com/jrobsonchase/async-codec"
readme = "README.md"
[dependencies]
bytes = { version = "0.5.4", optional = true }
futures = { version = "0.3.4", default_features = false }
embrio-core = { git = "https://github.com/Nemo157/embrio-rs", optional = true }
bytes = { version = "0.6.0", optional = true }
futures = { version = "0.3.7", default_features = false }
polymer-core = { version = "0.1.0", optional = true }
[dev-dependencies]
async-std = { version = "1.5.0", features = ["attributes"] }
async-std = { version = "1.6.5", features = ["attributes"] }
[features]
std = ["futures/std", "bytes"]
embrio = ["embrio-core"]
embrio = ["polymer-core"]
default = ["std"]
......@@ -7,11 +7,11 @@ use std::{
Display,
},
io,
mem::MaybeUninit,
pin::Pin,
};
use bytes::{
buf::UninitSlice,
Buf,
BufMut,
BytesMut,
......@@ -260,9 +260,9 @@ where
}
}
fn zero_buf(b: &mut [MaybeUninit<u8>]) -> &mut [u8] {
for i in b.iter_mut() {
*i = MaybeUninit::new(0);
fn zero_buf(b: &mut UninitSlice) -> &mut [u8] {
for i in 0..b.len() {
b.write_byte(i, 0)
}
unsafe { std::mem::transmute(b) }
}
......
......@@ -58,8 +58,6 @@
//! ## Example
//!
//! ```rust
//! #![feature(async_await)]
//!
//! use std::{
//! io,
//! str::Utf8Error,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment