Skip to content

Updated buf_redux to buffer_redux #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ clippy = { version = ">=0.0, <0.1", optional = true}

#Server Dependencies

buf_redux = { version = "0.8", optional = true, default-features = false }
buffer-redux = { version = "1.0.1", optional = true, default-features = false }

httparse = { version = "1.2", optional = true }
twoway = { version = "0.1", optional = true }
Expand All @@ -55,7 +55,7 @@ env_logger = "0.5"
[features]
client = []
default = ["client", "hyper", "iron", "mock", "nickel", "server", "tiny_http"]
server = ["buf_redux", "httparse", "quick-error", "safemem", "twoway"]
server = ["buffer-redux", "httparse", "quick-error", "safemem", "twoway"]
mock = []
nightly = []
bench = []
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ showing how to use `multipart` on a Rocket server: [examples/rocket.rs](examples

## ⚡ Powered By ⚡

### [buf_redux ![](https://img.shields.io/crates/v/buf_redux.svg)](https://crates.io/crates/buf_redux)
### [buffer-redux ![](https://img.shields.io/crates/v/buffer-redux.svg)](https://crates.io/crates/buffer-redux)

Customizable drop-in `std::io::BufReader` replacement, created to be used in this crate.
Needed because it can read more bytes into the buffer without the buffer being empty, necessary
Expand Down
4 changes: 2 additions & 2 deletions src/server/boundary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

use ::safemem;

use super::buf_redux::BufReader;
use super::buf_redux::policy::MinBuffered;
use super::buffer_redux::BufReader;
use super::buffer_redux::policy::MinBuffered;
use super::twoway;

use std::cmp;
Expand Down
2 changes: 1 addition & 1 deletion src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//!
//! See the `Multipart` struct for more info.

pub extern crate buf_redux;
pub extern crate buffer_redux;
extern crate httparse;
extern crate twoway;

Expand Down
2 changes: 1 addition & 1 deletion src/server/save.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// copied, modified, or distributed except according to those terms.
//! Utilities for saving request entries to the filesystem.

pub use crate::server::buf_redux::BufReader;
pub use crate::server::buffer_redux::BufReader;

pub use crate::tempfile::TempDir;

Expand Down