upgrade to ntex 0.3

This commit is contained in:
Nikolay Kim 2021-02-25 19:53:53 +06:00
parent e8bca1605a
commit 2fb4ad8058
7 changed files with 22 additions and 36 deletions

View file

@ -16,6 +16,6 @@ name = "ntex_cors"
path = "src/lib.rs"
[dependencies]
ntex = "0.2.0-b.14"
derive_more = "0.99.5"
futures = "0.3.5"
ntex = "0.3.2"
derive_more = "0.99.11"
futures = "0.3.13"

View file

@ -18,11 +18,10 @@ name = "ntex_files"
path = "src/lib.rs"
[dependencies]
ntex = "0.2.0-b.14"
bitflags = "1"
bytes = "0.5.6"
futures = "0.3.12"
derive_more = "0.99.5"
ntex = "0.3.2"
bitflags = "1.2"
futures = "0.3"
derive_more = "0.99.11"
hyperx = "1.0.0"
log = "0.4"
mime = "0.3"
@ -31,4 +30,4 @@ percent-encoding = "2.1"
v_htmlescape = "0.4"
[dev-dependencies]
ntex = { version = "0.2.0-b.14", features=["openssl", "compress"] }
ntex = { version = "0.3.2", features=["openssl", "compress"] }

View file

@ -1,19 +1,13 @@
#![allow(type_alias_bounds, clippy::borrow_interior_mutable_const, clippy::type_complexity)]
//! Static files support
use std::fmt::Write;
use std::fs::{DirEntry, File};
use std::future::Future;
use std::io::{Read, Seek};
use std::path::{Path, PathBuf};
use std::pin::Pin;
use std::rc::Rc;
use std::task::{Context, Poll};
use std::{cmp, io};
use std::{fmt::Write, pin::Pin, rc::Rc, cmp, io, io::Read, io::Seek, task::Context, task::Poll};
use bytes::Bytes;
use ntex::util::Bytes;
use futures::future::{ok, ready, Either, FutureExt, LocalBoxFuture, Ready};
use futures::Stream;
use futures::{Stream, Future};
use hyperx::header::DispositionType;
use mime_guess::from_ext;
use ntex::http::error::BlockingError;

View file

@ -21,10 +21,10 @@ default = ["cookie-policy"]
cookie-policy = ["cookie/secure", "ntex/cookie"]
[dependencies]
ntex = "0.2.0-b.14"
futures = "0.3.12"
ntex = "0.3.2"
futures = "0.3.13"
serde = "1.0"
serde_json = "1.0"
cookie = "0.14.2"
derive_more = "0.99.5"
derive_more = "0.99.11"
time = { version = "0.2.5", default-features = false, features = ["std"] }

View file

@ -16,11 +16,10 @@ name = "ntex_multipart"
path = "src/lib.rs"
[dependencies]
ntex = "0.2.0-b.14"
bytes = "0.5.6"
derive_more = "0.99.5"
ntex = "0.3.2"
derive_more = "0.99.11"
httparse = "1.3"
futures = "0.3.12"
futures = "0.3.13"
log = "0.4"
mime = "0.3"
twoway = "0.2"

View file

@ -1,15 +1,10 @@
//! Multipart payload support
use std::cell::{Cell, RefCell, RefMut};
use std::convert::TryFrom;
use std::marker::PhantomData;
use std::pin::Pin;
use std::rc::Rc;
use std::{cmp, fmt, convert::TryFrom, marker::PhantomData, pin::Pin, rc::Rc};
use std::task::{Context, Poll};
use std::{cmp, fmt};
use bytes::{Bytes, BytesMut};
use ntex::util::{Bytes, BytesMut};
use futures::stream::{LocalBoxStream, Stream, StreamExt};
use ntex::http::error::{ParseError, PayloadError};
use ntex::http::header::{self, HeaderMap, HeaderName, HeaderValue};
use ntex::task::LocalWaker;

View file

@ -22,11 +22,10 @@ default = ["cookie-session"]
cookie-session = ["cookie/secure", "ntex/cookie"]
[dependencies]
ntex = "0.2.0-b.14"
bytes = "0.5.6"
ntex = "0.3.2"
cookie = "0.14.2"
derive_more = "0.99.5"
futures = "0.3.12"
derive_more = "0.99.11"
futures = "0.3.13"
serde = "1.0"
serde_json = "1.0"
time = { version = "0.2.5", default-features = false, features = ["std"] }