aboutsummaryrefslogtreecommitdiff
path: root/crates/arti-hyper
Commit message (Collapse)AuthorAgeFilesLines
* Bump all crates to 0.1.0arti-v0.1.0Nick Mathewson2022-03-011-4/+4
|
* Update README.md files from rustdoc.Nick Mathewson2022-03-011-6/+5
|
* Fix rustdoc errors.Nick Mathewson2022-03-011-1/+1
|
* Merge remote-tracking branch 'origin/mr/371'Nick Mathewson2022-03-011-2/+22
|\
| * arti-hyper: Upgrade from an example to an "adaptation layer"Ian Jackson2022-03-011-0/+8
| |
| * arti-hyper: Expand docsIan Jackson2022-03-011-1/+15
| |
| * arti-hyper: Drop obsolete comment about not doing TLSIan Jackson2022-03-011-2/+0
| |
* | Merge branch 'main' into 364Ian Jackson2022-03-014-38/+116
|\| | | | | | | | | | | | | Conflicts: crates/arti-hyper/examples/hyper.rs Trivially resolved. Hyper example still works.
| * arti-hyper: Add vacuous doc comments as required by clippyIan Jackson2022-02-281-0/+3
| |
| * EK::RemoteProtocolFailed replaces OtherRemoteIan Jackson2022-02-281-1/+1
| | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/355#note_2781816
| * Fix rustfmtIan Jackson2022-02-281-9/+10
| | | | | | | | I disagree with all these. Whatever.
| * arti-hyper: Abolish a bool in favour of a custom private enumIan Jackson2022-02-281-12/+19
| | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/355#note_2781820
| * arti-hyper: Box the http variant (bare DataStream)Ian Jackson2022-02-281-7/+6
| | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/355#note_2781819
| * arti-hyper: Fix duplicative doc comment not to be wrongIan Jackson2022-02-281-1/+1
| |
| * arti-hyper: Drop description of nonexistent error-detail featureIan Jackson2022-02-281-3/+0
| |
| * arti-hyper: Clarify what the TLS features do.Ian Jackson2022-02-281-1/+2
| |
| * arti-hyper: Actually support TLSIan Jackson2022-02-283-19/+39
| |
| * arti-hyper: Provide TLS connector and make space for TLS streamIan Jackson2022-02-283-19/+64
| | | | | | | | | | | | | | | | | | | | Add tls_conn field to ArtiHttpConnector (and argument to constructor). Introduce MaybeHttpsStream and use it in ArtiHttpConnection. Have the example program pass the native TLS connector. Currently the TLS connector and the HTTPS variant are not used, but this commit is very noisy and fomrulaic, so I have split out the code to use them into a separate commit for easier preparation and review.
| * Manually implement Clone for ArtiHttpConnectorIan Jackson2022-02-281-1/+7
| | | | | | | | | | This will be needed in a moment and doing it now makes the next patch smaller and hence easier to read.
| * arti-hyper: Disable clippy::clone_on_ref_ptrIan Jackson2022-02-281-1/+0
| | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/355#note_2781816 disable this here for now, pending a decision on !352
* | arti-client: use PreferredRuntime by default, doc cleanupseta2022-02-281-4/+1
|/ | | | | | | | | | | | | | | | | | | | | | This makes using the `PreferredRuntime` the first-class option inside `arti-client`, freeing users who don't want to think about runtimes from having to do so. `TorClient::create_unbootstrapped` and `builder` now automatically use this runtime, leaving only `builder_custom` for users who wish to manually specify a runtime. This lets us clean up the docs a lot: mentions of using custom runtimes are now relegated to nearer the end of the crate-level documentation, and we mostly just link to `tor_rtcompat`'s docs to explain more there. Instead, we take some more time to explain how you use the builder API to create clients synchronously. Other doc cleanups included getting rid of the explanation of `TorAddr` in the main crate-level doc; this is already well-documented elsewhere, and is something users should discover organically later. fixes arti#326
* Bump minimum tokio to 1.7, since tokio-util now needs that.Nick Mathewson2022-02-251-1/+1
|
* arti-hyper: impl HasKind for ConnectionErrorIan Jackson2022-02-232-0/+15
|
* arti-hyper: Add note about missing https supportIan Jackson2022-02-232-0/+4
|
* arti-hyper: Add vacuous doc comments to placate clippyIan Jackson2022-02-231-0/+3
|
* arti-hyper: Move support code into libraryIan Jackson2022-02-232-112/+113
| | | | Pure code motion. (Including motion/copying of "use" lines.)
* arti-hyper: Introduce new ConnectionError typeIan Jackson2022-02-233-13/+43
| | | | | We need this not to use anyhow because we don't want our libraries to expose anyhow, and this is about to go into the library.
* arti-hyper: Move hyper example from arti-clientIan Jackson2022-02-232-2/+166
| | | | Code motion and consequential dependency adjustments.
* arti-hyper: empty crate skeletonIan Jackson2022-02-233-0/+77