Skip to content

Commit

Permalink
pass all tests; ready to release v0.5.0-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexilee committed Mar 4, 2020
1 parent 2f8a419 commit 75007dd
Show file tree
Hide file tree
Showing 17 changed files with 51 additions and 51 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "roa-root"
version = "0.5.0-alpha"
version = "0.5.0-beta"
authors = ["Hexilee <[email protected]>"]
edition = "2018"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
- Supports HTTP/1.x and HTTP/2.0 protocols.
- Full streaming.
- Highly extensible middleware system.
- 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.
- Based on [`hyper`](https://github.com/hyperium/hyper), runtime-independent, you can chose async runtime as you like.
- Many useful extensions and middlewares.
- Transparent content compression (br, gzip, deflate, zstd).
- Configurable and nestable router.
Expand All @@ -52,7 +52,7 @@
# Cargo.toml

[dependencies]
roa = "0.5.0-alpha"
roa = "0.5.0-beta"
async-std = { version = "1.5", features = ["attributes"] }
```

Expand Down
4 changes: 2 additions & 2 deletions integration/diesel-example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ edition = "2018"

[dependencies]
diesel = { version = "1.4", features = ["extras", "sqlite"] }
roa = { path = "../../roa", version = "0.5.0-alpha", features = ["router", "body"] }
roa-diesel = { path = "../../roa-diesel", version = "0.5.0-alpha" }
roa = { path = "../../roa", features = ["router", "body"] }
roa-diesel = { path = "../../roa-diesel" }
async-std = { version = "1.4", features = ["attributes"] }
log = "0.4"
serde = { version = "1", features = ["derive"] }
Expand Down
6 changes: 3 additions & 3 deletions integration/juniper-example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ edition = "2018"

[dependencies]
diesel = "1.4.3"
roa = { path = "../../roa", version = "0.5.0-alpha", features = ["router", "body"] }
roa-diesel = { path = "../../roa-diesel", version = "0.5.0-alpha" }
roa-juniper = { path = "../../roa-juniper", version = "0.5.0-alpha" }
roa = { path = "../../roa", features = ["router", "body"] }
roa-diesel = { path = "../../roa-diesel" }
roa-juniper = { path = "../../roa-juniper" }
diesel-example = { path = "../diesel-example" }
async-std = { version = "1.4", features = ["attributes"] }
log = "0.4"
Expand Down
4 changes: 2 additions & 2 deletions integration/multipart-example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
roa = { path = "../../roa", version = "0.5.0-alpha", features = ["router", "body"] }
roa-multipart = { path = "../../roa-multipart", version = "0.5.0-alpha" }
roa = { path = "../../roa", features = ["router", "body"] }
roa-multipart = { path = "../../roa-multipart" }
async-std = { version = "1.5", features = ["attributes"] }
log = "0.4"
pretty_env_logger = "0.3"
Expand Down
6 changes: 3 additions & 3 deletions integration/websocket-example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
roa = { path = "../../roa", version = "0.5.0-alpha", features = ["router", "body", "websocket"] }
roa-websocket = { path = "../../roa-websocket", version = "0.5.0-alpha" }
async-std = { version = "1.4", features = ["attributes"] }
roa = { path = "../../roa", features = ["router", "body", "websocket"] }
roa-websocket = { path = "../../roa-websocket" }
async-std = { version = "1.5", features = ["attributes"] }
log = "0.4"
pretty_env_logger = "0.3"
futures = "0.3"
Expand Down
8 changes: 4 additions & 4 deletions roa-body/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "roa-body"
version = "0.5.0-alpha"
version = "0.5.0-beta"
authors = ["Hexilee <[email protected]>"]
edition = "2018"
license = "MIT"
Expand Down Expand Up @@ -28,7 +28,7 @@ async-std = "1.5.0"
mime = "0.3"
bytes = "0.5.4"

roa-core = { path = "../roa-core", version = "0.5.0-alpha" }
roa-core = { path = "../roa-core", version = "0.5.0-beta" }
serde = { version = "1", optional = true }
askama = { version = "0.9", optional = true }
serde_json = { version = "1.0", optional = true }
Expand All @@ -41,8 +41,8 @@ percent-encoding = { version = "2.1.0", optional = true }
test-case = "1.0.0"
tokio = { version = "0.2", features = ["full"] }
reqwest = { version = "0.10", features = ["json", "cookies", "gzip"] }
roa-tcp = { path = "../roa-tcp", version = "0.5.0-alpha" }
roa-core = { path = "../roa-core", version = "0.5.0-alpha", features = ["runtime"] }
roa-tcp = { path = "../roa-tcp", version = "0.5.0-beta" }
roa-core = { path = "../roa-core", version = "0.5.0-beta", features = ["runtime"] }

[features]
default = []
Expand Down
4 changes: 2 additions & 2 deletions roa-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "roa-core"
version = "0.5.0-alpha"
version = "0.5.0-beta"
authors = ["Hexilee <[email protected]>"]
edition = "2018"
license = "MIT"
Expand Down Expand Up @@ -29,7 +29,7 @@ hyper = { version = "0.13", default-features = false, features = ["stream"] }
log = "0.4"
tokio = "0.2"
async-trait = "0.1.24"
async-std = { version = "1.5.0", features = ["unstable"],optional = true }
async-std = { version = "1.5.0", features = ["unstable"], optional = true }

[dev-dependencies]
async-std = { version = "1.5.0", features = ["attributes"] }
Expand Down
6 changes: 3 additions & 3 deletions roa-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use roa_core::App;

let mut app = App::new(());
app.end(|mut ctx| async move {
ctx.resp_mut().write_str("Hello, World");
ctx.resp_mut().write("Hello, World");
Ok(())
});
```
Expand Down Expand Up @@ -51,7 +51,7 @@ app.gate_fn(|_ctx, next| async move {
});

app.end(|mut ctx| async move {
ctx.resp_mut().write_str("Hello, World");
ctx.resp_mut().write("Hello, World");
Ok(())
});
```
Expand Down Expand Up @@ -93,7 +93,7 @@ use roa_core::{Context, Error, Result, ErrorKind, State};
pub async fn error_handler<S: State>(mut context: Context<S>, err: Error) -> Result {
context.resp_mut().status = err.status_code;
if err.expose {
context.resp_mut().write_str(&err.message);
context.resp_mut().write(err.message.clone());
}
if err.kind == ErrorKind::ServerError {
Err(err)
Expand Down
4 changes: 2 additions & 2 deletions roa-diesel/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "roa-diesel"
version = "0.5.0-alpha"
version = "0.5.0-beta"
authors = ["Hexilee <[email protected]>"]
edition = "2018"
license = "MIT"
Expand All @@ -18,7 +18,7 @@ categories = ["network-programming", "asynchronous",
[dependencies]
diesel = { version = "1.4", features = ["extras"] }
r2d2 = "0.8"
roa-core = { path = "../roa-core", version = "0.5.0-alpha" }
roa-core = { path = "../roa-core", version = "0.5.0-beta" }

[dev-dependencies]
diesel = { version = "1.4", features = ["extras", "sqlite"] }
4 changes: 2 additions & 2 deletions roa-juniper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ categories = ["network-programming", "asynchronous",
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
roa-core = { path = "../roa-core", version = "0.5.0-alpha" }
roa-body = { path = "../roa-body", version = "0.5.0-alpha", features = ["json"] }
roa-core = { path = "../roa-core", version = "0.5.0-beta" }
roa-body = { path = "../roa-body", version = "0.5.0-beta", features = ["json"] }
futures = "0.3.4"

[dependencies.juniper]
Expand Down
6 changes: 3 additions & 3 deletions roa-multipart/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ categories = ["network-programming", "asynchronous",
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
roa-core = { path = "../roa-core", version = "0.5.0-alpha" }
roa-core = { path = "../roa-core", version = "0.5.0-beta" }
hyper = { version = "0.13", default-features = false, features = ["stream"] }
bytes = "0.5"
actix-http = "1.0"
actix-multipart = "0.2"
futures = "0.3"

[dev-dependencies]
roa-tcp = { path = "../roa-tcp", version = "0.5.0-alpha" }
roa-router = { path = "../roa-router", version = "0.5.0-alpha" }
roa-tcp = { path = "../roa-tcp", version = "0.5.0-beta" }
roa-router = { path = "../roa-router", version = "0.5.0-beta" }
tokio = { version = "0.2", features = ["full"] }
reqwest = { git = "https://github.com/Hexilee/reqwest.git", version = "0.10" }
async-std = "1.5"
8 changes: 4 additions & 4 deletions roa-router/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "roa-router"
version = "0.5.0-alpha"
version = "0.5.0-beta"
authors = ["Hexilee <[email protected]>"]
edition = "2018"
license = "MIT"
Expand All @@ -17,14 +17,14 @@ categories = ["network-programming", "asynchronous",
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
roa-core = { path = "../roa-core", version = "0.5.0-alpha" }
roa-core = { path = "../roa-core", version = "0.5.0-beta" }
radix_trie = "0.1.6"
regex = "1.3"
percent-encoding = "2.1"

[dev-dependencies]
roa-core = { path = "../roa-core", version = "0.5.0-alpha", features = ["runtime"] }
roa-tcp = { path = "../roa-tcp", version = "0.5.0-alpha" }
roa-core = { path = "../roa-core", version = "0.5.0-beta", features = ["runtime"] }
roa-tcp = { path = "../roa-tcp", version = "0.5.0-beta" }
tokio = { version = "0.2", features = ["full"] }
reqwest = { version = "0.10", features = ["json", "cookies", "gzip"] }
async-std = { version = "1.5.0", features = ["attributes"] }
Expand Down
6 changes: 3 additions & 3 deletions roa-tcp/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "roa-tcp"
version = "0.5.0-alpha"
version = "0.5.0-beta"
authors = ["Hexilee <[email protected]>"]
edition = "2018"
license = "MIT"
Expand All @@ -17,7 +17,7 @@ categories = ["network-programming", "asynchronous",
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
roa-core = { path = "../roa-core", version = "0.5.0-alpha" }
roa-core = { path = "../roa-core", version = "0.5.0-beta" }
futures-timer = "3.0"
async-std = "1.5.0"
futures = "0.3"
Expand All @@ -27,4 +27,4 @@ log = "0.4"
reqwest = "0.10"
async-std = "1.5.0"
tokio = { version = "0.2", features = ["full"] }
roa-core = { path = "../roa-core", version = "0.5.0-alpha", features = ["runtime"] }
roa-core = { path = "../roa-core", version = "0.5.0-beta", features = ["runtime"] }
8 changes: 4 additions & 4 deletions roa-tls/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "roa-tls"
version = "0.5.0-alpha"
version = "0.5.0-beta"
authors = ["Hexilee <[email protected]>"]
edition = "2018"
license = "MIT"
Expand All @@ -17,8 +17,8 @@ categories = ["network-programming", "asynchronous",
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
roa-core = { path = "../roa-core", version = "0.5.0-alpha" }
roa-tcp = { path = "../roa-tcp", version = "0.5.0-alpha" }
roa-core = { path = "../roa-core", version = "0.5.0-beta" }
roa-tcp = { path = "../roa-tcp", version = "0.5.0-beta" }
futures = "0.3"
rustls = "0.16.0"
async-tls = "0.6.0"
Expand All @@ -27,7 +27,7 @@ async-std = "1.5.0"
[dev-dependencies]
async-std = { version = "1.5.0", features = ["attributes"] }
tokio = { version = "0.2", features = ["full"] }
roa-core = { path = "../roa-core", version = "0.5.0-alpha", features = ["runtime"] }
roa-core = { path = "../roa-core", version = "0.5.0-beta", features = ["runtime"] }
tokio-tls = "0.3.0"
hyper-tls = "0.4.1"
hyper = "0.13.2"
Expand Down
8 changes: 4 additions & 4 deletions roa-websocket/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "roa-websocket"
version = "0.5.0-alpha"
version = "0.5.0-beta"
authors = ["Hexilee <[email protected]>"]
edition = "2018"
license = "MIT"
Expand All @@ -16,7 +16,7 @@ categories = ["network-programming", "asynchronous",
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
roa-core = { path = "../roa-core", version = "0.5.0-alpha" }
roa-core = { path = "../roa-core", version = "0.5.0-beta" }
hyper = { version = "0.13", default-features = false, features = ["stream"] }
headers = "0.3.1"
log = "0.4"
Expand All @@ -25,5 +25,5 @@ tokio = "0.2.11"
futures = "0.3"

[dev-dependencies]
roa-core = { path = "../roa-core", version = "0.5.0-alpha", features = ["runtime"] }
roa-router = { path = "../roa-router", version = "0.5.0-alpha" }
roa-core = { path = "../roa-core", version = "0.5.0-beta", features = ["runtime"] }
roa-router = { path = "../roa-router", version = "0.5.0-beta" }
14 changes: 7 additions & 7 deletions roa/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "roa"
version = "0.5.0-alpha"
version = "0.5.0-beta"
authors = ["Hexilee <[email protected]>"]
edition = "2018"
license = "MIT"
Expand Down Expand Up @@ -34,12 +34,12 @@ percent-encoding = "2.1"
bytes = "0.5"
headers = "0.3.1"

roa-core = { path = "../roa-core", version = "0.5.0-alpha", features = ["runtime"] }
roa-tcp = { path = "../roa-tcp", version = "0.5.0-alpha", optional = true }
roa-tls = { path = "../roa-tls", version = "0.5.0-alpha", optional = true }
roa-body = { path = "../roa-body", version = "0.5.0-alpha", features = ["full"], optional = true }
roa-router = { path = "../roa-router", version = "0.5.0-alpha", optional = true }
roa-websocket = { path = "../roa-websocket", version = "0.5.0-alpha", optional = true }
roa-core = { path = "../roa-core", version = "0.5.0-beta", features = ["runtime"] }
roa-tcp = { path = "../roa-tcp", version = "0.5.0-beta", optional = true }
roa-tls = { path = "../roa-tls", version = "0.5.0-beta", optional = true }
roa-body = { path = "../roa-body", version = "0.5.0-beta", features = ["full"], optional = true }
roa-router = { path = "../roa-router", version = "0.5.0-beta", optional = true }
roa-websocket = { path = "../roa-websocket", version = "0.5.0-beta", optional = true }
cookie = { version = "0.12", features = ["percent-encode"], optional = true }
jsonwebtoken = { version = "7.1", optional = true }
serde = { version = "1", optional = true }
Expand Down

0 comments on commit 75007dd

Please sign in to comment.