aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-netdoc
Commit message (Collapse)AuthorAgeFilesLines
...
* tor-netdoc: Un-gate BASE64_PEM_MAX_LINEIan Jackson2026-04-231-1/+0
|
* tor-netdoc: Tidy use's in authcert.rsIan Jackson2026-04-231-9/+5
|
* tor-netdoc: Un-gate parse2 and encode in authcert.rsIan Jackson2026-04-231-31/+5
|
* tor-netdoc: types/misc.rs: un-gate two helper methodsIan Jackson2026-04-231-2/+0
|
* tor-netdoc: types/misc.rs: abolish a now-unneeded block in a testIan Jackson2026-04-231-26/+23
|
* tor-netdoc: types/misc.rs: tidy preivously cfg'd use'sIan Jackson2026-04-231-31/+25
|
* tor-netdoc: Remove much cfg in types/misc.rsIan Jackson2026-04-231-47/+14
| | | | | Unconditionally enable everything previously gated with parse2 or encode.
* tor-netdoc: Un-gate parse2 and encode coreIan Jackson2026-04-233-5/+0
|
* tor-netdoc: Make rand dependency unconditionalIan Jackson2026-04-231-4/+4
| | | | | | Part of #2492. We're going to make encode unconditional, and remove all the cfg-gates for it. Code currently gated by encode depends on rand.
* Merge branch 'routerdescs2-types' into 'main'Clara Engler2026-04-236-11/+401
|\ | | | | | | | | Introduce router descriptor types See merge request tpo/core/arti!3908
| * tor-netdoc: Fix B16U debug implementationClara Engler2026-04-221-1/+1
| | | | | | | | Replaces "B16" by "B16U".
| * tor-netdoc: Fix FixedB16U debug implementationClara Engler2026-04-221-1/+1
| | | | | | Replaces "FixedB16" by "FixedB16U"
| * tor-netdoc: Add TODO for FixedB16U's Display implementationClara Engler2026-04-221-0/+1
| |
| * tor-netdoc: Add spec links to all routerdesc typesClara Engler2026-04-221-0/+8
| | | | | | | | This commit adds spec links to all relevant routerdesc types.
| * tor-netdoc: Add spec link to RouterDescClara Engler2026-04-221-0/+4
| | | | | | | | This commit adds a specification link to the RouterDesc struct.
| * tor-netdoc: pub mod routerdescClara Engler2026-04-223-8/+6
| | | | | | | | | | | | | | This commit replaces `pub use routerdesc::*` with `pub mod routerdesc` alongside making the required changes in types.rs to not directly prelude these types but to introduce them in their own module, as that is the primary advantage of having these types there.
| * tor-netdoc: ItemArgumentParseable for RelayPlatformClara Engler2026-04-222-0/+13
| | | | | | | | | | This commit implements ItemArgumentParseable for RelayPlatform which we will need in the parse2 version of RouterDesc eventually.
| * tor-netdoc: Public SpFingerprintClara Engler2026-04-223-3/+4
| | | | | | | | | | | | | | | | We will need this type in public fields of the router descriptor data type at one point, most notably for the `fingerprint` item. No need to update semver.md because this type is, for whatever reason, already contained there (in main)?
| * tor-netdoc: Test AddrPolicy's parse2 accumulatorClara Engler2026-04-221-0/+58
| | | | | | | | | | This commit adds a test for the recent parse2 accumulator to see whether it accumulates the policies as expected.
| * tor-netdoc: NetdocParseableFields for AddrPolicyClara Engler2026-04-222-2/+31
| | | | | | | | | | | | This commit implements NetdocParseableFields for AddrPolicy, which will be required, because this field accumulates exit policies in a firewall like order, making the use of it necessary.
| * tor-netdoc: NormalItemArgument for AddrPortPatternClara Engler2026-04-222-0/+4
| | | | | | | | | | This commit implements NormalItemArgument for AddrPortPattern because we will need it later for an accumulator.
| * tor-netdoc: Derive PartialEq,Eq for addrpolicy.rsClara Engler2026-04-222-2/+4
| | | | | | | | | | This commit derives PartialEq and Eq for a few types in addrpolicy.rs, as we will need these for a few unit tests later on.
| * tor-netdoc: Add TODO for BTreeSet in RelayFamilyIdsClara Engler2026-04-221-1/+5
| | | | | | | | | | The inner Vec ought to be better of as a BTreeSet as that would save us dedup and sort calls.
| * tor-netdoc: Add dedup() to RelayFamilyIdsClara Engler2026-04-222-0/+6
| | | | | | | | | | We will need this later for outputting RelayFamilyIds in a fashion compatible with the current API.
| * tor-netdoc: Add sort() to RelayFamilyIdsClara Engler2026-04-222-0/+6
| | | | | | | | | | We will need this later for outputting RelayFamilyIds in a fashion compatible with the current API.
| * tor-netdoc: Add ExtraInfoDigestsClara Engler2026-04-223-2/+18
| | | | | | | | | | | | This commit adds the ExtraInfoDigests structure storing the, if present, mandatory SHA-1 hash and optional SHA-256 hash of the extra-info document associated with the router descriptor it is referenced from.
| * tor-netdoc: Add RouterDescIntroItemClara Engler2026-04-223-2/+27
| | | | | | | | | | | | | | This commit adds RouterDescIntroItem which will serve as the introduction item for router descriptors, that is, a line with the keyword "router" followed by the nickname, the IPv4 address, and a few ports.
| * tor-netdoc: Eq for NicknameClara Engler2026-04-222-1/+2
| | | | | | | | | | This derives Eq for Nickname because we will need it for unit tests that will be added later on.
| * tor-netdoc: Add OverloadGeneral typeClara Engler2026-04-223-0/+36
| | | | | | | | | | | | This type comes from the specification and indicates overload information about a relay. We will use it in router descriptors at one point, hence why we are adding it already.
| * tor-netdoc: Test SpFingerprint 10x4 requirementClara Engler2026-04-221-0/+60
| | | | | | | | | | This commit adds a test to verify the 10x4 character requirement for SpFingerprint.
| * tor-netdoc: ItemArgumentParseable for SpFingerprintClara Engler2026-04-221-0/+32
| |
| * tor-netdoc: Speclink for SpFingerprint rustdoc commentClara Engler2026-04-221-0/+2
| |
| * tor-netdoc: Introduce FixedB16UClara Engler2026-04-221-0/+31
| | | | | | | | | | This commit introduces FixedB16U which is a FixedB64 pedant for B16U. It will be required for ExtraInfoDigests.
| * tor-netdoc: Add test for NumericBooleanClara Engler2026-04-221-0/+13
| | | | | | | | | | This commit adds a round-trip test for NumericBoolean to ensure that 0 is false and 1 is true.
| * tor-netdoc: Add NumericBooleanClara Engler2026-04-223-1/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a new type, NumericBoolean, which implements NormalItemArgument in order to be parseable with parse2. It works very simple, namely it can be used to decode/encode a boolean as a `0` (false) or `1` (true) which is found in a few places around tor-netdoc. The reason why this is its own type instead of implementing NormalItemValue for the bool primitive is, that booleans are special numerical types and to be future-proof against other oddities, a separate wrapper type makes most sense.
* | tor-netdoc: Introduce the `incomplete` cargo featureIan Jackson2026-04-212-2/+10
| | | | | | | | | | | | Part of #2492 phase 1. No semver note because this is an experimental feature.
* | tor-netdoc: Make the document type features imply each other and `encode`Ian Jackson2026-04-211-2/+6
|/ | | | | | Part of #2492 phase 1. No semver note because this is an undocumented transitional phase.
* Merge branch 'rust-1.95-warnings' into 'main'Nick Mathewson2026-04-211-1/+1
|\ | | | | | | | | Fix new warnings from Rust 1.95 See merge request tpo/core/arti!3902
| * tor-netdoc: Simplify sort_by to sort_by_keyNick Mathewson2026-04-211-1/+1
| |
* | tor-netdoc: Minimally avoid emitting bad netparams keywordsIan Jackson2026-04-211-1/+36
| | | | | | | | | | See torspec#401 and https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3864#note_3397715
* | tor-netdoc: Fix c&p error in commentIan Jackson2026-04-211-1/+1
| | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3864#note_3397714
* | tor-netdoc: Move the proto_statuses_parse2_encode module laterIan Jackson2026-04-211-88/+87
| | | | | | | | | | | | | | Now it follows, rather than precedes, the parse2_impls and encode_impls modules that it imports things from. Pure code motion apart from deleting the todo.
* | tor-netdoc: ns Premable: add missing field known_flagsIan Jackson2026-04-217-2/+10
| |
* | tor-netdoc: DocRelayFlags: add convenience constructorIan Jackson2026-04-212-0/+11
| |
* | tor-netdoc: ns Preamble: derive NetdocEncodableFieldsIan Jackson2026-04-212-0/+2
| |
* | tor-netdoc: ns Preamble: Use ConstructorIan Jackson2026-04-214-1/+17
| |
* | tor-netdoc: ns Preamble: use new deftly cfg approachIan Jackson2026-04-211-10/+8
| |
* | tor-netdoc: DocRelayFlags: rename VoteRepr to NoImplicitReprIan Jackson2026-04-213-5/+6
| |
* | tor-netdoc: DocRelayFlags: Provide encoderIan Jackson2026-04-211-3/+37
| |
* | tor-netdoc: DocRelayFlags: rename helper structIan Jackson2026-04-212-8/+8
| | | | | | | | This is going to be used for encoding too.