Skip to content

Commit 75007dd

Browse files
committed
pass all tests; ready to release v0.5.0-beta
1 parent 2f8a419 commit 75007dd

File tree

17 files changed

+51
-51
lines changed

17 files changed

+51
-51
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "roa-root"
3-
version = "0.5.0-alpha"
3+
version = "0.5.0-beta"
44
authors = ["Hexilee <hexileee@gmail.com>"]
55
edition = "2018"
66
license = "MIT"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
- Supports HTTP/1.x and HTTP/2.0 protocols.
3232
- Full streaming.
3333
- Highly extensible middleware system.
34-
- Based on [`hyper`](https://github.com/hyperium/hyper) and [`async-std`](https://github.com/async-rs/async-std), runtime-independent, you can chose any async runtime you like.
34+
- Based on [`hyper`](https://github.com/hyperium/hyper), runtime-independent, you can chose async runtime as you like.
3535
- Many useful extensions and middlewares.
3636
- Transparent content compression (br, gzip, deflate, zstd).
3737
- Configurable and nestable router.
@@ -52,7 +52,7 @@
5252
# Cargo.toml
5353

5454
[dependencies]
55-
roa = "0.5.0-alpha"
55+
roa = "0.5.0-beta"
5656
async-std = { version = "1.5", features = ["attributes"] }
5757
```
5858

integration/diesel-example/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ edition = "2018"
88

99
[dependencies]
1010
diesel = { version = "1.4", features = ["extras", "sqlite"] }
11-
roa = { path = "../../roa", version = "0.5.0-alpha", features = ["router", "body"] }
12-
roa-diesel = { path = "../../roa-diesel", version = "0.5.0-alpha" }
11+
roa = { path = "../../roa", features = ["router", "body"] }
12+
roa-diesel = { path = "../../roa-diesel" }
1313
async-std = { version = "1.4", features = ["attributes"] }
1414
log = "0.4"
1515
serde = { version = "1", features = ["derive"] }

integration/juniper-example/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ edition = "2018"
88

99
[dependencies]
1010
diesel = "1.4.3"
11-
roa = { path = "../../roa", version = "0.5.0-alpha", features = ["router", "body"] }
12-
roa-diesel = { path = "../../roa-diesel", version = "0.5.0-alpha" }
13-
roa-juniper = { path = "../../roa-juniper", version = "0.5.0-alpha" }
11+
roa = { path = "../../roa", features = ["router", "body"] }
12+
roa-diesel = { path = "../../roa-diesel" }
13+
roa-juniper = { path = "../../roa-juniper" }
1414
diesel-example = { path = "../diesel-example" }
1515
async-std = { version = "1.4", features = ["attributes"] }
1616
log = "0.4"

integration/multipart-example/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ edition = "2018"
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10-
roa = { path = "../../roa", version = "0.5.0-alpha", features = ["router", "body"] }
11-
roa-multipart = { path = "../../roa-multipart", version = "0.5.0-alpha" }
10+
roa = { path = "../../roa", features = ["router", "body"] }
11+
roa-multipart = { path = "../../roa-multipart" }
1212
async-std = { version = "1.5", features = ["attributes"] }
1313
log = "0.4"
1414
pretty_env_logger = "0.3"

integration/websocket-example/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ edition = "2018"
77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88

99
[dependencies]
10-
roa = { path = "../../roa", version = "0.5.0-alpha", features = ["router", "body", "websocket"] }
11-
roa-websocket = { path = "../../roa-websocket", version = "0.5.0-alpha" }
12-
async-std = { version = "1.4", features = ["attributes"] }
10+
roa = { path = "../../roa", features = ["router", "body", "websocket"] }
11+
roa-websocket = { path = "../../roa-websocket" }
12+
async-std = { version = "1.5", features = ["attributes"] }
1313
log = "0.4"
1414
pretty_env_logger = "0.3"
1515
futures = "0.3"

roa-body/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "roa-body"
3-
version = "0.5.0-alpha"
3+
version = "0.5.0-beta"
44
authors = ["Hexilee <i@hexilee.me>"]
55
edition = "2018"
66
license = "MIT"
@@ -28,7 +28,7 @@ async-std = "1.5.0"
2828
mime = "0.3"
2929
bytes = "0.5.4"
3030

31-
roa-core = { path = "../roa-core", version = "0.5.0-alpha" }
31+
roa-core = { path = "../roa-core", version = "0.5.0-beta" }
3232
serde = { version = "1", optional = true }
3333
askama = { version = "0.9", optional = true }
3434
serde_json = { version = "1.0", optional = true }
@@ -41,8 +41,8 @@ percent-encoding = { version = "2.1.0", optional = true }
4141
test-case = "1.0.0"
4242
tokio = { version = "0.2", features = ["full"] }
4343
reqwest = { version = "0.10", features = ["json", "cookies", "gzip"] }
44-
roa-tcp = { path = "../roa-tcp", version = "0.5.0-alpha" }
45-
roa-core = { path = "../roa-core", version = "0.5.0-alpha", features = ["runtime"] }
44+
roa-tcp = { path = "../roa-tcp", version = "0.5.0-beta" }
45+
roa-core = { path = "../roa-core", version = "0.5.0-beta", features = ["runtime"] }
4646

4747
[features]
4848
default = []

roa-core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "roa-core"
3-
version = "0.5.0-alpha"
3+
version = "0.5.0-beta"
44
authors = ["Hexilee <i@hexilee.me>"]
55
edition = "2018"
66
license = "MIT"
@@ -29,7 +29,7 @@ hyper = { version = "0.13", default-features = false, features = ["stream"] }
2929
log = "0.4"
3030
tokio = "0.2"
3131
async-trait = "0.1.24"
32-
async-std = { version = "1.5.0", features = ["unstable"],optional = true }
32+
async-std = { version = "1.5.0", features = ["unstable"], optional = true }
3333

3434
[dev-dependencies]
3535
async-std = { version = "1.5.0", features = ["attributes"] }

roa-core/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use roa_core::App;
2323

2424
let mut app = App::new(());
2525
app.end(|mut ctx| async move {
26-
ctx.resp_mut().write_str("Hello, World");
26+
ctx.resp_mut().write("Hello, World");
2727
Ok(())
2828
});
2929
```
@@ -51,7 +51,7 @@ app.gate_fn(|_ctx, next| async move {
5151
});
5252

5353
app.end(|mut ctx| async move {
54-
ctx.resp_mut().write_str("Hello, World");
54+
ctx.resp_mut().write("Hello, World");
5555
Ok(())
5656
});
5757
```
@@ -93,7 +93,7 @@ use roa_core::{Context, Error, Result, ErrorKind, State};
9393
pub async fn error_handler<S: State>(mut context: Context<S>, err: Error) -> Result {
9494
context.resp_mut().status = err.status_code;
9595
if err.expose {
96-
context.resp_mut().write_str(&err.message);
96+
context.resp_mut().write(err.message.clone());
9797
}
9898
if err.kind == ErrorKind::ServerError {
9999
Err(err)

roa-diesel/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "roa-diesel"
3-
version = "0.5.0-alpha"
3+
version = "0.5.0-beta"
44
authors = ["Hexilee <i@hexilee.me>"]
55
edition = "2018"
66
license = "MIT"
@@ -18,7 +18,7 @@ categories = ["network-programming", "asynchronous",
1818
[dependencies]
1919
diesel = { version = "1.4", features = ["extras"] }
2020
r2d2 = "0.8"
21-
roa-core = { path = "../roa-core", version = "0.5.0-alpha" }
21+
roa-core = { path = "../roa-core", version = "0.5.0-beta" }
2222

2323
[dev-dependencies]
2424
diesel = { version = "1.4", features = ["extras", "sqlite"] }

0 commit comments

Comments
 (0)