summaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | tor-netdoc: Add types for hashes with their accompanying alg idIan Jackson2025-10-152-3/+143
| | | |
| * | | tor-netdoc: B64: impl Clone, [ConstantTime]Eq, Display, DebugIan Jackson2025-10-151-0/+27
| | | |
| * | | tor-netdoc: B64 helper type: ExposeIan Jackson2025-10-153-4/+6
| | | |
| * | | tor-netdoc: impl parse2 multiplicity for BTreeSetIan Jackson2025-10-153-3/+36
| | | |
| * | | tor-netdoc: RouterStatus: Add `publication` argument fieldIan Jackson2025-10-156-3/+28
| | | |
| * | | tor-netdoc: Mirror netdoc structure in RouterStatus document digestsIan Jackson2025-10-155-7/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In md consensuses the referenced document digest is in the `m` field. This seems to be to make it similar to votes. But really the function of the md desc hash in md rs entries is much more parallel to the plain desc hash in plain rs entries. The way the spec has done it means the `r` item has a needlessly different syntax.
| * | | tor-netdoc: Provide doc_digest on vote routerstatus entriesIan Jackson2025-10-152-6/+12
| | | |
| * | | tor-netdoc: RouterStatus: Split out the `r` item's fieldsIan Jackson2025-10-155-28/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the Rust structure closer to the document structure. Arguably, this makes the Rust structure worse. But: I'm really very keen on avoiding handwritten parsing and printing code. And, in the longer term, having this linkage will hopefully apply pressure to avoid further protocol complexity/variation/chaos.
| * | | tor-netdoc: impl parse2 for rs::VersionIan Jackson2025-10-151-0/+10
| | | |
| * | | tor-netdoc: impl parse2 for RelayFlagsIan Jackson2025-10-151-0/+13
| | | |
| * | | tor-netdoc: split up RelayFlags parsing (fmt)Ian Jackson2025-10-151-5/+1
| | | |
| * | | tor-netdoc: split up RelayFlags parsingIan Jackson2025-10-151-14/+47
| | | |
| * | | tor-netdoc: impl parse2 traits for RelayWeightIan Jackson2025-10-151-0/+25
| | | |
| * | | tor-netdoc: split up RelayWeight parsing (fmt)Ian Jackson2025-10-151-4/+2
| | | |
| * | | tor-netdoc: split up RelayWeight parsingIan Jackson2025-10-151-2/+9
| | | | | | | | | | | | | | | | We're going to call from_net_params from the parse2 trait impl.
| * | | tor-netdoc: impl parse2 traits for protoversIan Jackson2025-10-153-1/+25
| | | |
| * | | tor-netdoc: Provide convenience method for handling invalid argumentsIan Jackson2025-10-152-0/+15
| | | |
| * | | tor-netdoc: Introduce ArgumentNotPresent placeholder utility typeIan Jackson2025-10-152-3/+22
| | | |
| * | | tor-netdoc: Make Ignored part of a moduleIan Jackson2025-10-151-16/+23
| | | | | | | | | | | | | | | | | | | | The rest of types::misc does this. We should probably follow suit for consistency. Also we're going to want to add soemthing here.
| * | | tor-netdoc: impl Default for IgnoredIan Jackson2025-10-151-1/+1
| | | | | | | | | | | | | | | | | | | | This omission seems like an oversight. I thought I wanted it, but it turns out I don't - but I think it should still be there.
| * | | tor-netdoc: parse2: export NetdocSigned traitIan Jackson2025-10-151-1/+1
| | | | | | | | | | | | | | | | This seems to have been overlooked.
* | | | Merge branch 'flow-ctrl-limits' into 'main'David Goulet2025-10-154-82/+78
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | tor-proto: Relax XON/XOFF receive limits See merge request tpo/core/arti!3360
| * | | | tor-proto: update unit testSteven Engler2025-10-141-27/+24
| | | | |
| * | | | tor-proto: relax XON limitsSteven Engler2025-10-141-3/+13
| | | | |
| * | | | tor-proto: remove `StreamEndpointType`Steven Engler2025-10-143-31/+12
| | | | |
| * | | | tor-proto: relax XOFF limitsSteven Engler2025-10-141-22/+30
| | | | |
| * | | | tor-proto: add derives for `CellCount`Steven Engler2025-10-141-1/+1
| | | | |
* | | | | tor-dirserver: Expose Arc of StoreCacheClara Engler2025-10-152-15/+15
| | | | |
* | | | | tor-dirserver: Do not lock during db queryClara Engler2025-10-151-7/+14
| | | | |
* | | | | tor-dirserver: Don't expose rusqlite::Error in PoolClara Engler2025-10-153-11/+28
| | | | |
* | | | | tor-dirserver: Fix rustdoc commentClara Engler2025-10-151-3/+3
| | | | |
* | | | | tor-dirserver: Some clippy fixesClara Engler2025-10-154-3/+19
| | | | |
* | | | | tor-dirserver: Remove unsafe unreachableClara Engler2025-10-151-3/+3
| | | | |
* | | | | tor-dirserver: Remove due TODOClara Engler2025-10-151-4/+0
| | | | |
* | | | | tor-dirserver: Improve the error situationClara Engler2025-10-153-140/+140
| | | | |
* | | | | tor-dirserver: Create database moduleClara Engler2025-10-153-88/+98
| | | | | | | | | | | | | | | | | | | | | | | | | This commit renames the schema module to the database module in order to perform better error handling while redesigning the API.
* | | | | tor-dirserver: Remove unused importsClara Engler2025-10-152-9/+0
| | | | |
* | | | | tor-dirserver: Store endpoint paths in `&str`Clara Engler2025-10-151-11/+34
| | | | |
* | | | | tor-dirserver: Get rid of the poor buildersClara Engler2025-10-153-138/+20
| | | | |
* | | | | tor-dirserver: Move StoreCache into own moduleClara Engler2025-10-152-151/+178
|/ / / /
* | | | Merge branch 'rm-allow' into 'main'Ian Jackson2025-10-141-1/+0
|\ \ \ \ | |/ / / |/| | | | | | | | | | | proto: Remove an allow that is no longer needed See merge request tpo/core/arti!3356
| * | | proto: Remove an allow that is no longer neededGabriela Moldovan2025-10-141-1/+0
| | | |
* | | | Merge branch 'celltypes' into 'main'gabi-2502025-10-1410-11/+13
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | proto: Move celltypes out of client See merge request tpo/core/arti!3355
| * | | | proto: Move celltypes out of clientGabriela Moldovan2025-10-1310-11/+13
| |/ / / | | | | | | | | | | | | | | | | Some of these are relay-specific, so it makes more sense to pull this into a top-level module.
* | | | Merge branch 'unique-id' into 'main'David Goulet2025-10-142-19/+30
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | proto: Stop using tunnel IDs in relay reactor. See merge request tpo/core/arti!3353
| * | | | proto: Stop using tunnel IDs in relay reactor.Gabriela Moldovan2025-10-132-19/+30
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using a tunnel ID here doesn't make much sense right now, because we don't yet support exit-side conflux (and when we will, it's unclear whether the concept of "tunnel" will be applicable, especially if we refactor things such that multi-path circuits are handled without a ConfluxSet-like type like we have for clients). This change forces us to stop using the client-specific `unwrap_or_shutdown` (because this macro expects `self` to have a tunnel ID), but IMO that is okay.
* / / / proto: Use a small vec for the hop list.Gabriela Moldovan2025-10-131-1/+7
|/ / / | | | | | | | | | | | | We can optimize for the general (N <= 3) case, and avoid a heap allocation.
* | | tor-netdoc: Don't repr(transparent)Ian Jackson2025-10-091-2/+0
| | | | | | | | | | | | | | | We don't really need this and it raises questions, for example https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/3337#note_3271871
* | | tor-netdoc: Replace NdaSystemTimeDeprecatedSyntax with Ios8601TimeSpIan Jackson2025-10-091-4/+5
| | | | | | | | | | | | | | | Previously we needed this separate type because Ios8601TimeSp is FromStr which prevented a correct ItemArgumentParseable impl.
* | | tor-netdoc: Expose the field in time wrappersIan Jackson2025-10-091-2/+4
| | |