aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-netdoc/src/doc/netstatus/build.rs
Commit message (Collapse)AuthorAgeFilesLines
* tor-netdoc: Apply deferred rustfmt import churnIan Jackson2026-05-271-2/+2
|
* tor-netdoc: Rename Footer to ConsensusFooterFieldsIan Jackson2026-05-271-1/+1
| | | | | | | | | | | This will allow us to include this, conditionally, in the new per-variety footer types for consensuses, without too much disruption to the existing code. We don't leave a compatibility alias because we're going to want a Footer in each_variety.rs which is the actual sub-document. This old struct isn't suitable because it doesn't have the intro item and is just for consensuses.
* tor-netdoc: rustfmt (re-alphabetise and re-wrap imports)Ian Jackson2026-05-131-2/+1
|
* tor-netdoc: Break out SharedRandStatuses, and remove it from votesIan Jackson2026-05-131-0/+1
|
* tor-netdoc: Un-gate "plain-consensus" cargo featureIan Jackson2026-04-281-1/+0
| | | | As per #2492.
* tor-netdoc: ConsensusAuthorityEntry: rename from ConsensusVoterInfo (2) (fmt)Ian Jackson2026-04-271-1/+1
|
* tor-netdoc: ConsensusAuthorityEntry: rename from ConsensusVoterInfo (2)Ian Jackson2026-04-271-1/+1
| | | | Deprecate the compatibility alias.
* tor-netdoc: ns Premable: add missing field known_flagsIan Jackson2026-04-211-0/+1
|
* tor-netdoc: Preamble: Parse consensus-methods in votesIan Jackson2025-12-181-1/+1
|
* tor-netdoc: Change type of timestamp in SharedRandStatusIan Jackson2025-10-211-0/+1
|
* tor-netdoc: Apply much rustfmt churnIan Jackson2025-08-261-4/+3
|
* tor-netdoc: Introduce experimental ns-vote featureIan Jackson2025-08-261-1/+1
| | | | | | Now we can start actually having code to do with votes. This feature doesn't actually contain any new API surface yet.
* tor-netdoc: Turn ConsensusHeader into VARIETY::HeaderIan Jackson2025-08-261-1/+1
| | | | It's going to need to vary when we do votes.
* tor-netdoc: Abolish RouterStatus trait in favour of generic methodsIan Jackson2025-08-261-1/+1
| | | | | Our approach to sharing code between md and plain consensuses is now the new "variety" system, not generics.
* tor-netdoc: netstatus: Move everything variety-specificIan Jackson2025-08-261-446/+3
| | | | | | | | | This is much code motion. This splits many types into two. For example, `Conensus` is now`plain::Consensus<RS>` and `md::Consensus<RS>`. We're going to get rid of the generics later in this branch.
* tor-netdoc: Prepare variety modules for network status documentsIan Jackson2025-08-261-0/+4
| | | | This is empty modules and scaffolding.
* tor-netdoc: Fold netstatus::CommonHeader into ConsensusHeaderIan Jackson2025-08-261-18/+14
| | | | | We're going to use ns_variety_definition_macros to support votes, rather than this.
* Fix a pair of documentation links.Nick Mathewson2025-04-161-2/+2
|
* netdoc: Put all ProtoStatuses into a single Arc<>d objectNick Mathewson2025-04-161-3/+9
| | | | | We'll want this so that we can expose them before we expose the rest of the consensus (which we need to do for spec conformance).
* Run maint/add_warning.Nick Mathewson2024-03-131-0/+1
|
* Run maint/add_warning to add lint block everywhereIan Jackson2023-08-231-0/+1
|
* Run maint/add_warning to actually apply new lint allowsIan Jackson2023-07-101-0/+1
|
* netdoc: Add a timestamp to SRVs per prop#342.Nick Mathewson2023-01-281-6/+25
| | | | | This breaks some experimental APIs, but since they are experimental no semver note is needed.
* 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.
* Netdoc: Refactor SharedRandVal.Nick Mathewson2023-01-111-9/+9
| | | | | | | | SharedRandVal now holds only the 32-byte random value itself; the "number of commits" field is in SharedRandStatus. This commit also makes the SharedRandVal be exactly 32 bytes, since we've set it to that value in the spec.
* 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.
* add feature annotation not added by doc_auto_cfgtrinity-1686a2022-08-241-0/+1
|
* Remove allow(clippy::disallowed_methods) lint.Nick Mathewson2022-03-301-1/+0
|
* use wallclock where possible in teststrinity-1686a2022-02-261-0/+1
|
* netdoc: Make doc-build errors a separate typeNick Mathewson2022-02-141-1/+1
| | | | | Every other case of tor_netdoc::Error means a parse failure. This one, though, means a failure to construct a document.
* Remove dir_port from RouterStatusBuilderNeel Chauhan2021-12-011-1/+0
|
* Remove address from VoterInfoBuilderNeel Chauhan2021-11-281-12/+0
|
* Remove unused 'address' field from DirSource structNeel Chauhan2021-11-281-6/+0
|
* Remove the unused `published` field from GenericRouterStatus.Nick Mathewson2021-11-121-1/+0
| | | | | | | | | | | | This field isn't used in modern Tor, and has never been used in Arti. If tor!489 is merged, then it will no longer contain a useful value in future consensuses. We shouldn't store it, or else somebody else will get the smart idea of using it for something. This commit breaks API compatibility for tor-netdoc with the `build_docs` feature enabled. I haven't entered that into the semver_status.md file, since we already have a pending tor-netdoc API breaker in !129.
* fix/silence clippy lints in test modulesDaniel Eades2021-09-081-0/+1
|
* Move all crates into a `crates` subdirectory.Nick Mathewson2021-08-271-0/+450
This will cause some pain for now, but now is really the best time to do this kind of thing.