mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 00:21:08 +01:00
rust 1.31.0 compatibility
This commit is contained in:
parent
34695f4bce
commit
96fd61f3d5
@ -8,6 +8,7 @@ cache:
|
|||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
- rust: 1.31.0
|
||||||
- rust: stable
|
- rust: stable
|
||||||
- rust: beta
|
- rust: beta
|
||||||
- rust: nightly-2019-03-02
|
- rust: nightly-2019-03-02
|
||||||
|
@ -113,3 +113,7 @@ flate2 = "1.0.2"
|
|||||||
lto = true
|
lto = true
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
|
||||||
|
[patch.crates-io]
|
||||||
|
actix = { git = "https://github.com/actix/actix.git" }
|
||||||
|
actix-http = { path = "actix-http" }
|
||||||
|
@ -566,7 +566,10 @@ mod tests {
|
|||||||
use bytes::BytesMut;
|
use bytes::BytesMut;
|
||||||
|
|
||||||
use super::*;
|
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::test::{self, TestRequest};
|
||||||
use actix_web::App;
|
use actix_web::App;
|
||||||
|
|
||||||
@ -683,7 +686,6 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_named_file_image_attachment() {
|
fn test_named_file_image_attachment() {
|
||||||
use header::{ContentDisposition, DispositionParam, DispositionType};
|
|
||||||
let cd = ContentDisposition {
|
let cd = ContentDisposition {
|
||||||
disposition: DispositionType::Attachment,
|
disposition: DispositionType::Attachment,
|
||||||
parameters: vec![DispositionParam::Filename(String::from("test.png"))],
|
parameters: vec![DispositionParam::Filename(String::from("test.png"))],
|
||||||
|
@ -1,5 +1,12 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
|
## [0.1.0-alpha.3] - 2019-04-xx
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
* Rust 1.31.0 compatibility
|
||||||
|
|
||||||
|
|
||||||
## [0.1.0-alpha.2] - 2019-03-29
|
## [0.1.0-alpha.2] - 2019-03-29
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -59,7 +59,7 @@ mod parse;
|
|||||||
#[macro_use]
|
#[macro_use]
|
||||||
mod secure;
|
mod secure;
|
||||||
#[cfg(feature = "secure-cookies")]
|
#[cfg(feature = "secure-cookies")]
|
||||||
pub use secure::*;
|
pub use self::secure::*;
|
||||||
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
@ -68,11 +68,11 @@ use std::str::FromStr;
|
|||||||
use percent_encoding::{percent_encode, USERINFO_ENCODE_SET};
|
use percent_encoding::{percent_encode, USERINFO_ENCODE_SET};
|
||||||
use time::{Duration, Tm};
|
use time::{Duration, Tm};
|
||||||
|
|
||||||
pub use builder::CookieBuilder;
|
pub use self::builder::CookieBuilder;
|
||||||
pub use draft::*;
|
pub use self::draft::*;
|
||||||
pub use jar::{CookieJar, Delta, Iter};
|
pub use self::jar::{CookieJar, Delta, Iter};
|
||||||
use parse::parse_cookie;
|
use self::parse::parse_cookie;
|
||||||
pub use parse::ParseError;
|
pub use self::parse::ParseError;
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
enum CookieStr {
|
enum CookieStr {
|
||||||
|
@ -62,7 +62,7 @@
|
|||||||
//! * SSL support with OpenSSL or `native-tls`
|
//! * SSL support with OpenSSL or `native-tls`
|
||||||
//! * Middlewares (`Logger`, `Session`, `CORS`, `CSRF`, `DefaultHeaders`)
|
//! * Middlewares (`Logger`, `Session`, `CORS`, `CSRF`, `DefaultHeaders`)
|
||||||
//! * Supports [Actix actor framework](https://github.com/actix/actix)
|
//! * 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
|
//! ## Package feature
|
||||||
//!
|
//!
|
||||||
|
Loading…
Reference in New Issue
Block a user