mirror of
https://github.com/fafhrd91/actix-net
synced 2025-08-16 12:39:00 +02:00
Compare commits
4 Commits
codec-0.2.
...
rt-1.0.0
Author | SHA1 | Date | |
---|---|---|---|
|
e315cf2893 | ||
|
13fd615966 | ||
|
c094f84b85 | ||
|
25012d290a |
@@ -33,8 +33,8 @@ rustls = ["rust-tls", "tokio-rustls", "webpki"]
|
|||||||
uri = ["http"]
|
uri = ["http"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-service = "1.0.0-alpha.3"
|
actix-service = "1.0.0"
|
||||||
actix-codec = "0.2.0-alpha.3"
|
actix-codec = "0.2.0"
|
||||||
actix-utils = "1.0.0-alpha.3"
|
actix-utils = "1.0.0-alpha.3"
|
||||||
actix-rt = "1.0.0-alpha.3"
|
actix-rt = "1.0.0-alpha.3"
|
||||||
derive_more = "0.99.2"
|
derive_more = "0.99.2"
|
||||||
|
@@ -18,8 +18,8 @@ name = "actix_ioframe"
|
|||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-service = "1.0.0-alpha.3"
|
actix-service = "1.0.0"
|
||||||
actix-codec = "0.2.0-alpha.2"
|
actix-codec = "0.2.0"
|
||||||
actix-utils = "1.0.0-alpha.2"
|
actix-utils = "1.0.0-alpha.2"
|
||||||
actix-rt = "1.0.0-alpha.2"
|
actix-rt = "1.0.0-alpha.2"
|
||||||
bytes = "0.5"
|
bytes = "0.5"
|
||||||
|
@@ -96,7 +96,7 @@ where
|
|||||||
type Error = <Codec as Encoder>::Error;
|
type Error = <Codec as Encoder>::Error;
|
||||||
|
|
||||||
fn poll_ready(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
fn poll_ready(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
|
||||||
if self.framed.is_ready() {
|
if self.framed.is_write_ready() {
|
||||||
Poll::Ready(Ok(()))
|
Poll::Ready(Ok(()))
|
||||||
} else {
|
} else {
|
||||||
Poll::Pending
|
Poll::Pending
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "actix-macros"
|
name = "actix-macros"
|
||||||
version = "0.1.0-alpha.1"
|
version = "0.1.0"
|
||||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||||
description = "Actix runtime macros"
|
description = "Actix runtime macros"
|
||||||
repository = "https://github.com/actix/actix-net"
|
repository = "https://github.com/actix/actix-net"
|
||||||
@@ -18,4 +18,4 @@ quote = "^1"
|
|||||||
syn = { version = "^1", features = ["full"] }
|
syn = { version = "^1", features = ["full"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
actix-rt = { version = "1.0.0-alpha.1" }
|
actix-rt = { version = "1.0.0-alpha.3" }
|
||||||
|
@@ -1,5 +1,9 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
|
## [1.0.0] - 2019-12-11
|
||||||
|
|
||||||
|
* Update dependencies
|
||||||
|
|
||||||
## [1.0.0-alpha.3] - 2019-12-07
|
## [1.0.0-alpha.3] - 2019-12-07
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "actix-rt"
|
name = "actix-rt"
|
||||||
version = "1.0.0-alpha.3"
|
version = "1.0.0"
|
||||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||||
description = "Actix runtime"
|
description = "Actix runtime"
|
||||||
keywords = ["network", "framework", "async", "futures"]
|
keywords = ["network", "framework", "async", "futures"]
|
||||||
@@ -9,7 +9,6 @@ repository = "https://github.com/actix/actix-net.git"
|
|||||||
documentation = "https://docs.rs/actix-rt/"
|
documentation = "https://docs.rs/actix-rt/"
|
||||||
categories = ["network-programming", "asynchronous"]
|
categories = ["network-programming", "asynchronous"]
|
||||||
license = "MIT/Apache-2.0"
|
license = "MIT/Apache-2.0"
|
||||||
exclude = [".gitignore", ".travis.yml", ".cargo/config", "appveyor.yml"]
|
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
workspace = ".."
|
workspace = ".."
|
||||||
|
|
||||||
@@ -18,7 +17,7 @@ name = "actix_rt"
|
|||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-macros = "0.1.0-alpha.1"
|
actix-macros = "0.1.0"
|
||||||
actix-threadpool = "0.3"
|
actix-threadpool = "0.3"
|
||||||
futures = "0.3.1"
|
futures = "0.3.1"
|
||||||
copyless = "0.1.4"
|
copyless = "0.1.4"
|
||||||
|
@@ -21,9 +21,9 @@ path = "src/lib.rs"
|
|||||||
default = []
|
default = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-service = "1.0.0-alpha.4"
|
actix-service = "1.0.0"
|
||||||
actix-rt = "1.0.0-alpha.3"
|
actix-rt = "1.0.0-alpha.3"
|
||||||
actix-codec = "0.2.0-alpha.3"
|
actix-codec = "0.2.0"
|
||||||
actix-utils = "1.0.0-alpha.3"
|
actix-utils = "1.0.0-alpha.3"
|
||||||
|
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
|
## [1.0.0] - 2019-12-11
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
* Add Clone impl for Apply service
|
* Add Clone impl for Apply service
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "actix-service"
|
name = "actix-service"
|
||||||
version = "1.0.0-alpha.4"
|
version = "1.0.0"
|
||||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||||
description = "Actix service"
|
description = "Actix service"
|
||||||
keywords = ["network", "framework", "async", "futures"]
|
keywords = ["network", "framework", "async", "futures"]
|
||||||
|
@@ -7,16 +7,14 @@ use std::task::{Context, Poll};
|
|||||||
use crate::transform_err::TransformMapInitErr;
|
use crate::transform_err::TransformMapInitErr;
|
||||||
use crate::{IntoServiceFactory, Service, ServiceFactory};
|
use crate::{IntoServiceFactory, Service, ServiceFactory};
|
||||||
|
|
||||||
/// Apply transform to a service. Function returns
|
/// Apply transform to a service.
|
||||||
/// services factory that in initialization creates
|
pub fn apply<T, S, U>(t: T, factory: U) -> ApplyTransform<T, S>
|
||||||
/// service and applies transform to this service.
|
|
||||||
pub fn apply<T, S, U>(t: T, service: U) -> ApplyTransform<T, S>
|
|
||||||
where
|
where
|
||||||
S: ServiceFactory,
|
S: ServiceFactory,
|
||||||
T: Transform<S::Service, InitError = S::InitError>,
|
T: Transform<S::Service, InitError = S::InitError>,
|
||||||
U: IntoServiceFactory<S>,
|
U: IntoServiceFactory<S>,
|
||||||
{
|
{
|
||||||
ApplyTransform::new(t, service.into_factory())
|
ApplyTransform::new(t, factory.into_factory())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The `Transform` trait defines the interface of a service factory that wraps inner service
|
/// The `Transform` trait defines the interface of a service factory that wraps inner service
|
||||||
|
@@ -18,9 +18,9 @@ path = "src/lib.rs"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-rt = "1.0.0-alpha.3"
|
actix-rt = "1.0.0-alpha.3"
|
||||||
actix-macros = "0.1.0-alpha.1"
|
actix-macros = "0.1.0"
|
||||||
actix-server = "1.0.0-alpha.3"
|
actix-server = "1.0.0-alpha.3"
|
||||||
actix-service = "1.0.0-alpha.3"
|
actix-service = "1.0.0"
|
||||||
|
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
net2 = "0.2"
|
net2 = "0.2"
|
||||||
|
@@ -32,8 +32,8 @@ rustls = ["rust-tls", "webpki", "webpki-roots", "tokio-rustls"]
|
|||||||
nativetls = ["native-tls", "tokio-tls"]
|
nativetls = ["native-tls", "tokio-tls"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-service = "1.0.0-alpha.3"
|
actix-service = "1.0.0"
|
||||||
actix-codec = "0.2.0-alpha.3"
|
actix-codec = "0.2.0"
|
||||||
actix-utils = "1.0.0-alpha.3"
|
actix-utils = "1.0.0-alpha.3"
|
||||||
actix-rt = "1.0.0-alpha.3"
|
actix-rt = "1.0.0-alpha.3"
|
||||||
derive_more = "0.99.2"
|
derive_more = "0.99.2"
|
||||||
|
@@ -18,9 +18,9 @@ name = "actix_utils"
|
|||||||
path = "src/lib.rs"
|
path = "src/lib.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-service = "1.0.0-alpha.3"
|
actix-service = "1.0.0"
|
||||||
actix-rt = "1.0.0-alpha.3"
|
actix-rt = "1.0.0-alpha.3"
|
||||||
actix-codec = "0.2.0-alpha.3"
|
actix-codec = "0.2.0"
|
||||||
bytes = "0.5.2"
|
bytes = "0.5.2"
|
||||||
either = "1.5.2"
|
either = "1.5.2"
|
||||||
futures = "0.3.1"
|
futures = "0.3.1"
|
||||||
|
Reference in New Issue
Block a user