~nickbp/tokio-scgi

57ccd0f0fe891341e93ade40b02a700b120e34d9 — dependabot-preview[bot] 1 year, 10 months ago 7c9be02
Bump bytes from 0.5.2 to 0.5.3 (#10)

* Bump bytes from 0.5.2 to 0.5.3

Bumps [bytes](https://github.com/tokio-rs/bytes) from 0.5.2 to 0.5.3.
- [Release notes](https://github.com/tokio-rs/bytes/releases)
- [Changelog](https://github.com/tokio-rs/bytes/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/bytes/compare/v0.5.2...v0.5.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Fix build error: switch to advance()
3 files changed, 8 insertions(+), 8 deletions(-)

M Cargo.lock
M Cargo.toml
M src/server.rs
M Cargo.lock => Cargo.lock +5 -5
@@ 30,7 30,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]
name = "bytes"
version = "0.5.2"
version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"

[[package]]


@@ 540,7 540,7 @@ name = "tokio"
version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
 "bytes 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
 "bytes 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
 "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
 "libc 0.2.65 (registry+https://github.com/rust-lang/crates.io-index)",
 "memchr 2.2.1 (registry+https://github.com/rust-lang/crates.io-index)",


@@ 563,7 563,7 @@ dependencies = [
name = "tokio-scgi"
version = "0.2.1"
dependencies = [
 "bytes 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
 "bytes 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
 "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
 "proptest 0.9.4 (registry+https://github.com/rust-lang/crates.io-index)",
 "tokio 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",


@@ 575,7 575,7 @@ name = "tokio-util"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
 "bytes 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",
 "bytes 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
 "futures-core 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
 "futures-sink 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)",
 "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",


@@ 645,7 645,7 @@ dependencies = [
"checksum bit-vec 0.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "f59bbe95d4e52a6398ec21238d31577f2b28a9d86807f06ca59d191d8440d0bb"
"checksum bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
"checksum byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a7c3dd8985a7111efc5c80b44e23ecdd8c007de8ade3b96595387e812b957cf5"
"checksum bytes 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1c85319f157e4e26c703678e68e26ab71a46c0199286fa670b21cc9fec13d895"
"checksum bytes 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "10004c15deb332055f7a4a208190aed362cf9a7c2f6ab70a305fba50e1105f38"
"checksum c2-chacha 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "214238caa1bf3a496ec3392968969cab8549f96ff30652c9e56885329315f6bb"
"checksum cfg-if 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
"checksum cloudabi 0.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"

M Cargo.toml => Cargo.toml +1 -1
@@ 14,7 14,7 @@ repository = "https://github.com/nickbp/tokio-scgi"
exclude = ["README.md", "images/"]

[dependencies]
bytes = "0.5.2"
bytes = "0.5.3"
futures = "0.3.1"
tokio = { version = "0.2.4", features = ["io-util", "macros", "rt-core", "tcp", "uds"] }
tokio-util = { version = "0.2.0", features = ["codec"] }

M src/server.rs => src/server.rs +2 -2
@@ 1,6 1,6 @@
#![deny(warnings, rust_2018_idioms)]

use bytes::{BufMut, BytesMut};
use bytes::{Buf, BufMut, BytesMut};
use std::{io, mem};
use tokio_util::codec::{Decoder, Encoder};



@@ 107,7 107,7 @@ impl SCGICodec {
                        return Ok(None);
                    } else if buf[0] == b',' {
                        // Cut the ',' from the buffer, return headers and switch to content mode
                        buf.split_to(1);
                        buf.advance(1);
                        self.next_search_index = 0;
                        self.decoder_state = CodecState::Content;
                        return Ok(Some(SCGIRequest::Request(