Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor crates for better api stability #301

Merged
merged 14 commits into from
Mar 30, 2021
Prev Previous commit
Next Next commit
narrow rt features
  • Loading branch information
robjtede committed Mar 29, 2021
commit c926d1057fd065d28ecc0ba5dd16ebdba1d74581
2 changes: 1 addition & 1 deletion actix-codec/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ name = "actix_codec"
path = "src/lib.rs"

[dependencies]
actix-rt = { version = "2.0.0", default-features = false }
actix-service = "2.0.0-beta.5"
actix-rt = "2.0.0"

bitflags = "1.2.1"
bytes = "1"
Expand Down
14 changes: 8 additions & 6 deletions actix-server/tests/test_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ fn test_bind() {

let h = thread::spawn(move || {
let sys = actix_rt::System::new();
let srv = sys.block_on(lazy(|_| {
let srv = sys.block_on(async {
Server::build()
.workers(1)
.disable_signals()
.bind("test", addr, move || fn_service(|_| ok::<_, ()>(())))
.unwrap()
.run()
}));
});

let _ = tx.send((srv, actix_rt::System::current()));
let _ = sys.run();
});
Expand Down Expand Up @@ -82,7 +83,7 @@ fn test_start() {

let h = thread::spawn(move || {
let sys = actix_rt::System::new();
let srv = sys.block_on(lazy(|_| {
let srv = sys.block_on(async {
Server::build()
.backlog(100)
.disable_signals()
Expand All @@ -95,7 +96,7 @@ fn test_start() {
})
.unwrap()
.run()
}));
});

let _ = tx.send((srv, actix_rt::System::current()));
let _ = sys.run();
Expand Down Expand Up @@ -151,7 +152,7 @@ fn test_configure() {
let h = thread::spawn(move || {
let num = num2.clone();
let sys = actix_rt::System::new();
let srv = sys.block_on(lazy(|_| {
let srv = sys.block_on(async {
Server::build()
.disable_signals()
.configure(move |cfg| {
Expand All @@ -174,7 +175,8 @@ fn test_configure() {
.unwrap()
.workers(1)
.run()
}));
});

let _ = tx.send((srv, actix_rt::System::current()));
let _ = sys.run();
});
Expand Down