aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/doc/netstatus.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* tor-netdoc: Conditionally expose document fields.Nick Mathewson2022-03-311-0/+56
| | | | | | | | This commit uses the `visibility` and `visible` crates to conditionally make certain structs and their fields public (respectively). This is incredibly dangerous to use for anything besides testing, and I've tried to write the documentation for the feature accordingly.
* Change type of TorClientConfig::override_net_paramsIan Jackson2022-03-161-1/+1
| | | | | | | Now we use NetParams. That implies making its constructor public, which I think it fine. This is related to #413 but is far from completing that ticket.
* netdoc: Call shrink_to_fit() when we're done parsing rs sectionsNick Mathewson2022-03-111-0/+1
| | | | | (Once we're done parsing these, the vector will never get any longer.)
* Add methods to `UnverifiedConsensus`Christian Grigis2022-03-101-0/+25
|
* Refactor tor_netdoc::ErrorNick Mathewson2022-02-141-51/+92
| | | | | | | | | | | | | | | This error type doesn't impement HasKind, since the kind will depend on context. However, the existing implementation was pretty messy and inconsistent: Some errors had positions, some didn't. Some took messages as str, some as String. Some had internal errors that were somewhat orthogonal to their actual types. This commit refactors tor_netdoc::Error to use a ParseErrorKind, and adds a set of convenience functions to add positions and messages to the errors that need them.
* address clippy's latest lintDaniel Eades2021-12-201-0/+1
|
* s/hidden/onion/g in code commentsNeel Chauhan2021-12-131-1/+1
|
* Resolve roughly half of the XXXXs.Nick Mathewson2021-12-061-1/+1
| | | | | | | | We want to only use TODO in the codebase for non-blockers, and open tickets for anything that is a bigger blocker than a TODO. These XXXXs seem like definite non-blockers to me. Part of arti#231.
* Merge remote-tracking branch 'origin/mr/149'Nick Mathewson2021-11-291-5/+0
|\
| * Remove unused 'address' field from DirSource structNeel Chauhan2021-11-281-5/+0
| |
* | deglob some enums, use concise iteration syntaxDaniel Eades2021-11-251-3/+3
|/
* Merge branch 'arti-client-config' into 'main'eta2021-11-221-1/+1
|\ | | | | | | | | Further configuration refactoring See merge request tpo/core/arti!137
| * Make every Config type implement Eq.Nick Mathewson2021-11-211-1/+1
| | | | | | | | | | Doing this is necessary for reconfiguration support, and will help a lot with testing, too.
* | Use consistent name for ns_consensus feature.Nick Mathewson2021-11-211-6/+6
|/
* tor-netdoc: put NS consensus documents behind a feature.Nick Mathewson2021-11-121-0/+7
| | | | | | Clients never need these. Part of #125.
* Add a couple of pieces of missing documentation.Nick Mathewson2021-11-081-3/+5
|
* Remove some dbg!() calls in real code.Nick Mathewson2021-11-021-1/+1
|
* Fix most warnings from nightly.Nick Mathewson2021-10-191-2/+2
| | | | (One represents code that I forgot to write.)
* Typo fixesNick Mathewson2021-09-091-1/+1
|
* fix/silence clippy lints in test modulesDaniel Eades2021-09-081-11/+12
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+1765
This will cause some pain for now, but now is really the best time to do this kind of thing.