mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 07:53:00 +01:00
rust 1.31.0 compatibility
This commit is contained in:
parent
34695f4bce
commit
96fd61f3d5
@ -8,6 +8,7 @@ cache:
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- rust: 1.31.0
|
||||
- rust: stable
|
||||
- rust: beta
|
||||
- rust: nightly-2019-03-02
|
||||
|
@ -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" }
|
||||
|
@ -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"))],
|
||||
|
@ -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
|
||||
|
@ -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 {
|
||||
|
@ -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
|
||||
//!
|
||||
|
Loading…
Reference in New Issue
Block a user