Commit Graph

125 Commits

Author SHA1 Message Date
Anthony Ramine
361de985a0 Enable all features on docs.rs (fixes #437) 2021-05-05 08:09:59 -07:00
Anthony Ramine
a6b414458f v0.3.3 2021-04-29 09:18:12 -07:00
Sean McArthur
2c53d60098 v0.3.2 2021-03-24 17:34:52 -07:00
Sean McArthur
7a5b574d8e v0.3.1 2021-02-26 12:36:26 -08:00
Kestrer
fb78fe9606 Explicitly enable the std feature of indexmap (#519)
* Explicitly enable the `std` feature of indexmap

This crate depends on it anyway, and by explicitly turning it on we
avoid unreliable platform target detection that causes build failures on
some platforms.

* Bump indexmap to 1.5.2

This allows use of the `std` feature.

Co-authored-by: Taiki Endo <te316e89@gmail.com>

Co-authored-by: Taiki Endo <te316e89@gmail.com>
2021-02-15 15:03:35 -08:00
nickelc
9049e468c8 Remove the obsolent tracing-future dependency (#517) 2021-02-09 05:50:11 -08:00
nickelc
2b05c13298 Re-enable the akamai example (#518) 2021-02-09 05:49:12 -08:00
Sean McArthur
eec547d0dd v0.3.0 2020-12-23 10:19:09 -08:00
Sean McArthur
b4976675fa Update to Tokio and Bytes 1.0 (#504) 2020-12-23 10:01:44 -08:00
Sean McArthur
dc3079ab89 Remove log feature from tracing dependency (#501) 2020-11-25 16:25:36 -08:00
Eliza Weisman
73bf6a61ad re-enable vectored writes (#500)
Tokio's AsyncWrite trait once again has support for vectored writes in
Tokio 0.3.4 (see tokio-rs/tokio#3149.

This branch re-enables vectored writes in h2.

This change doesn't make all that big of a performance improvement in
Hyper's HTTP/2 benchmarks, but they use a BytesMut as the buffer.
With a buffer that turns into more IO vectors in bytes_vectored, there
might be a more noticeable performance improvement.

I spent a bit trying to refactor the flush logic to coalesce into fewer
writev calls with more buffers, but the current implementation seems
like about the best we're going to get without a bigger refactor. It's
basically the same as what h2 did previously, so it's probably fine.
2020-11-23 16:35:48 -08:00
Paolo Barbolini
5a92f256c0 Upgrade to bytes 0.6 (#497)
* Upgrade to bytes 0.6

* Update Cargo.toml

Co-authored-by: Eliza Weisman <eliza@buoyant.io>

* Update tests/h2-support/Cargo.toml

Co-authored-by: Eliza Weisman <eliza@buoyant.io>

Co-authored-by: Eliza Weisman <eliza@buoyant.io>
2020-11-19 14:38:56 -08:00
João Oliveira
cbbdd305b1 update to tokio 0.3 (#491) 2020-10-23 10:45:09 -07:00
Sean McArthur
676a068fd4 Prepare for 0.3.x changes 2020-10-23 08:29:04 -07:00
Sean McArthur
3bb01aafae v0.2.7 2020-10-23 08:14:51 -07:00
Eliza Weisman
fc7f63f641 start adding tracing spans to internals (#478)
We've adopted `tracing` for diagnostics, but currently, it is just being
used as a drop-in replacement for the `log` crate. Ideally, we would
want to start emitting more structured diagnostics, using `tracing`'s
`Span`s and structured key-value fields.

A lot of the logging in `h2` is already written in a style that imitates
the formatting of structured key-value logs, but as textual log
messages. Migrating the logs to structured `tracing` events therefore is
pretty easy to do. I've also started adding spans, mostly in the read
path.

Finally, I've updated the tests to use `tracing` rather than
`env_logger`. The tracing setup happens in a macro, so that a span for
each test with the test's name can be generated and entered. This will
make the test output easier to read if multiple tests are run
concurrently with `--nocapture`.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2020-08-17 17:29:22 -07:00
Sean McArthur
e3a358d696 v0.2.6 2020-07-13 16:56:04 -07:00
David Barsky
d3b9f1e36a feat(lib): switch from log to tracing (#475) 2020-07-07 15:55:24 -07:00
Sean McArthur
ecb31135cb v0.2.5 2020-05-06 13:19:56 -07:00
Geoffry Song
cfc7584eb6 Move "sync" tokio feature to dev-dependencies (#461) 2020-04-09 23:05:55 -07:00
Sean McArthur
ac9f2af434 v0.2.4 2020-03-30 15:26:58 -07:00
Sean McArthur
25b2741d2f v0.2.4 2020-03-30 15:23:38 -07:00
Nikhil Benesch
20efc46597 Bump to latest tokio-util (#455) 2020-03-26 08:33:27 -07:00
Sean McArthur
7e1e923542 v0.2.3 2020-03-25 10:23:31 -07:00
Sean McArthur
f7718b5b19 v0.2.2 2020-03-03 12:27:26 -08:00
Sean McArthur
012dfc6991 v0.2.1 2019-12-06 12:24:07 -08:00
Sean McArthur
13e0f17a03 v0.2.0 2019-12-03 12:06:13 -08:00
Sean McArthur
881832cde9 Rename unstable-stream feature to stream (#433) 2019-12-03 10:38:50 -08:00
Sean McArthur
eab9c0b410 Update to http 0.2 (#432) 2019-12-02 16:22:26 -08:00
Alex Gaynor
e7e75bf117 Re-enable tokio-rustls now that it has a stable release (#429) 2019-12-01 13:04:00 -05:00
Sean McArthur
4398e169e8 Update to Tokio 0.2 (#428) 2019-11-27 14:53:57 -08:00
Taiki Endo
37b66e8981 Migrate CI to GitHub Actions (#422) 2019-10-08 12:57:55 -07:00
Sean McArthur
eef0ee52f0 v0.2.0-alpha.3 2019-10-01 08:37:56 -07:00
Taiki Endo
02de0d161d Remove git dependency 2019-10-01 07:17:19 -07:00
Lucio Franco
9c5bc03908 Update tokio alpha.6 2019-10-01 06:41:28 -07:00
Rick Richardson
7615867a5e fixing the akamai example to work with tokio-0.2 (#408)
* fixing the akamai example to work with tokio-0.2

* manually spawn the h2 task to make it go

* fix tokio-rustls dependency version
2019-09-23 12:57:06 -07:00
Sean McArthur
b534a7888a v0.2.0-alpha.2 2019-09-20 14:05:06 -07:00
Aaron Hill
b4c129c99d chore(dependencies): update tokio to 0.2.0-alpha.5 (#409) 2019-09-20 13:43:03 -07:00
Sean McArthur
0527f5b72a Rename 'stream' feature to 'unstable-stream' 2019-09-12 12:44:44 -07:00
Sean McArthur
be079f7e40 Remove publish=false from Cargo.toml 2019-09-04 11:10:14 -07:00
Sean McArthur
8e81d84910 v0.2.0-alpha.1 2019-09-04 11:08:05 -07:00
Sean McArthur
2d90efee17 Prune futures-* dependencies 2019-08-30 14:53:49 -07:00
Sean McArthur
678c90eb0a Update futures and tokio alphas 2019-08-29 15:44:26 -07:00
Wim Looman
f4378bae58 Add necessary features for tokio-io 2019-08-22 11:47:01 -07:00
Sean McArthur
b2c5d7f0bb Update futures and tokio alphas 2019-08-20 18:36:38 -07:00
Sean McArthur
a1db5428db Make Stream impls part of optional 'stream' cargo feature (#397) 2019-08-20 16:01:03 -07:00
Gurwinder Singh
ad7ffa795f Updated as per review comments 2019-08-16 18:47:47 -07:00
Gurwinder Singh
c8fefd49f1 Update lib to std-future 2019-08-16 18:47:47 -07:00
lukaslueg
782f1f712c Remove byteorder-dependency (#392) 2019-08-09 13:20:48 -07:00
Jakub Beránek
db6b841e67 Update crate to Rust 2018 (#383) 2019-07-23 10:18:43 -07:00