Skip to content

Commit 58bd765

Browse files
committed
Merge branch 'release/v1.1.0'
2 parents 5181fbb + fb2c146 commit 58bd765

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[package]
22
name = "routerify-cors"
3-
version = "1.0.0"
3+
version = "1.1.0"
44
description = "A Routerify middleware which enables CORS."
55
homepage = "https://github.com/routerify/routerify-cors"
66
repository = "https://github.com/routerify/routerify-cors"
7-
keywords = ["routerify", "cors", "cors-middleware", "hyper-rs", "middleware"]
7+
keywords = ["routerify", "hyper", "hyper-rs", "cors", "middleware"]
88
categories = ["asynchronous", "web-programming", "web-programming::http-server"]
99
authors = ["Rousan Ali <[email protected]>"]
1010
readme = "README.md"
1111
license = "MIT"
1212
edition = "2018"
1313

1414
[dependencies]
15-
routerify = "1.0"
15+
routerify = "1.1"
1616
hyper = "0.13"
1717

1818
[dev-dependencies]

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ Add this to your `Cargo.toml`:
1515

1616
```toml
1717
[dependencies]
18-
routerify = "1.0"
19-
routerify-cors = "1.0"
18+
routerify = "1.1"
19+
routerify-cors = "1.1"
2020
```
2121

22-
## Example
22+
## Example
23+
2324
```rust
2425
use hyper::{Body, Request, Response, Server};
2526
use routerify::{Router, RouterService};
@@ -47,7 +48,7 @@ async fn main() {
4748
let router = router();
4849

4950
// Create a Service from the router above to handle incoming requests.
50-
let service = RouterService::new(router);
51+
let service = RouterService::new(router).unwrap();
5152

5253
// The address on which the server will be listening.
5354
let addr = SocketAddr::from(([127, 0, 0, 1], 3001));

examples/example.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async fn main() {
2424
let router = router();
2525

2626
// Create a Service from the router above to handle incoming requests.
27-
let service = RouterService::new(router);
27+
let service = RouterService::new(router).unwrap();
2828

2929
// The address on which the server will be listening.
3030
let addr = SocketAddr::from(([127, 0, 0, 1], 3001));

examples/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fn router() -> Router<Body, Infallible> {
1919
async fn main() {
2020
let router = router();
2121

22-
let service = RouterService::new(router);
22+
let service = RouterService::new(router).unwrap();
2323

2424
let addr = SocketAddr::from(([127, 0, 0, 1], 3001));
2525

examples/test_stream_body.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ fn router() -> Router<StreamBody, Infallible> {
2626
async fn main() {
2727
let router = router();
2828

29-
let service = RouterService::new(router);
29+
let service = RouterService::new(router).unwrap();
3030

3131
let addr = SocketAddr::from(([127, 0, 0, 1], 3001));
3232

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
//! let router = router();
3030
//!
3131
//! // Create a Service from the router above to handle incoming requests.
32-
//! let service = RouterService::new(router);
32+
//! let service = RouterService::new(router).unwrap();
3333
//!
3434
//! // The address on which the server will be listening.
3535
//! let addr = SocketAddr::from(([127, 0, 0, 1], 3001));

0 commit comments

Comments
 (0)