aboutsummaryrefslogtreecommitdiff
path: root/crates/arti-hyper/src
Commit message (Collapse)AuthorAgeFilesLines
* Run maint/add_warning to add lint block everywhereIan Jackson2023-08-231-0/+1
|
* Run add_warnings on all files.Nick Mathewson2023-08-041-2/+2
|
* Run maint/add_warning to actually apply new lint allowsIan Jackson2023-07-101-0/+2
|
* Run add_warning to remove `missing_panics_doc` deny.Nick Mathewson2023-07-061-1/+0
| | | | Closes #950.
* lints: Run maint/add_warning to actually apply new lintsIan Jackson2023-06-211-0/+2
|
* s/ProtocolFailed/ProtocolViolation/g where possibleNeel Chauhan2023-04-081-1/+1
|
* Allow clippy::unchecked_duration_subtraction in testsNick Mathewson2023-01-271-0/+1
| | | | | This panics on error, and we're fine with a panic on misbehavior in tests.
* Disable clippy::unlinlined-format-argsNick Mathewson2023-01-271-0/+1
| | | | | | | | This warning kind of snuck up on us! (See #748) For now, let's disable it. (I've cleaned it up in a couple of examples, since those are meant to be more idiomatic and user-facing.) Closes #748.
* test lint blocks: Add many many automaticallyIan Jackson2022-12-121-0/+9
| | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks.
* Spelling fixes and normalizations on some high-level cratesNick Mathewson2022-11-071-1/+1
|
* Run add_warnings.Nick Mathewson2022-11-031-0/+1
|
* cargo fmt to remove blank linesIan Jackson2022-10-121-1/+0
| | | | | | | Apparently cargo fmt doesn't like these, which my perl rune didn't delete. This commit is precisely the result of `cargo fmt`.
* Replace all README copies in src/lib.rs with includesIan Jackson2022-10-121-9/+1
| | | | | | | | The feature we want is `#[doc = include_str!("README.md")]`, which is stable since 1.54 and our MSRV is now 1.56. This commit is precisely the result of the following Perl rune: perl -i~ -0777 -pe 's{(^//!(?!.*\@\@).*\n)+}{#![doc = include_str!("../README.md")]\n}m' crates/*/src/lib.rs
* enable doc_auto_cfg feature on every crate when documenting for docs.rstrinity-1686a2022-08-241-0/+1
|
* Add unit tests for arti-hyper's uri -> host,port,tls conversionspongechameleon2022-07-051-0/+73
|
* Run maint/add_warning crates/*/src/{lib,main}.rsIan Jackson2022-06-231-0/+3
| | | | Update all lint blocks
* lints: Add let_unit_value allow to all cratesIan Jackson2022-05-311-0/+1
| | | | | From running add_warning, with manual picking of the right hunks/lines.
* lints: Add lint block delimiters to every crateIan Jackson2022-05-311-0/+2
| | | | | | This was the result of: maint/add_warning crates/*/src/{lib,main}.rs and then manually curating the results.
* Replace manual Clone impl with educe in arti-hyperIan Jackson2022-03-021-7/+3
|
* Fix rustdoc errors.Nick Mathewson2022-03-011-1/+1
|
* 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
|
* 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: Actually support TLSIan Jackson2022-02-281-17/+38
|
* arti-hyper: Provide TLS connector and make space for TLS streamIan Jackson2022-02-281-18/+58
| | | | | | | | | | 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-hyper: impl HasKind for ConnectionErrorIan Jackson2022-02-231-0/+14
|
* arti-hyper: Add note about missing https supportIan Jackson2022-02-231-0/+3
|
* arti-hyper: Add vacuous doc comments to placate clippyIan Jackson2022-02-231-0/+3
|
* arti-hyper: Move support code into libraryIan Jackson2022-02-231-0/+112
| | | | Pure code motion. (Including motion/copying of "use" lines.)
* arti-hyper: Introduce new ConnectionError typeIan Jackson2022-02-231-0/+28
| | | | | 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: empty crate skeletonIan Jackson2022-02-231-0/+32