Ian Jackson
decdd05ec5
Replace manual Clone impl with educe in arti-hyper
2022-03-02 18:06:37 +00:00
Nick Mathewson
e8e9791a97
Bump all crates to 0.1.0
2022-03-01 08:59:34 -05:00
Nick Mathewson
5735222691
Update README.md files from rustdoc.
2022-03-01 08:30:53 -05:00
Nick Mathewson
57a8fe5f55
Fix rustdoc errors.
2022-03-01 08:16:02 -05:00
Nick Mathewson
f4a0aefae5
Merge remote-tracking branch 'origin/mr/371'
2022-03-01 08:12:51 -05:00
Ian Jackson
4fa78e3f44
arti-hyper: Upgrade from an example to an "adaptation layer"
2022-03-01 11:53:15 +00:00
Ian Jackson
b083ae661e
arti-hyper: Expand docs
2022-03-01 11:53:13 +00:00
Ian Jackson
5533fef4f3
arti-hyper: Drop obsolete comment about not doing TLS
2022-03-01 11:53:12 +00:00
Ian Jackson
66f53b6a9a
Merge branch 'main' into 364
...
Conflicts:
crates/arti-hyper/examples/hyper.rs
Trivially resolved. Hyper example still works.
2022-03-01 10:36:02 +00:00
eta
13ba0ea005
arti-client: use PreferredRuntime by default, doc cleanups
...
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
2022-02-28 16:41:13 +00:00
Ian Jackson
cdbb904664
arti-hyper: Add vacuous doc comments as required by clippy
2022-02-28 14:39:43 +00:00
Ian Jackson
8898bbb421
EK::RemoteProtocolFailed replaces OtherRemote
...
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/355#note_2781816
2022-02-28 13:27:44 +00:00
Ian Jackson
4425171245
Fix rustfmt
...
I disagree with all these. Whatever.
2022-02-28 13:17:41 +00:00
Ian Jackson
551bc69045
arti-hyper: Abolish a bool in favour of a custom private enum
...
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/355#note_2781820
2022-02-28 13:16:25 +00:00
Ian Jackson
adfabe6cd1
arti-hyper: Box the http variant (bare DataStream)
...
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/355#note_2781819
2022-02-28 13:12:20 +00:00
Ian Jackson
4705234a49
arti-hyper: Fix duplicative doc comment not to be wrong
2022-02-28 13:07:44 +00:00
Ian Jackson
85e7d4b088
arti-hyper: Drop description of nonexistent error-detail feature
2022-02-28 13:07:44 +00:00
Ian Jackson
51c9cec1f1
arti-hyper: Clarify what the TLS features do.
2022-02-28 13:07:44 +00:00
Ian Jackson
c24c3af81b
arti-hyper: Actually support TLS
2022-02-28 13:07:44 +00:00
Ian Jackson
c397c772e6
arti-hyper: Provide TLS connector and make space for TLS stream
...
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.
2022-02-28 13:07:44 +00:00
Ian Jackson
148cd61f2b
Manually implement Clone for ArtiHttpConnector
...
This will be needed in a moment and doing it now makes the next patch
smaller and hence easier to read.
2022-02-28 13:07:44 +00:00
Ian Jackson
9a729aa2f8
arti-hyper: Disable clippy::clone_on_ref_ptr
...
As per
https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/355#note_2781816
disable this here for now, pending a decision on !352
2022-02-28 13:07:08 +00:00
Nick Mathewson
4becaa01b9
Bump minimum tokio to 1.7, since tokio-util now needs that.
2022-02-25 11:09:24 -05:00
Ian Jackson
fc35ffd6cd
arti-hyper: impl HasKind for ConnectionError
2022-02-23 14:35:41 +00:00
Ian Jackson
d7d0f52ef6
arti-hyper: Add note about missing https support
2022-02-23 14:35:41 +00:00
Ian Jackson
89146f37fb
arti-hyper: Add vacuous doc comments to placate clippy
2022-02-23 14:35:41 +00:00
Ian Jackson
03de9f727c
arti-hyper: Move support code into library
...
Pure code motion. (Including motion/copying of "use" lines.)
2022-02-23 14:35:40 +00:00
Ian Jackson
80d8edc51f
arti-hyper: Introduce new ConnectionError type
...
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.
2022-02-23 14:34:53 +00:00
Ian Jackson
0cf9751d7f
arti-hyper: Move hyper example from arti-client
...
Code motion and consequential dependency adjustments.
2022-02-23 13:55:17 +00:00
Ian Jackson
0f80be6b35
arti-hyper: empty crate skeleton
2022-02-23 13:55:14 +00:00