Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/rustasync/tide into cooki…
Browse files Browse the repository at this point in the history
…e-improvement
  • Loading branch information
mmrath committed Apr 16, 2019
2 parents f8f6203 + 3d22441 commit ca059c0
Show file tree
Hide file tree
Showing 5 changed files with 138 additions and 8 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
## 2019-02-26, Version 0.0.5
### Commits
- [[`990c80f78e`](https://github.com/rustasync/tide/commit/990c80f78e5622a751a5d2d4948cd005616e84f8)] (cargo-release) version 0.0.5 (Yoshua Wuyts)
- [[`61f2aa5bf7`](https://github.com/rustasync/tide/commit/61f2aa5bf71f8eff34b1f9dcbb97e83a86f33b92)] Extract serve.rs into a separate crate (#140) (Wonwoo Choi)
- [[`b4d0806a15`](https://github.com/rustasync/tide/commit/b4d0806a15e50ccbfcffeaf5bb6f767019269670)] Merge pull request #139 from aturon/http-service (Aaron Turon)
- [[`092fc7f4e4`](https://github.com/rustasync/tide/commit/092fc7f4e4764b3a4c0101046f0ceced95f09194)] update rust version (Aaron Turon)
- [[`703d41b79a`](https://github.com/rustasync/tide/commit/703d41b79a3089640731cae2de54b4dec0c0c93a)] rustfmt (Aaron Turon)
- [[`fe0c39cc60`](https://github.com/rustasync/tide/commit/fe0c39cc60b0ff54bc577a3d8d21b4821c13841a)] Update to use new Body::into_vec method (Aaron Turon)
- [[`369095140d`](https://github.com/rustasync/tide/commit/369095140d0acdad0656e0d79a3a64c9aae87436)] update tests (Aaron Turon)
- [[`9fee015612`](https://github.com/rustasync/tide/commit/9fee015612fc89c78fb5555a837ad03af2c32ef1)] Refactor to use HttpService internally (Aaron Turon)
- [[`1fb71bf421`](https://github.com/rustasync/tide/commit/1fb71bf421ef27b6acf8c23d5d0a267a9b385d62)] Move to http_service::Body (Aaron Turon)
- [[`c727750a69`](https://github.com/rustasync/tide/commit/c727750a694b0a2f217eb391a5d8d9f07b722802)] docs: updated docs to have correct default port (#137) (Matt Gathu)
- [[`b02220a06a`](https://github.com/rustasync/tide/commit/b02220a06aac5bf42455bcc6c9bdc36368fe9a9f)] Update changelog (Yoshua Wuyts)

### Stats
```diff
.travis.yml | 3 +-
CHANGELOG.md | 18 +++++++-
Cargo.toml | 25 ++++++----
src/app.rs | 58 ++++++++----------------
src/body.rs | 133 +++++--------------------------------------------------
src/lib.rs | 4 +-
src/request.rs | 3 +-
src/response.rs | 3 +-
src/router.rs | 27 ++++-------
src/serve.rs | 4 ++-
tests/wildcard.rs | 96 ++++++++++++++++++++++++++++++++++++++++-
11 files changed, 189 insertions(+), 185 deletions(-)
```


## 2019-02-26, Version 0.0.5
### Commits
- [[`990c80f78e`](https://github.com/rust-net-web/tide/commit/990c80f78e5622a751a5d2d4948cd005616e84f8)] (cargo-release) version 0.0.5 (Yoshua Wuyts)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "MIT OR Apache-2.0"
name = "tide"
readme = "README.md"
repository = "https://github.com/rustasync/tide"
version = "0.0.5"
version = "0.1.0"

[dependencies]
cookie = { version="0.11", features = ["percent-encode"] }
Expand Down
109 changes: 103 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,115 @@
# Tide
<h1 align="center">Tide</h1>
<div align="center">
<strong>
Empowering everyone to build HTTP Services.
</strong>
</div>

[![build status][1]][2]
<br />

An early, experimental web framework. **NOT PRODUCTION-READY**.
<div align="center">
<!-- Crates version -->
<a href="https://crates.io/crates/tide">
<img src="https://img.shields.io/crates/v/tide.svg?style=flat-square"
alt="Crates.io version" />
</a>
<!-- Build Status -->
<a href="https://travis-ci.org/rustasync/tide">
<img src="https://img.shields.io/travis/rustasync/tide.svg?style=flat-square"
alt="Build Status" />
</a>
<!-- Downloads -->
<a href="https://crates.io/crates/tide">
<img src="https://img.shields.io/crates/d/tide.svg?style=flat-square"
alt="Download" />
</a>
<!-- docs.rs docs -->
<a href="https://docs.rs/tide">
<img src="https://img.shields.io/badge/docs-latest-blue.svg?style=flat-square"
alt="docs.rs docs" />
</a>
</div>

<div align="center">
<h3>
<a href="https://docs.rs/tide">
API Docs
</a>
<span> | </span>
<a href="https://github.com/rustasync/tide/blob/master/.github/CONTRIBUTING.md">
Contributing
</a>
<span> | </span>
<a href="https://discordapp.com/channels/442252698964721669/474974025454452766">
Chat
</a>
</h3>
</div>

<div align="center">
<sub>Built with 🌊 by <a href="https://github.com/rustasync">The Rust Async Ecosystem WG</a>
</div>

## About
A modular web framework built around async/await. It's actively being developed by the Rust Async
Ecosystem WG, and __not ready for production use yet__.

## Examples
__Hello World__
```rust
#![feature(async_await)]

fn main() -> Result<(), failure::Error> {
let mut app = tide::App::new(());
app.at("/").get(async move |_| "Hello, world!");
app.serve("127.0.0.1:8000")?;
}
```

__More Examples__
- [Hello World](https://github.com/rustasync/tide/tree/master/examples/hello.rs)
- [Messages](https://github.com/rustasync/tide/blob/master/examples/messages.rs)
- [Body Types](https://github.com/rustasync/tide/blob/master/examples/body_types.rs)
- [Multipart Form](https://github.com/rustasync/tide/tree/master/examples/multipart-form/main.rs)
- [Catch All](https://github.com/rustasync/tide/tree/master/examples/catch_all.rs)
- [Cookie Extractor](https://github.com/rustasync/tide/tree/master/examples/cookie_extractor.rs)
- [Default Headers](https://github.com/rustasync/tide/tree/master/examples/default_headers.rs)
- [GraphQL](https://github.com/rustasync/tide/tree/master/examples/graphql.rs)

## Resources
Read about the design here:

- [Rising Tide: building a modular web framework in the open](https://rustasync.github.io/team/2018/09/11/tide.html)
- [Routing and extraction in Tide: a first sketch](https://rustasync.github.io/team/2018/10/16/tide-routing.html)
- [Middleware in Tide](https://rustasync.github.io/team/2018/11/07/tide-middleware.html)
- [Tide's evolving middleware approach](https://rustasync.github.io/team/2018/11/27/tide-middleware-evolution.html)

## Contributing
Want to join us? Check out our [The "Contributing" section of the
guide][contributing] and take a look at some of these issues:

- [Issues labeled "good first issue"][good-first-issue]
- [Issues labeled "help wanted"][help-wanted]

#### Conduct
The Tide project adheres to the [Contributor Covenant Code of
Conduct](https://github.com/rustasync/tide/blob/master/.github/CODE_OF_CONDUCT.md). This
describes the minimum behavior expected from all contributors.

## License
Licensed under either of

* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)

at your option.

[MIT](./LICENSE-MIT) OR [Apache-2.0](./LICENSE-APACHE)
#### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.

[1]: https://img.shields.io/travis/rustasync/tide.svg?style=flat-square
[2]: https://travis-ci.org/rustasync/tide
[releases]: https://github.com/rustasync/tide/releases
[contributing]: https://github.com/rustasync/tide/blob/master/.github/CONTRIBUTING.md
[good-first-issue]: https://github.com/rustasync/tide/labels/good%20first%20issue
[help-wanted]: https://github.com/rustasync/tide/labels/help%20wanted
2 changes: 1 addition & 1 deletion examples/catch_all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ async fn echo_path(cx: Context<()>) -> String {

fn main() {
let mut app = tide::App::new(());
app.at("/echo_path/:path").get(echo_path);
app.at("/echo_path/*path").get(echo_path);
app.serve("127.0.0.1:8000").unwrap();
}
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,5 @@ pub use crate::{
response::Response,
route::Route,
};

pub use http;

0 comments on commit ca059c0

Please sign in to comment.