summaryrefslogtreecommitdiff
path: root/crates/arti-hyper
Commit message (Collapse)AuthorAgeFilesLines
* Regenerate version bump from previous commit.arti-v0.4.0Nick Mathewson2022-05-271-2/+2
| | | | | | | This commit was made by reverting the previous commit, then re-running the script I used to generate it. In theory there should be no semantic changes: only changes due to improved formatting from cargo edit.
* Semantic version changes for Arti 0.4.0 releaseNick Mathewson2022-05-271-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | I followed the following procedure to make these changes: * I used maint/changed_crates to find out which crates had changed since 0.3.0. * I used grep and maint/list_crates to sort those crates in topological (dependency) order. * I looked through semver_status to find which crates were listed as having semver-relevant changes (new APIs and breaking changes). * I scanned through the git logs of the crates with no semver-relevant changes listed to confirm that, indeed, they had no changes. For those crates, I incremented their patch-level version _without_ changing the version that other crates depend on. * I scanned through the git logs of the crates with no semver-relevant changes listed to confirm that, indeed, they had no obvious breaking changes. * I treated all crates that depend on `arti` and/or `arti-client` as having breaking changes. * I identified crates that depend on crates that have changed, even if they have not changed themselves, and identified them as having a non-breaking change. * For all of the crates, I used `cargo set-version -p $CRATE --bump $STATUS` (where `STATUS` is `patch` or `minor`) to update the versions, and the depended-upon versions.
* Bump the version of every* crate to 0.3.0Nick Mathewson2022-05-061-4/+4
| | | | * Except for safelog and fs-mistrust, which are new.
* Fix typos (using the typos-cli tool).Nick Mathewson2022-05-041-1/+1
|
* update tls-api to 0.8.0trinity-1686a2022-04-281-2/+2
| | | | and remove corresponding RUSTSEC from ignored list
* squash! Bump every crate's edition to 2021.Nick Mathewson2022-04-251-1/+0
| | | | | Remove all `use` statements for `TryFrom` and `TryInto`. These are now redundant in Rust 2021.
* Bump every crate's edition to 2021.Nick Mathewson2022-04-251-1/+1
| | | | | | | | | | This is an automated change made with a perl one-liner and verified with grep -L and grep -l. Some warnings are introduced with this change; they will be removed in subsequent commits. See arti#208 for older discussion on this issue.
* Add 'rust-version = "1.56"' to every Cargo.toml file.Nick Mathewson2022-04-251-0/+1
| | | | | | | This change was made automatically with a perl one-liner, and confirmed with `grep -L`. The `rust-version` field itself was introduced in 1.56.0.
* Reformat all not-yet-reformatted Cargo.toml files.Nick Mathewson2022-04-251-11/+18
| | | | | There are no semantic changes here; only formatting. This is in preparation for other changes (wrt MSRV and edition)
* Bump all arti*, tor* crates to 0.2.0Nick Mathewson2022-04-011-4/+4
| | | | | | | | Not all of these strictly need to be bumped to 0.2.0; many could go to 0.1.1 instead. But since everything at the tor-rtcompat and higher layers has had breaking API changes, it seems not so useful to distinguish. (It seems unlikely that anybody at this stage is depending on e.g. tor-protover but not arti-client.)
* Replace manual Clone impl with educe in arti-hyperIan Jackson2022-03-022-7/+4
|
* 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