commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
a08b1eba870082345b91700d5f5aee54cc277c6a | Nikolay Kim | 2019-12-02T05:43:52 | update tests | diff --git a/actix-connect/Cargo.toml b/actix-connect/Cargo.toml
index 3b8ee90..987f65c 100644
--- a/actix-connect/Cargo.toml
+++ b/actix-connect/Cargo.toml
@@ -42,7 +42,6 @@ either = "1.5.2"
futures = "0.3.1"
http = { version = "0.1.17", optional = true }
log = "0.4"
-tokio-net = "=0.2.0-alpha.6"
trust-dns-resolve... | 9 | 37 | 83 |
16ff283fb269c5b61db7ab62968ade5ca6a47b33 | Nikolay Kim | 2019-12-01T14:30:24 | add metadata | diff --git a/actix-macros/Cargo.toml b/actix-macros/Cargo.toml
index 9052fa6..f702d51 100644
--- a/actix-macros/Cargo.toml
+++ b/actix-macros/Cargo.toml
@@ -2,6 +2,7 @@
name = "actix-macros"
version = "0.1.0-alpha.1"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
+description = "Actix runtime macros"
repository = "... | 2 | 2 | 1 |
503c2feb0827cc24fd7c064ddbb93642615fb602 | Nikolay Kim | 2019-12-01T04:56:25 | re-export net primitives | diff --git a/actix-rt/Cargo.toml b/actix-rt/Cargo.toml
index 6638316..6d14126 100644
--- a/actix-rt/Cargo.toml
+++ b/actix-rt/Cargo.toml
@@ -22,7 +22,7 @@ actix-macros = "0.1.0-alpha.1"
actix-threadpool = "0.2"
futures = "0.3.1"
-tokio = "=0.2.0-alpha.6"
+tokio = { version = "=0.2.0-alpha.6", features=["tcp","uds",... | 2 | 13 | 1 |
bec4efc6997b9c857b7d4e3c3d2a9138485dd4c8 | Nikolay Kim | 2019-11-29T07:51:00 | add extra methods to pipeline | diff --git a/actix-service/src/pipeline.rs b/actix-service/src/pipeline.rs
index 9c63d2c..d28ca51 100644
--- a/actix-service/src/pipeline.rs
+++ b/actix-service/src/pipeline.rs
@@ -1,6 +1,9 @@
use std::task::{Context, Poll};
use crate::and_then::{AndThenService, AndThenServiceFactory};
+use crate::map::{Map, MapSer... | 2 | 75 | 2 |
5e5ae2ddec0f67d395e9fbd1d593a18ad5b6084b | Nikolay Kim | 2019-11-29T04:41:09 | restore stream dispatcher | diff --git a/actix-utils/src/lib.rs b/actix-utils/src/lib.rs
index 727362b..4bc755d 100644
--- a/actix-utils/src/lib.rs
+++ b/actix-utils/src/lib.rs
@@ -9,6 +9,7 @@ pub mod keepalive;
pub mod mpsc;
pub mod oneshot;
pub mod order;
+pub mod stream;
pub mod task;
pub mod time;
pub mod timeout;
diff --git a/actix-uti... | 2 | 102 | 0 |
a02064592bd11364b0c1dafcf3db46a5d3b9c165 | Nikolay Kim | 2019-11-27T15:03:26 | disable rustls | diff --git a/actix-connect/Cargo.toml b/actix-connect/Cargo.toml
index acc153c..3b8ee90 100644
--- a/actix-connect/Cargo.toml
+++ b/actix-connect/Cargo.toml
@@ -27,7 +27,7 @@ default = ["uri"]
openssl = ["open-ssl", "tokio-openssl"]
# rustls
-rustls = ["rust-tls", "tokio-rustls", "webpki"]
+# rustls = ["rust-tls", ... | 3 | 8 | 8 |
af720051594d1e116a5c1c701129e666e709a1c0 | Nikolay Kim | 2019-11-27T14:59:36 | move BoxFuture to boxed mod | diff --git a/actix-service/src/boxed.rs b/actix-service/src/boxed.rs
index 783d54c..13c60a7 100644
--- a/actix-service/src/boxed.rs
+++ b/actix-service/src/boxed.rs
@@ -1,8 +1,12 @@
+use std::future::Future;
+use std::pin::Pin;
use std::task::{Context, Poll};
use futures::future::FutureExt;
-use crate::{BoxFuture... | 2 | 5 | 4 |
009f8e2e7caed2baf23f34f9c849df7b6aa4ab34 | Nikolay Kim | 2019-11-26T10:33:45 | allow to wait server exit | diff --git a/actix-server/src/builder.rs b/actix-server/src/builder.rs
index 67629a3..061414e 100644
--- a/actix-server/src/builder.rs
+++ b/actix-server/src/builder.rs
@@ -5,6 +5,7 @@ use std::{io, mem, net};
use actix_rt::{spawn, time::delay, Arbiter, System};
use futures::channel::mpsc::{unbounded, UnboundedRece... | 2 | 60 | 10 |
f5aecdee8f11a17af7846ba64693141285a1fdc0 | Nikolay Kim | 2019-11-26T04:14:21 | work around to rust#62127 | diff --git a/actix-rt/src/lib.rs b/actix-rt/src/lib.rs
index e5d783b..c1faaca 100644
--- a/actix-rt/src/lib.rs
+++ b/actix-rt/src/lib.rs
@@ -1,5 +1,6 @@
//! A runtime implementation that runs everything on the current thread.
+#[cfg(not(test))] // Work around for rust-lang/rust#62127
pub use actix_macros::{main, te... | 2 | 2 | 0 |
4546774f4e88189477bf510461ee083694b28804 | Nikolay Kim | 2019-11-26T04:04:46 | inclide fn ident to err message | diff --git a/actix-macros/src/lib.rs b/actix-macros/src/lib.rs
index 884958f..ea16092 100644
--- a/actix-macros/src/lib.rs
+++ b/actix-macros/src/lib.rs
@@ -70,7 +70,7 @@ pub fn test(_: TokenStream, item: TokenStream) -> TokenStream {
if input.sig.asyncness.is_none() {
return syn::Error::new_spanned(
... | 1 | 1 | 1 |
2cf140a869e06937ed2d21597913fa2d89eddcf6 | Nikolay Kim | 2019-11-26T04:01:46 | inclide fn token to err message | diff --git a/actix-macros/src/lib.rs b/actix-macros/src/lib.rs
index 8d628e0..884958f 100644
--- a/actix-macros/src/lib.rs
+++ b/actix-macros/src/lib.rs
@@ -68,9 +68,12 @@ pub fn test(_: TokenStream, item: TokenStream) -> TokenStream {
}
if input.sig.asyncness.is_none() {
- return syn::Error::new_spa... | 1 | 6 | 3 |
52d03fa18c3d3bdf58df2396fe89de87339327c3 | Nikolay Kim | 2019-11-26T02:26:22 | use actix deps instead of tokio | diff --git a/actix-connect/Cargo.toml b/actix-connect/Cargo.toml
index 19be727..acc153c 100644
--- a/actix-connect/Cargo.toml
+++ b/actix-connect/Cargo.toml
@@ -43,7 +43,6 @@ futures = "0.3.1"
http = { version = "0.1.17", optional = true }
log = "0.4"
tokio-net = "=0.2.0-alpha.6"
-tokio-executor = "=0.2.0-alpha.6"
... | 23 | 44 | 57 |
905d0584547be6d5aa1d0116c768187f33c56097 | Nikolay Kim | 2019-11-25T11:54:47 | upgrade derive_more | diff --git a/actix-connect/Cargo.toml b/actix-connect/Cargo.toml
index e5a9a38..19be727 100644
--- a/actix-connect/Cargo.toml
+++ b/actix-connect/Cargo.toml
@@ -37,7 +37,7 @@ actix-service = "1.0.0-alpha.1"
actix-codec = "0.2.0-alpha.1"
actix-utils = "0.5.0-alpha.1"
actix-rt = "1.0.0-alpha.1"
-derive_more = "0.15"
+... | 3 | 7 | 6 |
ae4394c0f202a591a819eaa29716523dd8cfb08b | Nikolay Kim | 2019-11-20T18:35:44 | fix uds server support | diff --git a/actix-server/Cargo.toml b/actix-server/Cargo.toml
index 37f7fd3..118e722 100644
--- a/actix-server/Cargo.toml
+++ b/actix-server/Cargo.toml
@@ -44,7 +44,7 @@ tokio-net = { version = "0.2.0-alpha.6", features = ["signal"] }
tokio-timer = "0.3.0-alpha.6"
# unix domain sockets
-mio-uds = { version = "0.6.... | 6 | 39 | 37 |
d3c5518646d954ecbda8fae7c4082842f18b7cf9 | Nikolay Kim | 2019-11-19T12:54:36 | fix rustls acceptor | diff --git a/actix-server-config/Cargo.toml b/actix-server-config/Cargo.toml
index 7f7cf23..5f8589b 100644
--- a/actix-server-config/Cargo.toml
+++ b/actix-server-config/Cargo.toml
@@ -25,4 +25,5 @@ rustls = ["tokio-rustls"]
tokio-io = "0.2.0-alpha.6"
tokio-net = "0.2.0-alpha.6"
tokio-openssl = { version = "0.4.0-al... | 2 | 11 | 6 |
617e40a7e9bd8daaa792a9e7fb360529997ae9eb | Nikolay Kim | 2019-11-19T05:06:55 | fix framed_read | diff --git a/actix-codec/src/framed_read.rs b/actix-codec/src/framed_read.rs
index e4dc206..5d8d5ee 100644
--- a/actix-codec/src/framed_read.rs
+++ b/actix-codec/src/framed_read.rs
@@ -231,15 +231,16 @@ where
// got room for at least one byte to read to ensure that we don't
// get a spurious 0... | 2 | 13 | 8 |
3105cde1681a007f5ae5ec6b95f957f422954c52 | Nikolay Kim | 2019-11-19T02:45:09 | add Service impl for RefCell<S> | diff --git a/actix-service/src/lib.rs b/actix-service/src/lib.rs
index 96bbf5b..c0645c7 100644
--- a/actix-service/src/lib.rs
+++ b/actix-service/src/lib.rs
@@ -198,6 +198,24 @@ where
}
}
+impl<S> Service for RefCell<S>
+where
+ S: Service,
+{
+ type Request = S::Request;
+ type Response = S::Response;... | 1 | 18 | 0 |
5b74c79cf9430ba02fb07befd618b30987cb23b8 | Nikolay Kim | 2019-11-19T00:51:43 | Simplify transform trait, remove map_init_err | diff --git a/actix-service/src/lib.rs b/actix-service/src/lib.rs
index 141d25b..96bbf5b 100644
--- a/actix-service/src/lib.rs
+++ b/actix-service/src/lib.rs
@@ -298,5 +298,5 @@ pub mod dev {
pub use crate::map_err::{MapErr, MapErrServiceFactory};
pub use crate::map_init_err::MapInitErr;
pub use crate::th... | 2 | 1 | 100 |
8bf8ad86d6efaf6874b445c026d393b15f7105a4 | Nikolay Kim | 2019-11-18T14:46:49 | add IntoServiceFactory impl for servie_fn | diff --git a/actix-service/src/fn_service.rs b/actix-service/src/fn_service.rs
index ad82c9c..693d7f4 100644
--- a/actix-service/src/fn_service.rs
+++ b/actix-service/src/fn_service.rs
@@ -152,6 +152,17 @@ where
}
}
+impl<F, Fut, Req, Res, Err, Cfg>
+ IntoServiceFactory<FnServiceFactory<F, Fut, Req, Res, Err... | 1 | 11 | 0 |
877f89eeb7a292d706a6f50083af2e8c6bf6a204 | Nikolay Kim | 2019-11-18T14:20:56 | use service types for ssl connectors | diff --git a/actix-connect/src/ssl/openssl.rs b/actix-connect/src/ssl/openssl.rs
index 9f46808..072e867 100644
--- a/actix-connect/src/ssl/openssl.rs
+++ b/actix-connect/src/ssl/openssl.rs
@@ -36,13 +36,7 @@ where
T: Address + Unpin + 'static,
U: AsyncRead + AsyncWrite + Unpin + fmt::Debug + 'static,
{
- ... | 2 | 20 | 21 |
135494646055399f60cc0362ea8f0201375dd355 | Nikolay Kim | 2019-11-18T12:28:54 | remove pin-project; update Unpin consrtaint | diff --git a/actix-codec/src/framed.rs b/actix-codec/src/framed.rs
index 4b6b7f8..949e7b9 100644
--- a/actix-codec/src/framed.rs
+++ b/actix-codec/src/framed.rs
@@ -225,6 +225,15 @@ impl<T, U> Framed<T, U> {
self.inner.get_mut().force_send(item)
}
+ pub fn is_ready(&mut self, cx: &mut Context<'_>) ->... | 22 | 224 | 160 |
c1cdc9908a4e9e4732f26e7be2c4594ff718f7e5 | Nikolay Kim | 2019-11-15T10:06:44 | update deps and fix definitions | diff --git a/actix-codec/src/framed.rs b/actix-codec/src/framed.rs
index 7152b45..29892f9 100644
--- a/actix-codec/src/framed.rs
+++ b/actix-codec/src/framed.rs
@@ -61,14 +61,6 @@ where
inner: framed_read2(framed_write2(Fuse(inner, codec), lw, hw)),
}
}
-
- /// Force send item
- pub fn ... | 5 | 27 | 27 |
be7904fd576c24bd2ba3af042f7a3d0ccb2e85eb | Yuki Okushi | 2019-11-14T15:28:29 | Fix code style (#65)
* Fix clippy warnings
* cargo fmt
* Remove redundant lifetime | diff --git a/actix-codec/src/framed_write.rs b/actix-codec/src/framed_write.rs
index ce60d1e..2791208 100644
--- a/actix-codec/src/framed_write.rs
+++ b/actix-codec/src/framed_write.rs
@@ -236,9 +236,9 @@ where
fn poll_ready(self: Pin<&mut Self>, _: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
let... | 14 | 24 | 25 |
0b0060fe47f1a5bc8921b33571b530df64ee17fe | Nikolay Kim | 2019-10-14T04:37:48 | update deps | diff --git a/actix-connect/Cargo.toml b/actix-connect/Cargo.toml
index 15e24cb..0fa5c90 100644
--- a/actix-connect/Cargo.toml
+++ b/actix-connect/Cargo.toml
@@ -57,5 +57,5 @@ webpki = { version = "0.21", optional = true }
[dev-dependencies]
bytes = "0.4"
-actix-testing = { version="0.1.0" }
+actix-testing = { versi... | 2 | 3 | 3 |
fa72975f34d2f3b19860240a3b564afb02037ff7 | Nikolay Kim | 2019-10-08T08:46:22 | extra trace logging | diff --git a/actix-codec/src/framed_read.rs b/actix-codec/src/framed_read.rs
index f54b2c2..b470d1b 100644
--- a/actix-codec/src/framed_read.rs
+++ b/actix-codec/src/framed_read.rs
@@ -209,6 +209,7 @@ where
// get a spurious 0 that looks like EOF
self.buffer.reserve(1);
if 0 == tr... | 2 | 2 | 0 |
f6f9e1fcdb1fcefad69adc8c4cb3f71e5d80738f | Sven-Hendrik Haase | 2019-10-04T05:30:13 | Add an error message if we receive a non-hostname-based dest
This is more helpful than an unwrap and at least points users at the right location.
Upstream issue is https://github.com/briansmith/webpki/issues/54 | diff --git a/actix-connect/src/ssl/rustls.rs b/actix-connect/src/ssl/rustls.rs
index 7d6f572..465ef1e 100644
--- a/actix-connect/src/ssl/rustls.rs
+++ b/actix-connect/src/ssl/rustls.rs
@@ -94,7 +94,8 @@ where
fn call(&mut self, stream: Connection<T, U>) -> Self::Future {
trace!("SSL Handshake start for: {... | 2 | 3 | 1 |
8f05986a9f3cb5013b1cfea8d68b11c4bf1dfd33 | Yuki Okushi | 2019-10-03T05:55:44 | Use `map()` instead of `and_then()` (#51) | diff --git a/router/src/url.rs b/router/src/url.rs
index 79fe2b6..a45e2cd 100644
--- a/router/src/url.rs
+++ b/router/src/url.rs
@@ -195,7 +195,7 @@ fn from_hex(v: u8) -> Option<u8> {
#[inline]
fn restore_ch(d1: u8, d2: u8) -> Option<u8> {
- from_hex(d1).and_then(|d1| from_hex(d2).and_then(move |d2| Some(d1 << 4... | 1 | 1 | 1 |
a02ff17cb192b4b2c3614df47578e6971bdf5d9b | Nikolay Kim | 2019-09-25T04:11:17 | remove actix-tower from workspace | diff --git a/Cargo.toml b/Cargo.toml
index 60443fe..7b33514 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -24,7 +24,6 @@ members = [
"actix-server-config",
"actix-testing",
"actix-threadpool",
- "actix-tower",
"actix-utils",
"router",
] | 1 | 0 | 1 |
ca982b246753f05671f38ad829746150121a5df1 | Nikolay Kim | 2019-09-25T04:00:54 | update workspace deps for tests | diff --git a/Cargo.toml b/Cargo.toml
index 02bd216..60443fe 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -39,3 +39,16 @@ futures = "0.1.25"
openssl = "0.10"
tokio-tcp = "0.1"
tokio-openssl = "0.3"
+
+[patch.crates-io]
+actix-codec = { path = "actix-codec" }
+actix-connect = { path = "actix-connect" }
+actix-ioframe =... | 2 | 23 | 9 |
c859d13e3bcc861c5ea1f39001c5fe49fde43820 | Nikolay Kim | 2019-09-25T03:51:28 | use actix-testing instead of test server | diff --git a/Cargo.toml b/Cargo.toml
index c88be5d..02bd216 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,7 +23,6 @@ members = [
"actix-server",
"actix-server-config",
"actix-testing",
- "actix-test-server",
"actix-threadpool",
"actix-tower",
"actix-utils",
diff --git a/actix-connect/Cargo.toml b/a... | 7 | 48 | 206 |
aad013f5594178abe5e53b66a245138e74402e89 | Yuki Okushi | 2019-08-16T20:15:51 | Fix clippy warnings (#40)
Add explicit `dyn`s
Remove let binding
Use +=
Return false
Derive Default for TcpConnector
Squash if/else
Remove unnecessary return keywords
Use is_empty()
Fix clippy attribute
Allow mut_from_ref | diff --git a/actix-connect/src/connector.rs b/actix-connect/src/connector.rs
index ba9bf50..ecb6199 100644
--- a/actix-connect/src/connector.rs
+++ b/actix-connect/src/connector.rs
@@ -52,7 +52,7 @@ impl<T: Address> NewService for TcpConnectorFactory<T> {
}
/// Tcp connector service
-#[derive(Debug)]
+#[derive(Defa... | 15 | 38 | 39 |
0baceb0e561b5e93da16bc54580ebce868741685 | Neil Locketz | 2019-07-30T16:35:57 | Fix typo in desc (#34) | diff --git a/Cargo.toml b/Cargo.toml
index 3f77804..cc9e459 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
name = "actix-net"
version = "0.3.0"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
-description = "Actix net - framework for the compisible network services for Rust"
+description = "Actix net - fram... | 1 | 1 | 1 |
6be1f37f6c03bae9eef32cf297f936efbb2ec57e | Michael Snoyman | 2019-07-25T05:46:11 | Minor typo corrections in docs (#33) | diff --git a/actix-service/src/lib.rs b/actix-service/src/lib.rs
index 82e2667..ee327da 100644
--- a/actix-service/src/lib.rs
+++ b/actix-service/src/lib.rs
@@ -176,7 +176,7 @@ impl<T: ?Sized> ServiceExt for T where T: Service {}
/// Creates new `Service` values.
///
/// Acts as a service factory. This is useful for... | 1 | 1 | 1 |
a742768feb7a5117f7f267046affe315a1cdc4ad | Nikolay Kim | 2019-07-24T08:16:02 | bump version | diff --git a/actix-connect/Cargo.toml b/actix-connect/Cargo.toml
index 85230ee..d7eab1c 100644
--- a/actix-connect/Cargo.toml
+++ b/actix-connect/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "actix-connect"
-version = "0.2.1"
+version = "0.2.2"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
description = "Actix Conn... | 2 | 6 | 3 |
9271b95c87d71d1c1b5539261db51e0ec4e53aee | Jeff Muizelaar | 2019-07-17T04:29:22 | Avoid a copy of the Future when initializing the Box. (#29)
Future's can be pretty big (> 1500 bytes) so this probably worth doing.
I confirmed with memcpy-find that this did infact eliminate two ~1500
byte copies from the actix-web basic example. | diff --git a/actix-rt/Cargo.toml b/actix-rt/Cargo.toml
index d00346f..a059c6e 100644
--- a/actix-rt/Cargo.toml
+++ b/actix-rt/Cargo.toml
@@ -24,3 +24,4 @@ tokio-current-thread = "0.1"
tokio-executor = "0.1.5"
tokio-reactor = "0.1.7"
tokio-timer = "0.2.8"
+copyless = "0.1.4"
diff --git a/actix-rt/src/arbiter.rs b/act... | 2 | 5 | 2 |
1b3cd0d88cf883d9c09e12d4cb9bcad3763e7c3c | Jan Michael Auer | 2019-07-17T00:17:51 | Expose Connect addrs (#30) | diff --git a/actix-connect/src/connect.rs b/actix-connect/src/connect.rs
index 435a349..49e75cf 100644
--- a/actix-connect/src/connect.rs
+++ b/actix-connect/src/connect.rs
@@ -1,5 +1,6 @@
-use std::collections::VecDeque;
+use std::collections::{vec_deque, VecDeque};
use std::fmt;
+use std::iter::{FromIterator, FusedI... | 2 | 110 | 13 |
da302d4b7a3faaeb5d041f8480d4437113d2e0d5 | Nikolay Kim | 2019-07-03T07:02:03 | fix disconnect callback | diff --git a/actix-ioframe/Cargo.toml b/actix-ioframe/Cargo.toml
index 6d17fb0..0c03c09 100644
--- a/actix-ioframe/Cargo.toml
+++ b/actix-ioframe/Cargo.toml
@@ -18,8 +18,8 @@ name = "actix_ioframe"
path = "src/lib.rs"
[dependencies]
-actix-service = "0.4.0"
-actix-codec = "0.1.1"
+actix-service = "0.4.1"
+actix-cod... | 4 | 79 | 11 |
922a919572d349b6c574855a278dee5ac1b829f2 | Nikolay Kim | 2019-07-02T06:35:27 | simple callback | diff --git a/actix-ioframe/src/service.rs b/actix-ioframe/src/service.rs
index 0e32c4c..543abfc 100644
--- a/actix-ioframe/src/service.rs
+++ b/actix-ioframe/src/service.rs
@@ -81,14 +81,9 @@ where
/// Second parameter indicates error occured during disconnect.
pub fn disconnect<F, Out>(mut self, disconnect: ... | 1 | 5 | 15 |
5a62175b6e1d64329a6402e7ddcadb9a34a9cb7c | Nikolay Kim | 2019-07-02T06:10:05 | add disconnect callback | diff --git a/actix-ioframe/src/dispatcher.rs b/actix-ioframe/src/dispatcher.rs
index 02f0da5..fa7bfe4 100644
--- a/actix-ioframe/src/dispatcher.rs
+++ b/actix-ioframe/src/dispatcher.rs
@@ -1,6 +1,7 @@
//! Framed dispatcher service and related utilities
use std::collections::VecDeque;
use std::mem;
+use std::rc::Rc;
... | 2 | 63 | 2 |
5445e341c34f313b8028c6e4f068424044b4c332 | Nikolay Kim | 2019-07-01T16:37:59 | give access to io object during connect stage | diff --git a/actix-ioframe/src/connect.rs b/actix-ioframe/src/connect.rs
index 2919022..d7f403c 100644
--- a/actix-ioframe/src/connect.rs
+++ b/actix-ioframe/src/connect.rs
@@ -51,6 +51,16 @@ impl<Io, St, Codec: Encoder + Decoder> ConnectResult<Io, St, Codec> {
&self.sink
}
+ #[inline]
+ pub fn ge... | 1 | 10 | 0 |
1b17d274a0ec6fb397b5b6aad2384b778ca2cc58 | Nikolay Kim | 2019-07-01T05:20:24 | refactor connect stage | diff --git a/actix-ioframe/src/cell.rs b/actix-ioframe/src/cell.rs
index 419709c..1794dd6 100644
--- a/actix-ioframe/src/cell.rs
+++ b/actix-ioframe/src/cell.rs
@@ -29,10 +29,6 @@ impl<T> Cell<T> {
}
}
- pub fn get_ref(&self) -> &T {
- unsafe { &*self.inner.as_ref().get() }
- }
-
pub f... | 7 | 106 | 143 |
9d8b3e6275494d4c34fc827256809e5b44f3a3b2 | Nikolay Kim | 2019-06-30T16:58:23 | impl Stream and Sink for Connect | diff --git a/actix-ioframe/src/connect.rs b/actix-ioframe/src/connect.rs
index 3302e14..406066f 100644
--- a/actix-ioframe/src/connect.rs
+++ b/actix-ioframe/src/connect.rs
@@ -6,49 +6,75 @@ use crate::dispatcher::FramedMessage;
use crate::sink::Sink;
pub struct Connect<Io, St = (), Codec = ()> {
- io: Io,
- ... | 2 | 90 | 28 |
9e61f628711cd013aac351d825ecfdc3e60132fa | George Hahn | 2019-06-05T17:36:04 | `new_async` -> `run_in_executor` and return future directly + builder cleanup | diff --git a/actix-rt/src/builder.rs b/actix-rt/src/builder.rs
index ef33528..e9d2c8f 100644
--- a/actix-rt/src/builder.rs
+++ b/actix-rt/src/builder.rs
@@ -73,7 +73,7 @@ impl Builder {
/// Create new System that can run asynchronously.
///
/// This method panics if it cannot start the system arbiter
- ... | 2 | 31 | 31 |
ad9a197916c6874fc03b7b1b2e0bd2031f0798de | Igor Gnatenko | 2019-05-30T18:30:43 | chore: Update parking_lot to 0.8
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com> | diff --git a/actix-threadpool/Cargo.toml b/actix-threadpool/Cargo.toml
index 84438e1..a2dbfb8 100644
--- a/actix-threadpool/Cargo.toml
+++ b/actix-threadpool/Cargo.toml
@@ -20,7 +20,7 @@ path = "src/lib.rs"
[dependencies]
derive_more = "0.14"
futures = "0.1.25"
-parking_lot = "0.7"
+parking_lot = "0.8"
lazy_static ... | 1 | 1 | 1 |
c4f05e033f9b15a0774dc66160e750677dcc7dd4 | George Hahn | 2019-05-24T15:29:52 | fixup: fix `new_async` doc comment | diff --git a/actix-rt/src/system.rs b/actix-rt/src/system.rs
index 7bead2a..8d8a873 100644
--- a/actix-rt/src/system.rs
+++ b/actix-rt/src/system.rs
@@ -57,9 +57,9 @@ impl System {
}
#[allow(clippy::new_ret_no_self)]
- /// Create new system.
+ /// Create new system using provided CurrentThread Handle.... | 1 | 2 | 2 |
048314913cfd9bd22d40bddd2f84e6971fa7db5b | George Hahn | 2019-05-23T18:34:47 | Enable System to be executed on an external CurrentThread runtime | diff --git a/actix-rt/src/builder.rs b/actix-rt/src/builder.rs
index 49e8c1f..ef33528 100644
--- a/actix-rt/src/builder.rs
+++ b/actix-rt/src/builder.rs
@@ -1,11 +1,12 @@
use std::borrow::Cow;
use std::io;
+use futures::future;
use futures::future::{lazy, Future};
use futures::sync::mpsc::unbounded;
use futures:... | 2 | 77 | 2 |
139fa3b9a26d254863723130f7b6c15cc2de96d1 | Pirmin Kalberer | 2019-05-15T18:51:24 | Fix typo | diff --git a/router/src/router.rs b/router/src/router.rs
index 0faa27b..bffc208 100644
--- a/router/src/router.rs
+++ b/router/src/router.rs
@@ -19,26 +19,26 @@ impl<T, U> Router<T, U> {
}
}
- pub fn recognize<R, P>(&self, reosurce: &mut R) -> Option<(&T, ResourceId)>
+ pub fn recognize<R, P>(&sel... | 1 | 4 | 4 |
fc2631c8525b581eb08323fb0bf3346b3b6ca148 | Nikolay Kim | 2019-05-15T00:37:14 | merge remote | diff --git a/actix-tower/src/lib.rs b/actix-tower/src/lib.rs
index 973e603..891b501 100644
--- a/actix-tower/src/lib.rs
+++ b/actix-tower/src/lib.rs
@@ -166,12 +166,8 @@ pub trait TowerServiceExt<R> : TowerService<R> + Sized {
/// ```
fn wrap_with_actix_middleware<F, U>(self, f: F) -> TowerCompat<U>
wher... | 1 | 1 | 25 |
837504c10f8be3c2c57d25931316aca898d4f49c | Nikolay Kim | 2019-05-12T15:40:42 | update deps | diff --git a/Cargo.toml b/Cargo.toml
index db22022..13313ba 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -29,10 +29,10 @@ members = [
]
[dev-dependencies]
-actix-service = "0.3.3"
+actix-service = "0.4.0"
actix-codec = "0.1.1"
actix-rt = "0.2.0"
-actix-server = { path="actix-server", features=["ssl"] }
+actix-serv... | 1 | 2 | 2 |
7712de3d8e8b26c5131b1adec80f2a8bad319f23 | Nikolay Kim | 2019-05-12T15:10:30 | update deps | diff --git a/actix-test-server/Cargo.toml b/actix-test-server/Cargo.toml
index 7dae217..dd461c9 100644
--- a/actix-test-server/Cargo.toml
+++ b/actix-test-server/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "actix-test-server"
-version = "0.2.1"
+version = "0.2.2"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
descr... | 1 | 4 | 4 |
a76fcaf4d8029aee03babe5fcb7057f51ec70c3d | Nikolay Kim | 2019-05-12T15:00:23 | prepare actix-utils release | diff --git a/actix-utils/Cargo.toml b/actix-utils/Cargo.toml
index eef9566..010b79d 100644
--- a/actix-utils/Cargo.toml
+++ b/actix-utils/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "actix-utils"
-version = "0.3.5"
+version = "0.4.0"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
description = "Actix utils - variou... | 1 | 3 | 3 |
c7676df697f0117135cac7a9a94bbe93f14bf256 | Marcus Griep | 2019-05-03T14:08:49 | Add documentation and doctests | diff --git a/actix-tower/src/lib.rs b/actix-tower/src/lib.rs
index 78311a9..891b501 100644
--- a/actix-tower/src/lib.rs
+++ b/actix-tower/src/lib.rs
@@ -1,4 +1,60 @@
-//! Utilities to ease interoperability with services based on the `tower-service` crate.
+//! Utilities to provide interoperability between services base... | 1 | 210 | 1 |
ecf7a11a202bf97fd1f3987356aa72e01a1e614b | Marcus Griep | 2019-05-02T21:47:37 | Add convenience methods to wrap with middleware | diff --git a/actix-tower/src/lib.rs b/actix-tower/src/lib.rs
index a57dad0..78311a9 100644
--- a/actix-tower/src/lib.rs
+++ b/actix-tower/src/lib.rs
@@ -23,22 +23,29 @@ impl<S, R> ActixCompat<S, R> {
/// Extension trait for wrapping a `tower_service::Service` instance for use as
/// an `actix_service::Service`.
-pu... | 1 | 42 | 18 |
686958fe0c11112e412e3e6fc918b4284fb28e8c | Marcus Griep | 2019-05-02T21:21:42 | Add reciprical compatibility layer for tower | diff --git a/actix-tower/src/lib.rs b/actix-tower/src/lib.rs
index 1e985db..a57dad0 100644
--- a/actix-tower/src/lib.rs
+++ b/actix-tower/src/lib.rs
@@ -6,40 +6,40 @@ use tower_service::Service as TowerService;
/// Compatibility wrapper associating a `tower_service::Service` with a particular
/// `Request` type, so... | 1 | 263 | 100 |
b0c37dfc878d6b1dbc3c361b1bbb327c6f59704f | Harry Stern | 2019-05-02T05:31:04 | Derive debug for Server and ServerCommand | diff --git a/actix-server/src/server.rs b/actix-server/src/server.rs
index 4bc5999..f1d862c 100644
--- a/actix-server/src/server.rs
+++ b/actix-server/src/server.rs
@@ -5,6 +5,7 @@ use futures::Future;
use crate::builder::ServerBuilder;
use crate::signals::Signal;
+#[derive(Debug)]
pub(crate) enum ServerCommand {
... | 1 | 2 | 1 |
83544bd9716f84b3c8e6c501f90a430bde57ea7d | Boris-Chengbiao Zhou | 2019-04-23T19:58:34 | Increase compiler recursion limit
Fixes `cargo doc` on Windows. (actix/actix#189) | diff --git a/actix-connect/src/lib.rs b/actix-connect/src/lib.rs
index 8a1085f..729067b 100644
--- a/actix-connect/src/lib.rs
+++ b/actix-connect/src/lib.rs
@@ -5,6 +5,8 @@
//! * `ssl` - enables ssl support via `openssl` crate
//! * `rust-tls` - enables ssl support via `rustls` crate
+#![recursion_limit = "128"]
+
... | 1 | 2 | 0 |
54f62b5035ed52e84f2b279a06021a1df3d6d23a | Nikolay Kim | 2019-04-12T19:30:55 | prep release | diff --git a/actix-connect/Cargo.toml b/actix-connect/Cargo.toml
index 313bcae..418f8e5 100644
--- a/actix-connect/Cargo.toml
+++ b/actix-connect/Cargo.toml
@@ -48,8 +48,7 @@ tokio-openssl = { version="0.3", optional = true }
[dev-dependencies]
bytes = "0.4"
-#actix-test-server = { version="0.2.0", features=["ssl"]... | 1 | 1 | 2 |
21507d3da14928068b1eddd0de4f0c2c8a8a1d27 | Nikolay Kim | 2019-04-12T19:26:47 | add TestServerRuntime::run_on() method | diff --git a/actix-test-server/Cargo.toml b/actix-test-server/Cargo.toml
index 010ec1e..7dae217 100644
--- a/actix-test-server/Cargo.toml
+++ b/actix-test-server/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "actix-test-server"
-version = "0.2.0"
+version = "0.2.1"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
descr... | 2 | 11 | 2 |
bd814d6f807da7c3149b9ff82dd3c1383b8ac596 | Nikolay Kim | 2019-04-05T17:36:57 | re-export trust-dns types | diff --git a/actix-connect/src/lib.rs b/actix-connect/src/lib.rs
index bc61f29..5d4a6c6 100644
--- a/actix-connect/src/lib.rs
+++ b/actix-connect/src/lib.rs
@@ -17,6 +17,8 @@ pub mod ssl;
#[cfg(feature = "uri")]
mod uri;
+pub use trust_dns_resolver::config::{ResolverConfig, ResolverOpts};
+pub use trust_dns_resolve... | 2 | 3 | 3 |
5cbc29306aa65e57836cf4ec1e140e3f60deb3eb | dowwie | 2019-04-04T18:02:53 | updated as per comments | diff --git a/actix-service/src/lib.rs b/actix-service/src/lib.rs
index 6e0aea4..3b1e6e3 100644
--- a/actix-service/src/lib.rs
+++ b/actix-service/src/lib.rs
@@ -53,9 +53,6 @@ pub use self::then::{Then, ThenNewService};
pub use self::transform::{apply_transform, IntoTransform, Transform};
/// An asynchronous functio... | 2 | 1 | 6 |
33cd51aabf930ed18444c7304da519b1c4cf278d | dowwie | 2019-04-04T15:40:28 | added docs for trait Service, trait Transform | diff --git a/actix-service/src/lib.rs b/actix-service/src/lib.rs
index 3b1e6e3..6e0aea4 100644
--- a/actix-service/src/lib.rs
+++ b/actix-service/src/lib.rs
@@ -53,6 +53,9 @@ pub use self::then::{Then, ThenNewService};
pub use self::transform::{apply_transform, IntoTransform, Transform};
/// An asynchronous functio... | 2 | 15 | 3 |
1441355d4f7049faf61595720b409c9449d4e9e4 | Nikolay Kim | 2019-03-28T11:02:39 | use release | diff --git a/actix-rt/Cargo.toml b/actix-rt/Cargo.toml
index 1ba6947..148e324 100644
--- a/actix-rt/Cargo.toml
+++ b/actix-rt/Cargo.toml
@@ -18,7 +18,7 @@ name = "actix_rt"
path = "src/lib.rs"
[dependencies]
-actix-threadpool = { path="../actix-threadpool" }
+actix-threadpool = "0.1.0"
futures = "0.1.25"
tokio-cu... | 1 | 1 | 1 |
bcbd7e6ddf39237a575083bde5aaafacc5f4267b | Juan Aguilar Santillana | 2019-03-22T17:29:12 | Fix unnecessary arbiter clone at builder rt | diff --git a/actix-rt/src/builder.rs b/actix-rt/src/builder.rs
index 73bfaa3..49e8c1f 100644
--- a/actix-rt/src/builder.rs
+++ b/actix-rt/src/builder.rs
@@ -86,8 +86,7 @@ impl Builder {
let (stop_tx, stop) = channel();
let (sys_sender, sys_receiver) = unbounded();
- let arbiter = Arbiter::new... | 1 | 1 | 2 |
7ff923a58fa9d75b1ea0877ea45a68cd1fc13e82 | Nikolay Kim | 2019-03-14T19:56:59 | stop tests threads | diff --git a/actix-connect/src/uri.rs b/actix-connect/src/uri.rs
index 4f99212..98da805 100644
--- a/actix-connect/src/uri.rs
+++ b/actix-connect/src/uri.rs
@@ -25,6 +25,7 @@ fn port(scheme: Option<&str>) -> Option<u16> {
"ws" => Some(80),
"wss" => Some(443),
"amqp" => Some(5672),... | 2 | 25 | 9 |
1146d9cf30eb32b74f2e87db582c5cdc89ff4d7a | Nikolay Kim | 2019-03-15T03:48:58 | fix init order | diff --git a/actix-server/src/config.rs b/actix-server/src/config.rs
index 62b9e2a..a861ad9 100644
--- a/actix-server/src/config.rs
+++ b/actix-server/src/config.rs
@@ -114,19 +114,23 @@ impl InternalServiceFactory for ConfiguredService {
self.rt.configure(&mut rt);
rt.validate();
- // constr... | 1 | 18 | 6 |
9b6a955da4e7b31bf1a2f19db5b5bf0371b29c55 | William Brown | 2019-03-15T00:24:27 | Improve Arbiter documentation | diff --git a/actix-rt/src/arbiter.rs b/actix-rt/src/arbiter.rs
index 66143e1..0fba710 100644
--- a/actix-rt/src/arbiter.rs
+++ b/actix-rt/src/arbiter.rs
@@ -36,6 +36,9 @@ impl fmt::Debug for ArbiterCommand {
}
#[derive(Debug, Clone)]
+/// Arbiters provide an asynchronous execution environment for actors, functions
... | 1 | 18 | 7 |
265229b44b012b3225df73fff49068c01c4f9a7b | Nikolay Kim | 2019-03-14T05:55:01 | allow to override port | diff --git a/actix-connect/src/connect.rs b/actix-connect/src/connect.rs
index a82298d..2fd05a1 100644
--- a/actix-connect/src/connect.rs
+++ b/actix-connect/src/connect.rs
@@ -61,6 +61,12 @@ impl<T: Address> Connect<T> {
}
}
+ /// Set port
+ pub fn set_port(mut self, port: u16) -> Self {
+ ... | 1 | 6 | 0 |
38545dedc71d98b25b988c18eebb1c4a9c3fcc18 | Nikolay Kim | 2019-03-14T05:51:31 | refactor Connect type and add tests | diff --git a/actix-connect/Cargo.toml b/actix-connect/Cargo.toml
index 137728f..30b998d 100644
--- a/actix-connect/Cargo.toml
+++ b/actix-connect/Cargo.toml
@@ -41,3 +41,11 @@ trust-dns-resolver = { version="0.11.0-alpha.2", default-features = false }
# openssl
openssl = { version="0.10", optional = true }
tokio-ope... | 8 | 186 | 150 |
6ebff22601ff5ae0cb4f38cccff0e938c6e18882 | Nikolay Kim | 2019-03-13T23:38:08 | simplify name | diff --git a/actix-connect/src/connect.rs b/actix-connect/src/connect.rs
index 0c87135..168e554 100644
--- a/actix-connect/src/connect.rs
+++ b/actix-connect/src/connect.rs
@@ -86,7 +86,7 @@ impl Connect<()> {
impl<T: Address> Connect<T> {
/// Create new `Connect` instance.
- pub fn with_request(req: T) -> C... | 1 | 1 | 1 |
2c9b91b366f2bdf496745d8a9c869922e6c7204d | Nikolay Kim | 2019-03-13T22:55:20 | add specific constructors | diff --git a/actix-connect/src/connect.rs b/actix-connect/src/connect.rs
index 970f7b2..0c87135 100644
--- a/actix-connect/src/connect.rs
+++ b/actix-connect/src/connect.rs
@@ -52,9 +52,17 @@ impl Connect<(&'static str, u16)> {
}
}
-impl Connect<(String, u16)> {
+impl Connect<()> {
/// Create new `Connect`... | 1 | 11 | 3 |
b48320003779116879605fcf6b0c565620b4b637 | Nikolay Kim | 2019-03-13T22:52:51 | remove generic | diff --git a/actix-connect/src/connect.rs b/actix-connect/src/connect.rs
index 7b52292..970f7b2 100644
--- a/actix-connect/src/connect.rs
+++ b/actix-connect/src/connect.rs
@@ -54,9 +54,9 @@ impl Connect<(&'static str, u16)> {
impl Connect<(String, u16)> {
/// Create new `Connect` instance.
- pub fn new<T: A... | 1 | 2 | 2 |
a73600fbcd5016d894c2999945993789abe31c5e | Nikolay Kim | 2019-03-13T22:51:21 | remove generic E | diff --git a/actix-connect/src/ssl/openssl.rs b/actix-connect/src/ssl/openssl.rs
index daaf05a..15ebf2d 100644
--- a/actix-connect/src/ssl/openssl.rs
+++ b/actix-connect/src/ssl/openssl.rs
@@ -10,12 +10,12 @@ use tokio_openssl::{ConnectAsync, SslConnectorExt, SslStream};
use crate::{Address, Connection};
/// Openss... | 1 | 7 | 7 |
084a28ca07557a3bc93ae7e765c0d4586b463503 | Nikolay Kim | 2019-03-13T22:49:31 | add Connect::with_request | diff --git a/actix-connect/src/connect.rs b/actix-connect/src/connect.rs
index 92be3fa..7b52292 100644
--- a/actix-connect/src/connect.rs
+++ b/actix-connect/src/connect.rs
@@ -77,6 +77,11 @@ impl Connect<(String, u16)> {
}
impl<T: Address> Connect<T> {
+ /// Create new `Connect` instance.
+ pub fn with_reque... | 1 | 5 | 0 |
a7c74c53ea1feafc4f582915b8b259f0ae752283 | Nikolay Kim | 2019-03-13T22:37:12 | store request in Connect request | diff --git a/actix-connect/src/connect.rs b/actix-connect/src/connect.rs
index e6c8be2..92be3fa 100644
--- a/actix-connect/src/connect.rs
+++ b/actix-connect/src/connect.rs
@@ -6,155 +6,162 @@ use either::Either;
use crate::error::ConnectError;
+/// Connect request
+pub trait Address {
+ /// Host name of the re... | 5 | 267 | 222 |
52a45fda53626273b4596a81fa9fb422dd8ffa60 | Nikolay Kim | 2019-03-13T19:40:11 | redesign actix-connector | diff --git a/actix-connector/Cargo.toml b/actix-connector/Cargo.toml
index b2a2f9c..49e77bf 100644
--- a/actix-connector/Cargo.toml
+++ b/actix-connector/Cargo.toml
@@ -1,6 +1,6 @@
[package]
-name = "actix-connector"
-version = "0.3.0"
+name = "actix-connect"
+version = "0.1.0"
authors = ["Nikolay Kim <fafhrd91@gmail... | 7 | 528 | 438 |
2c7de7e0fbd231073f1354769484d1751071285d | Naja Melan | 2019-03-13T07:41:26 | Fix compiler warnings.
Compiles in stable and nightly | diff --git a/actix-rt/src/runtime.rs b/actix-rt/src/runtime.rs
index e526914..d98f85d 100644
--- a/actix-rt/src/runtime.rs
+++ b/actix-rt/src/runtime.rs
@@ -41,7 +41,7 @@ impl Error for RunError {
self.inner.description()
}
fn cause(&self) -> Option<&Error> {
- self.inner.cause()
+ self... | 2 | 3 | 3 |
1fcc0734b55d6536cf59b98073595cb4d19d3cb5 | Nikolay Kim | 2019-03-13T00:01:02 | prep release | diff --git a/actix-test-server/Cargo.toml b/actix-test-server/Cargo.toml
index 34c1eba..53c24f4 100644
--- a/actix-test-server/Cargo.toml
+++ b/actix-test-server/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "actix-test-server"
-version = "0.1.0"
+version = "0.2.0"
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
descr... | 1 | 4 | 5 |
b6f952b0362b66e538c088355507445ed8fa8d65 | Nikolay Kim | 2019-03-12T23:49:57 | remove constraint | diff --git a/actix-server/src/builder.rs b/actix-server/src/builder.rs
index 6fa2e9c..99f2754 100644
--- a/actix-server/src/builder.rs
+++ b/actix-server/src/builder.rs
@@ -2,7 +2,6 @@ use std::time::Duration;
use std::{io, mem, net};
use actix_rt::{spawn, Arbiter, System};
-use actix_service::NewService;
use futu... | 1 | 1 | 4 |
0fdac3830746eb4aab7245411c1d581f84de7922 | Nikolay Kim | 2019-03-12T23:48:29 | add constraint | diff --git a/actix-server/src/builder.rs b/actix-server/src/builder.rs
index 99f2754..6fa2e9c 100644
--- a/actix-server/src/builder.rs
+++ b/actix-server/src/builder.rs
@@ -2,6 +2,7 @@ use std::time::Duration;
use std::{io, mem, net};
use actix_rt::{spawn, Arbiter, System};
+use actix_service::NewService;
use futu... | 1 | 4 | 1 |
6801a38de50eb062fde85797feaf37301d9b1d34 | Nikolay Kim | 2019-03-12T22:15:14 | check readiness for all services | diff --git a/actix-service/src/and_then.rs b/actix-service/src/and_then.rs
index 5dbc343..38a4a5b 100644
--- a/actix-service/src/and_then.rs
+++ b/actix-service/src/and_then.rs
@@ -1,6 +1,6 @@
use std::marker::PhantomData;
-use futures::{try_ready, Async, Future, Poll};
+use futures::{Async, Future, Poll};
use su... | 3 | 21 | 9 |
39356690b0ee8a3674d16ace16cdc316027a0ff9 | Nikolay Kim | 2019-03-12T21:14:21 | use ServerConfig for system configuration | diff --git a/actix-server/src/builder.rs b/actix-server/src/builder.rs
index 0172013..99f2754 100644
--- a/actix-server/src/builder.rs
+++ b/actix-server/src/builder.rs
@@ -150,7 +150,7 @@ impl ServerBuilder {
let mut srv = ConfiguredService::new(apply);
for (name, lst) in cfg.services {
... | 2 | 16 | 14 |
f6f292a678e3f98df371da06dc491b90e781a488 | Nikolay Kim | 2019-03-12T20:57:28 | enforce constraint on OpensslAcceptor | diff --git a/actix-server/src/ssl/openssl.rs b/actix-server/src/ssl/openssl.rs
index 23ec153..dc46053 100644
--- a/actix-server/src/ssl/openssl.rs
+++ b/actix-server/src/ssl/openssl.rs
@@ -13,12 +13,12 @@ use crate::{Io, Protocol, ServerConfig};
/// Support `SSL` connections via openssl package
///
/// `ssl` feature... | 1 | 2 | 2 |
b3366bc1af79025b1a8d724e21a49f06ffc20be7 | Nikolay Kim | 2019-03-12T20:55:31 | service response is not important | diff --git a/actix-server/src/service_config.rs b/actix-server/src/service_config.rs
index faa50de..ed1713b 100644
--- a/actix-server/src/service_config.rs
+++ b/actix-server/src/service_config.rs
@@ -173,7 +173,7 @@ impl ServiceRuntime {
pub fn service<T, F>(&mut self, name: &str, service: F)
where
... | 1 | 2 | 2 |
2c1f8f0b96aa8726d0233aa5f352c954255a3ab9 | Nikolay Kim | 2019-03-12T20:50:14 | enforce constraints on AndThenNewService type | diff --git a/actix-service/src/and_then.rs b/actix-service/src/and_then.rs
index ee0f5e1..5dbc343 100644
--- a/actix-service/src/and_then.rs
+++ b/actix-service/src/and_then.rs
@@ -107,19 +107,23 @@ where
}
/// `AndThenNewService` new service combinator
-pub struct AndThenNewService<A, B, C> {
+pub struct AndThenNe... | 1 | 13 | 9 |
e7465bfa2e6638251fae7832b62d75a52cfbdd65 | Nikolay Kim | 2019-03-12T20:45:05 | fix map_err constraints | diff --git a/actix-service/src/lib.rs b/actix-service/src/lib.rs
index 38e220a..052c53a 100644
--- a/actix-service/src/lib.rs
+++ b/actix-service/src/lib.rs
@@ -335,7 +335,7 @@ pub trait NewService<Config = ()> {
fn map_err<F, E>(self, f: F) -> MapErrNewService<Self, F, E, Config>
where
Self: Sized,
... | 2 | 14 | 10 |
825117fd4c3c6bdd4fe3900000886fcb5388a3d9 | Nikolay Kim | 2019-03-12T20:12:22 | add Deref/DerefMut impls for Io | diff --git a/actix-server-config/src/lib.rs b/actix-server-config/src/lib.rs
index 6f8f300..6eccaf4 100644
--- a/actix-server-config/src/lib.rs
+++ b/actix-server-config/src/lib.rs
@@ -111,6 +111,20 @@ impl<T, P> Io<T, P> {
}
}
+impl<T, P> std::ops::Deref for Io<T, P> {
+ type Target = T;
+
+ fn deref(&se... | 1 | 14 | 0 |
7033b50fed0d4cdaf1ed1c6696f0aeda6f845c33 | Nikolay Kim | 2019-03-12T19:53:43 | add Io::set method for overriding param | diff --git a/actix-server-config/src/lib.rs b/actix-server-config/src/lib.rs
index 0d4f7c6..6f8f300 100644
--- a/actix-server-config/src/lib.rs
+++ b/actix-server-config/src/lib.rs
@@ -89,6 +89,15 @@ impl<T, P> Io<T, P> {
self.proto
}
+ /// Return new Io object with new parameter.
+ pub fn set<U>(... | 1 | 9 | 0 |
5567fb41d20944b59088fffb6d697c8d8f804ea4 | Nikolay Kim | 2019-03-11T20:48:55 | add default type parameter | diff --git a/actix-server/src/ssl/nativetls.rs b/actix-server/src/ssl/nativetls.rs
index 22d4bc5..62b8f4c 100644
--- a/actix-server/src/ssl/nativetls.rs
+++ b/actix-server/src/ssl/nativetls.rs
@@ -13,7 +13,7 @@ use crate::{Io, Protocol, ServerConfig};
/// Support `SSL` connections via native-tls package
///
/// `tls... | 3 | 3 | 3 |
ad50595ecef19988185a16f47fb689264a73705f | Nikolay Kim | 2019-03-11T20:37:30 | add PartialEq impl for Io | diff --git a/actix-server-config/src/lib.rs b/actix-server-config/src/lib.rs
index fa8735f..0d4f7c6 100644
--- a/actix-server-config/src/lib.rs
+++ b/actix-server-config/src/lib.rs
@@ -33,7 +33,7 @@ impl ServerConfig {
}
}
-#[derive(Copy, Clone, Debug)]
+#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub e... | 2 | 2 | 2 |
2430c7247b6c612e71d5bc309472094c77f6c3af | Nikolay Kim | 2019-03-11T19:53:16 | update timing for travis | diff --git a/actix-server/tests/test_server.rs b/actix-server/tests/test_server.rs
index 2cc6c36..edfcf6b 100644
--- a/actix-server/tests/test_server.rs
+++ b/actix-server/tests/test_server.rs
@@ -94,15 +94,14 @@ fn test_start() {
let _ = sys.run();
});
let (srv, sys) = rx.recv().unwrap();
- threa... | 1 | 2 | 3 |
1bf0f1e1a5d38927a376e4b5a941044e0af585f9 | Nikolay Kim | 2019-03-11T19:46:12 | add Debug impl for Io; update examples | diff --git a/actix-server-config/src/lib.rs b/actix-server-config/src/lib.rs
index b321882..fa8735f 100644
--- a/actix-server-config/src/lib.rs
+++ b/actix-server-config/src/lib.rs
@@ -1,4 +1,5 @@
use std::cell::Cell;
+use std::fmt;
use std::net::SocketAddr;
use std::rc::Rc;
@@ -63,22 +64,27 @@ impl<T> Io<T, ()> {... | 3 | 18 | 6 |
9887aef6e8d4ef49b1d27ae88477281e2b32f371 | Nikolay Kim | 2019-03-11T19:35:57 | add delay to test | diff --git a/actix-server/tests/test_server.rs b/actix-server/tests/test_server.rs
index d85cca7..13fe5e9 100644
--- a/actix-server/tests/test_server.rs
+++ b/actix-server/tests/test_server.rs
@@ -102,6 +102,7 @@ fn test_start() {
let _ = srv.pause();
thread::sleep(time::Duration::from_millis(100));
asse... | 1 | 1 | 0 |
787255d030cae76ae6c6ca7b89e054dcfed46a10 | Nikolay Kim | 2019-03-11T19:01:55 | add io parameters | diff --git a/actix-server-config/src/lib.rs b/actix-server-config/src/lib.rs
index 51accad..b321882 100644
--- a/actix-server-config/src/lib.rs
+++ b/actix-server-config/src/lib.rs
@@ -31,3 +31,67 @@ impl ServerConfig {
self.secure.as_ref().set(true)
}
}
+
+#[derive(Copy, Clone, Debug)]
+pub enum Protoco... | 9 | 267 | 87 |
43ad18ccb1038b07194ee08f42cb714a7621ba36 | Nikolay Kim | 2019-03-09T21:58:07 | remove get_decoded | diff --git a/router/src/path.rs b/router/src/path.rs
index 4a4679d..c38a0a0 100644
--- a/router/src/path.rs
+++ b/router/src/path.rs
@@ -159,25 +159,6 @@ impl<T: ResourcePath> Path<T> {
}
}
-#[cfg(feature = "http")]
-use std::borrow::Cow;
-
-#[cfg(feature = "http")]
-impl Path<crate::Url> {
- /// Get URL-dec... | 1 | 0 | 19 |
34995a8ccf6f5e506fa47616837f93de8c067a58 | Nikolay Kim | 2019-03-09T21:56:09 | revert re-quoting change | diff --git a/router/src/url.rs b/router/src/url.rs
index 6d02285..f5ed57e 100644
--- a/router/src/url.rs
+++ b/router/src/url.rs
@@ -1,13 +1,26 @@
-use http::Uri;
use std::rc::Rc;
use crate::ResourcePath;
-// https://tools.ietf.org/html/rfc3986#section-2.2
-const RESERVED_PLUS_EXTRA: &[u8] = b":/?#[]@!$&'()*,+?;=... | 1 | 72 | 53 |
0ff300c40f346d0fefd30ba277af0ee8640dccbc | Nikolay Kim | 2019-03-09T17:05:51 | export ApplyConfig | diff --git a/actix-service/src/lib.rs b/actix-service/src/lib.rs
index c0d6190..4e46da7 100644
--- a/actix-service/src/lib.rs
+++ b/actix-service/src/lib.rs
@@ -27,7 +27,7 @@ pub use self::and_then::{AndThen, AndThenNewService};
use self::and_then_apply::AndThenTransform;
use self::and_then_apply_fn::{AndThenApply, A... | 1 | 1 | 1 |
d2b96ff877a55c300e2c5bcc592393f1be7ba07e | Nikolay Kim | 2019-03-09T15:27:56 | add ServerConfig to server services | diff --git a/Cargo.toml b/Cargo.toml
index 88a8742..973b2f2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,6 +20,7 @@ members = [
"actix-rt",
"actix-service",
"actix-server",
+ "actix-server-config",
"actix-test-server",
"actix-utils",
"router",
diff --git a/actix-connector/src/connector.rs b/actix-... | 15 | 163 | 45 |
ac62e2dbf9f667827f3fcb25f5e076172b6bb410 | Nikolay Kim | 2019-03-09T15:27:35 | revert generic request in actix-utils | diff --git a/actix-utils/src/cloneable.rs b/actix-utils/src/cloneable.rs
index 16a8a2e..933e6a1 100644
--- a/actix-utils/src/cloneable.rs
+++ b/actix-utils/src/cloneable.rs
@@ -13,9 +13,9 @@ pub struct CloneableService<T: 'static> {
}
impl<T: 'static> CloneableService<T> {
- pub fn new<R>(service: T) -> Self
+ ... | 9 | 166 | 112 |
2099629fe39ba3f6bdf38e90709a4aff10dba2e4 | Nikolay Kim | 2019-03-09T06:41:30 | cleanup ssl services | diff --git a/actix-server/src/ssl/nativetls.rs b/actix-server/src/ssl/nativetls.rs
index 4b86a9b..f710819 100644
--- a/actix-server/src/ssl/nativetls.rs
+++ b/actix-server/src/ssl/nativetls.rs
@@ -8,7 +8,6 @@ use tokio_io::{AsyncRead, AsyncWrite};
use crate::counter::{Counter, CounterGuard};
use crate::ssl::MAX_CON... | 3 | 6 | 15 |
a4d47704623dcba961f3be456a3c0f6b4e1f19ff | Nikolay Kim | 2019-03-09T06:38:39 | remove server config | diff --git a/Cargo.toml b/Cargo.toml
index 973b2f2..88a8742 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,7 +20,6 @@ members = [
"actix-rt",
"actix-service",
"actix-server",
- "actix-server-config",
"actix-test-server",
"actix-utils",
"router",
diff --git a/actix-server-config/Cargo.toml b/actix-se... | 8 | 16 | 97 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.