1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-05-19 08:48:14 +00:00

rust 1.31.0 compatibility

This commit is contained in:
Nikolay Kim 2019-04-01 10:26:09 -07:00
parent 34695f4bce
commit 96fd61f3d5
6 changed files with 23 additions and 9 deletions

View file

@ -8,6 +8,7 @@ cache:
matrix:
include:
- rust: 1.31.0
- rust: stable
- rust: beta
- rust: nightly-2019-03-02

View file

@ -113,3 +113,7 @@ flate2 = "1.0.2"
lto = true
opt-level = 3
codegen-units = 1
[patch.crates-io]
actix = { git = "https://github.com/actix/actix.git" }
actix-http = { path = "actix-http" }

View file

@ -566,7 +566,10 @@ mod tests {
use bytes::BytesMut;
use super::*;
use actix_web::http::{header, header::DispositionType, Method, StatusCode};
use actix_web::http::header::{
self, ContentDisposition, DispositionParam, DispositionType,
};
use actix_web::http::{Method, StatusCode};
use actix_web::test::{self, TestRequest};
use actix_web::App;
@ -683,7 +686,6 @@ mod tests {
#[test]
fn test_named_file_image_attachment() {
use header::{ContentDisposition, DispositionParam, DispositionType};
let cd = ContentDisposition {
disposition: DispositionType::Attachment,
parameters: vec![DispositionParam::Filename(String::from("test.png"))],

View file

@ -1,5 +1,12 @@
# Changes
## [0.1.0-alpha.3] - 2019-04-xx
### Fixed
* Rust 1.31.0 compatibility
## [0.1.0-alpha.2] - 2019-03-29
### Added

View file

@ -59,7 +59,7 @@ mod parse;
#[macro_use]
mod secure;
#[cfg(feature = "secure-cookies")]
pub use secure::*;
pub use self::secure::*;
use std::borrow::Cow;
use std::fmt;
@ -68,11 +68,11 @@ use std::str::FromStr;
use percent_encoding::{percent_encode, USERINFO_ENCODE_SET};
use time::{Duration, Tm};
pub use builder::CookieBuilder;
pub use draft::*;
pub use jar::{CookieJar, Delta, Iter};
use parse::parse_cookie;
pub use parse::ParseError;
pub use self::builder::CookieBuilder;
pub use self::draft::*;
pub use self::jar::{CookieJar, Delta, Iter};
use self::parse::parse_cookie;
pub use self::parse::ParseError;
#[derive(Debug, Clone)]
enum CookieStr {

View file

@ -62,7 +62,7 @@
//! * SSL support with OpenSSL or `native-tls`
//! * Middlewares (`Logger`, `Session`, `CORS`, `CSRF`, `DefaultHeaders`)
//! * Supports [Actix actor framework](https://github.com/actix/actix)
//! * Supported Rust version: 1.32 or later
//! * Supported Rust version: 1.31 or later
//!
//! ## Package feature
//!