aboutsummaryrefslogtreecommitdiff
path: root/crates/arti-client/src/address.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Make a top-level API for connecting to onion services.Nick Mathewson2023-01-121-0/+10
| | | | Fortunately, it adds very little to the arti-client API surface.
* test lint blocks: Add many many automaticallyIan Jackson2022-12-121-0/+8
| | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks.
* Fix a bunch of "needless borrow" warnings on nightlyNick Mathewson2022-11-181-1/+1
| | | | | It looks like, despite a few false starts, they've got this warning right; there weren't any false positives.
* Merge branch 'hostname-validation' into 'main'Nick Mathewson2022-10-031-18/+1
|\ | | | | | | | | Use hostname-validator crate for hostname validation See merge request tpo/core/arti!739
| * Use hostname-validator crate for hostname validationReylaba2022-10-031-18/+1
| |
* | Apply 1 suggestion(s) to 1 file(s)Ian Jackson2022-09-221-1/+1
| |
* | fix clippy::needless_borrowtrinity-1686a2022-09-101-0/+2
|/
* More docs for IntoTorAddrNick Mathewson2022-02-141-4/+25
|
* arti_client: Rename Error to ErrorDetail.Nick Mathewson2022-02-081-10/+14
| | | | | | | This is closer to what we described in Errors.md. Also, remove the (sometimes private) Result alias: it was only used in one or two places, and never exposed in public.
* errors: Refer to err::Error in some bits of arti_clientIan Jackson2022-02-041-5/+5
| | | | We are going to make the top-level Error type conditionally hidden.
* Fix typosDimitris Apostolou2022-02-021-1/+1
|
* arti-client: Change an XXXX to a TODO.Nick Mathewson2021-12-201-1/+5
| | | | | | We _do_ reject bad hostnames: just not where I once thought we might. We need to decide if the current behavior is what we want (and I think it is, probably?).
* Add constructor for TorAddr, to enforce port != 0Nick Mathewson2021-11-301-24/+30
| | | | This makes sure that we're checking for a nonzero port in all cases.
* arti-client: Reject Port 0 when parsing address:port combosNeel Chauhan2021-11-291-2/+5
|
* Improve docs of more (potentially re-exported) arti-client typeseta2021-10-291-0/+45
| | | | | | | | | | | | | | | | | | | | | Most of the structs in `arti-client` have example code now, to give a clearer idea of how they're used. Annoyingly, a lot of the types exposed in `arti-client` are actually re-exports, which makes documentation a bit harder: example code that references other parts of `arti-client` can't actually be run as a doctest, since the crate it's in is a dependency of `arti-client`. We might be able to fix this in future by doing the documentation in `arti-client` itself, but rustdoc seems to have some weird behaviours there that need to be investigated first (for example, it seems to merge the re-export and original documentation, and also put the re-export documentation on the `impl` block for some reason). For now, though, this commit just writes the docs from the point of view of an `arti-client` consumer, removing notes specific to the crate in which they're defined. It's not ideal, but at least the end user experience is decent.
* More tests for arti_client::addressNick Mathewson2021-10-261-15/+106
|
* Run "cargo fix --edition-idioms=2018".Nick Mathewson2021-10-221-2/+2
|
* Rename tor_client/arti_tor_client to arti_client.Nick Mathewson2021-10-211-0/+367
Solves a name conflict with the existing tor_client create. Closes #130.