Commit Graph

2361 Commits

Author SHA1 Message Date
Sean McArthur
a543c8eef2 test(body): remove concat test for Body 2019-07-23 11:07:06 -07:00
Sean McArthur
46749c14c6 test(client): fix background thread panics 2019-07-23 11:03:14 -07:00
Weihang Lo
74195bc17b test(end_to_end): ignore unimplemented h2 benchmarks
Signed-off-by: Weihang Lo <me@weihanglo.tw>
2019-07-23 10:53:03 -07:00
Weihang Lo
4f2abd81e8 test(benches): update end to end benchmark to async/await
Signed-off-by: Weihang Lo <me@weihanglo.tw>
2019-07-23 10:53:03 -07:00
Weihang Lo
fb880c6295 test(benches): uncomment deny warning attr 2019-07-23 10:53:03 -07:00
Jakub Wieczorek
d683e13ecb test(client): Re-enable the tests/client.rs test
These tests were temporarily disabled during the migration to the
`std::future::Future` type that's part of the stable Rust now.

This commit updates the tests after the breaking changes and makes them
pass again.
2019-07-23 10:22:26 -07:00
Daiki Mizukami
0d3cbe28fc refactor(rt): remove re-export of tokio::main (#1879)
Closes #1878.

BREAKING CHANGE: Replace all usage of `rt::main` with `tokio::main`.
2019-07-22 10:06:36 -07:00
Sean McArthur
1d00bb29d4 chore(client): re-enable client's custom executor config 2019-07-19 14:18:10 -07:00
Gurwinder Singh
283522b15a chore(dependencies): Upgrade futures version (#1877) 2019-07-18 11:11:49 -07:00
Weihang Lo
db86e554d5 test(benches): update server benchmark to async/await 2019-07-17 10:57:51 -07:00
Weihang Lo
63a8f26583 test(benches): update pipeline benchmark to async/await 2019-07-17 10:57:51 -07:00
Weihang Lo
ed10ffaef3 test(examples): uncomment re-enabled examples 2019-07-16 17:45:53 -07:00
Sean McArthur
1f6575279e test(h1): re-enable the proto::h1::io tests 2019-07-16 14:22:17 -07:00
Weihang Lo
9ae1873756 docs(examples): formatting and refactoring 2019-07-16 10:08:22 -07:00
Weihang Lo
da187b54e8 docs(examples): move web_api to examples folder 2019-07-16 10:08:22 -07:00
Weihang Lo
031036c2e7 docs(examples): fix web_api shared client lifetime issue 2019-07-16 10:08:22 -07:00
Weihang Lo
e8c19fea4c docs(examples): update send_file example to async/await 2019-07-16 10:08:22 -07:00
messense
524a453b6f docs(examples): Update web_api example to use async await 2019-07-16 10:08:22 -07:00
Weihang Lo
7cdfd3d974 docs(examples): update upgrade example to async/await 2019-07-15 11:35:33 -07:00
Weihang Lo
39471d7e5e docs(examples): update single_threaded example to async/await 2019-07-15 11:35:33 -07:00
Weihang Lo
22bd31c68f docs(examples): update state example to async/await 2019-07-15 11:35:33 -07:00
Weihang Lo
af78fd3672 docs(examples): update proxy example to async/await 2019-07-15 11:35:33 -07:00
Weihang Lo
c71abe5c20 docs(client): doc tests to async/await 2019-07-15 11:21:16 -07:00
Weihang Lo
e90f0037d3 docs(client): HttpInfo doc test to async/await 2019-07-15 11:21:16 -07:00
Weihang Lo
e0c1090ca7 docs(client): send_request doc test to async/await 2019-07-15 11:21:16 -07:00
Weihang Lo
7c2622abef docs(service): service_fn doc test to async/await 2019-07-15 11:21:16 -07:00
Weihang Lo
b3e337dd99 docs(service): make_service_fn doc test to async/await 2019-07-15 11:21:16 -07:00
Weihang Lo
e6a7e33cf4 docs(body): wrap_stream using futures_util 2019-07-15 11:21:16 -07:00
Weihang Lo
47407f5c01 docs(server): serve_connection doc test to async/await 2019-07-15 11:21:16 -07:00
Weihang Lo
ca10ca6284 docs(server): update `with_graceful_shutdown doc test
Signed-off-by: Weihang Lo <me@weihanglo.tw>
2019-07-15 11:21:16 -07:00
Weihang Lo
13afb6e0da docs(server): doc test to async/await 2019-07-15 11:21:16 -07:00
Weihang Lo
87b4850694 docs(server): doc test of Builder to async future
Signed-off-by: Weihang Lo <me@weihanglo.tw>
2019-07-15 11:21:16 -07:00
Sean McArthur
5da17df97f chore(lib): individually disable tests and examples that aren't updated 2019-07-12 13:44:03 -07:00
messense
f93463b3d9 docs(examples): Update params example to use async await 2019-07-12 10:57:27 -07:00
messense
19ba891fac docs(examples): Update multi_server example to use async await 2019-07-12 10:43:39 -07:00
Fuyang Liu
7ff8fccced docs(examples): update echo example to use async/await 2019-07-12 10:39:08 -07:00
messense
22142943f4 docs(examples): Update client_json example to use async await 2019-07-11 23:17:06 -07:00
Sean McArthur
2eee793a1b chore(dependencies): disable serde while it has nightly errors 2019-07-11 11:42:04 -07:00
Sean McArthur
4441372121 feat(body): require Sync when wrapping a dynamic Stream 2019-07-10 16:49:21 -07:00
Sean McArthur
3524db9473 refactor(client): use a tokio-threadpool for the GaiResolver 2019-07-10 16:11:05 -07:00
Sean McArthur
0bda9ab8c2 docs(examples): update client example to use rt::main 2019-07-10 16:11:05 -07:00
Sean McArthur
ccc7c25334 chore(body): re-enable Body::wrap_stream 2019-07-10 14:17:36 -07:00
Sean McArthur
f0478c6267 feat(rt): export hyper::rt::main attribute macro
Usage:

    #[hyper::rt::main]
    async fn main() {
        // async stuff in here
    }
2019-07-10 14:12:21 -07:00
Sean McArthur
8d4ae27b42 refactor(lib): remove build script detecting rust >= 1.34 2019-07-10 10:23:48 -07:00
Sean McArthur
c2a539783d chore(dependencies): remove tokio-executor from runtime feature 2019-07-10 10:16:35 -07:00
Fuyang Liu
67c4781734 docs(examples): Update the example hello (#1852) 2019-07-10 09:43:56 -07:00
Sean McArthur
8f4b05ae78 feat(lib): update to std::future::Future
BREAKING CHANGE: All usage of async traits (`Future`, `Stream`,
`AsyncRead`, `AsyncWrite`, etc) are updated to newer versions.
2019-07-09 15:55:22 -07:00
Sean McArthur
da9b0319ef refactor(lib): update to 2018 edition 2019-07-09 15:16:01 -07:00
Sean McArthur
79ae89e066 chore(lib): prepare master for 0.13.x changes 2019-07-09 13:34:56 -07:00
Sean McArthur
5d44f8841c v0.12.32 2019-07-08 16:17:40 -07:00