mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-14 18:20:59 +02:00
Compare commits
5 Commits
codec-0.1.
...
server-0.1
Author | SHA1 | Date | |
---|---|---|---|
|
d38eb00793 | ||
|
3c9d95bd9f | ||
|
331db2eb47 | ||
|
de66b5c776 | ||
|
4adbbad450 |
28
.travis.yml
28
.travis.yml
@@ -33,10 +33,12 @@ script:
|
|||||||
if [[ "$TRAVIS_RUST_VERSION" != "nightly" ]]; then
|
if [[ "$TRAVIS_RUST_VERSION" != "nightly" ]]; then
|
||||||
cargo clean
|
cargo clean
|
||||||
cargo test --features="ssl,tls,rust-tls" -- --nocapture
|
cargo test --features="ssl,tls,rust-tls" -- --nocapture
|
||||||
cd actix-codec && cargo test
|
cd actix-codec && cargo test && cd ..
|
||||||
cd actix-service && cargo test
|
cd actix-service && cargo test && cd ..
|
||||||
cd actix-server && cargo test --features="ssl,tls,rust-tls" -- --nocapture
|
cd actix-server && cargo test --features="ssl,tls,rust-tls" -- --nocapture && cd ..
|
||||||
cd actix-rt && cargo test
|
cd actix-rt && cargo test && cd ..
|
||||||
|
cd actix-connector && cargo test && cd ..
|
||||||
|
cd actix-utils && cargo test && cd ..
|
||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
|
if [[ "$TRAVIS_RUST_VERSION" == "nightly" ]]; then
|
||||||
@@ -44,16 +46,10 @@ script:
|
|||||||
cargo tarpaulin --features="ssl,tls,rust-tls" --out Xml
|
cargo tarpaulin --features="ssl,tls,rust-tls" --out Xml
|
||||||
bash <(curl -s https://codecov.io/bash)
|
bash <(curl -s https://codecov.io/bash)
|
||||||
echo "Uploaded code coverage"
|
echo "Uploaded code coverage"
|
||||||
cd actix-service && cargo tarpaulin --out Xml && bash <(curl -s https://codecov.io/bash)
|
cd actix-service && cargo tarpaulin --out Xml && bash <(curl -s https://codecov.io/bash) && cd ..
|
||||||
fi
|
cd actix-rt && cargo tarpaulin --out Xml && bash <(curl -s https://codecov.io/bash) && cd ..
|
||||||
|
cd actix-connector && cargo tarpaulin --out Xml && bash <(curl -s https://codecov.io/bash) && cd ..
|
||||||
# Upload docs
|
cd actix-codec && cargo tarpaulin --out Xml && bash <(curl -s https://codecov.io/bash) && cd ..
|
||||||
after_success:
|
cd actix-server && cargo tarpaulin --out Xml && bash <(curl -s https://codecov.io/bash) && cd ..
|
||||||
- |
|
cd actix-utils && cargo tarpaulin --out Xml && bash <(curl -s https://codecov.io/bash) && cd ..
|
||||||
if [[ "$TRAVIS_OS_NAME" == "linux" && "$TRAVIS_PULL_REQUEST" = "false" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_RUST_VERSION" == "beta" ]]; then
|
|
||||||
cargo doc --features "ssl,tls,rust-tls" --no-deps &&
|
|
||||||
echo "<meta http-equiv=refresh content=0;url=os_balloon/index.html>" > target/doc/index.html &&
|
|
||||||
git clone https://github.com/davisp/ghp-import.git &&
|
|
||||||
./ghp-import/ghp_import.py -n -p -f -m "Documentation upload" -r https://"$GH_TOKEN"@github.com/"$TRAVIS_REPO_SLUG.git" target/doc &&
|
|
||||||
echo "Uploaded documentation"
|
|
||||||
fi
|
fi
|
||||||
|
10
Cargo.toml
10
Cargo.toml
@@ -22,3 +22,13 @@ members = [
|
|||||||
"actix-rt",
|
"actix-rt",
|
||||||
"actix-utils",
|
"actix-utils",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[dev-dependencies]
|
||||||
|
actix-service = "0.1.1"
|
||||||
|
actix-codec = "0.1.0"
|
||||||
|
actix-rt = { path="actix-rt" }
|
||||||
|
actix-server = { path="actix-server", features=["ssl"] }
|
||||||
|
env_logger = "0.5"
|
||||||
|
futures = "0.1.24"
|
||||||
|
openssl = { version="0.10" }
|
||||||
|
tokio-openssl = { version="0.3" }
|
||||||
|
@@ -3,7 +3,6 @@ name = "actix-connector"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||||
description = "Actix Connector - tcp connector service"
|
description = "Actix Connector - tcp connector service"
|
||||||
readme = "README.md"
|
|
||||||
keywords = ["network", "framework", "async", "futures"]
|
keywords = ["network", "framework", "async", "futures"]
|
||||||
homepage = "https://actix.rs"
|
homepage = "https://actix.rs"
|
||||||
repository = "https://github.com/actix/actix-net.git"
|
repository = "https://github.com/actix/actix-net.git"
|
||||||
@@ -29,19 +28,13 @@ ssl = ["openssl", "tokio-openssl"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-service = "0.1.1"
|
actix-service = "0.1.1"
|
||||||
actix-codec = { path = "../actix-codec" }
|
actix-codec = "0.1.0"
|
||||||
actix-rt = { path = "../actix-rt" }
|
actix-rt = "0.1.0"
|
||||||
futures = "0.1"
|
futures = "0.1"
|
||||||
tokio-tcp = "0.1"
|
tokio-tcp = "0.1"
|
||||||
|
|
||||||
trust-dns-proto = "^0.5.0"
|
trust-dns-proto = "^0.5.0"
|
||||||
trust-dns-resolver = "^0.10.0"
|
trust-dns-resolver = "^0.10.0"
|
||||||
|
|
||||||
# openssl
|
# openssl
|
||||||
openssl = { version="0.10", optional = true }
|
openssl = { version="0.10", optional = true }
|
||||||
tokio-openssl = { version="0.3", optional = true }
|
tokio-openssl = { version="0.3", optional = true }
|
||||||
|
|
||||||
[profile.release]
|
|
||||||
lto = true
|
|
||||||
opt-level = 3
|
|
||||||
codegen-units = 1
|
|
||||||
|
@@ -3,7 +3,6 @@ name = "actix-server"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||||
description = "Actix server - General purpose tcp server"
|
description = "Actix server - General purpose tcp server"
|
||||||
readme = "README.md"
|
|
||||||
keywords = ["network", "framework", "async", "futures"]
|
keywords = ["network", "framework", "async", "futures"]
|
||||||
homepage = "https://actix.rs"
|
homepage = "https://actix.rs"
|
||||||
repository = "https://github.com/actix/actix-net.git"
|
repository = "https://github.com/actix/actix-net.git"
|
||||||
@@ -35,7 +34,7 @@ rust-tls = ["rustls", "tokio-rustls", "webpki", "webpki-roots"]
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-service = "0.1.1"
|
actix-service = "0.1.1"
|
||||||
actix-rt = { path = "../actix-rt" }
|
actix-rt = "0.1.0"
|
||||||
|
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
num_cpus = "1.0"
|
num_cpus = "1.0"
|
||||||
@@ -67,8 +66,3 @@ webpki-roots = { version = "0.15", optional = true }
|
|||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
env_logger = "0.5"
|
env_logger = "0.5"
|
||||||
|
|
||||||
[profile.release]
|
|
||||||
lto = true
|
|
||||||
opt-level = 3
|
|
||||||
codegen-units = 1
|
|
||||||
|
@@ -3,7 +3,6 @@ name = "actix-utils"
|
|||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||||
description = "Actix utils - various actix net related services"
|
description = "Actix utils - various actix net related services"
|
||||||
readme = "README.md"
|
|
||||||
keywords = ["network", "framework", "async", "futures"]
|
keywords = ["network", "framework", "async", "futures"]
|
||||||
homepage = "https://actix.rs"
|
homepage = "https://actix.rs"
|
||||||
repository = "https://github.com/actix/actix-net.git"
|
repository = "https://github.com/actix/actix-net.git"
|
||||||
@@ -20,15 +19,10 @@ path = "src/lib.rs"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
actix-service = "0.1.1"
|
actix-service = "0.1.1"
|
||||||
actix-codec = { path = "../actix-codec" }
|
actix-codec = "0.1.0"
|
||||||
actix-rt = { path = "../actix-rt" }
|
actix-rt = "0.1.0"
|
||||||
|
|
||||||
# io
|
# io
|
||||||
bytes = "0.4"
|
bytes = "0.4"
|
||||||
futures = "0.1"
|
futures = "0.1"
|
||||||
tokio-timer = "0.2.8"
|
tokio-timer = "0.2.8"
|
||||||
|
|
||||||
[profile.release]
|
|
||||||
lto = true
|
|
||||||
opt-level = 3
|
|
||||||
codegen-units = 1
|
|
||||||
|
@@ -7,15 +7,14 @@ use std::sync::{
|
|||||||
};
|
};
|
||||||
use std::{env, fmt};
|
use std::{env, fmt};
|
||||||
|
|
||||||
|
use actix_codec::{AsyncRead, AsyncWrite};
|
||||||
|
use actix_rt::System;
|
||||||
|
use actix_server::Server;
|
||||||
|
use actix_service::{IntoNewService, NewService};
|
||||||
use futures::{future, Future};
|
use futures::{future, Future};
|
||||||
use openssl::ssl::{SslAcceptor, SslFiletype, SslMethod};
|
use openssl::ssl::{SslAcceptor, SslFiletype, SslMethod};
|
||||||
use tokio_io::{AsyncRead, AsyncWrite};
|
|
||||||
use tokio_openssl::SslAcceptorExt;
|
use tokio_openssl::SslAcceptorExt;
|
||||||
|
|
||||||
use actix_net::server::Server;
|
|
||||||
use actix_rt::System;
|
|
||||||
use actix_service::{IntoNewService, NewService};
|
|
||||||
|
|
||||||
/// Simple logger service, it just prints fact of the new connections
|
/// Simple logger service, it just prints fact of the new connections
|
||||||
fn logger<T: AsyncRead + AsyncWrite + fmt::Debug>(
|
fn logger<T: AsyncRead + AsyncWrite + fmt::Debug>(
|
||||||
stream: T,
|
stream: T,
|
||||||
|
@@ -3,14 +3,12 @@ use std::sync::{
|
|||||||
Arc,
|
Arc,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
use actix_codec::{AsyncRead, AsyncWrite};
|
||||||
|
use actix_rt::System;
|
||||||
|
use actix_server::{ssl, Server};
|
||||||
|
use actix_service::NewService;
|
||||||
use futures::{future, Future};
|
use futures::{future, Future};
|
||||||
use openssl::ssl::{SslAcceptor, SslFiletype, SslMethod};
|
use openssl::ssl::{SslAcceptor, SslFiletype, SslMethod};
|
||||||
use tokio_io::{AsyncRead, AsyncWrite};
|
|
||||||
|
|
||||||
use actix_net::server::Server;
|
|
||||||
use actix_net::ssl;
|
|
||||||
use actix_rt::System;
|
|
||||||
use actix_service::NewService;
|
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
struct ServiceState {
|
struct ServiceState {
|
||||||
|
Reference in New Issue
Block a user