| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | RelayFlags: Use RelayFlag enum variant names everywhere | Ian Jackson | 2025-11-18 | 1 | -10/+10 |
| | | | | | | | | Abolish the constants with the transitional names. This also abolishes the controversial name `H_S_DIR`, which Rust case transformation rules generated from `HSDir`. | ||||
| * | RelayFlags: Use the singular RelayFlag for naming individual flags | Ian Jackson | 2025-11-18 | 1 | -11/+11 |
| | | | | | | | | | | | | | | | We're going to separate RelayFlag from RelayFlags. We could continue to provide a bunch of constant values for RelayFlags, for each individual type, but that would involve an ad-hoc derive, and would still be a bit of an unusual API. Instead, we're going to make ``RelayFlag` a normal enum. In this commit, we change everyone to refer to it by its singular name. Hopefully separating out this bulk change makes both this, and the core commit, easier to review. | ||||
| * | tor-netdoc: Remove the RelayFlags type alias in netstatus | Ian Jackson | 2025-11-18 | 1 | -2/+2 |
| | | | | | I would do `#[deprecated]` but empirically that has no effect... | ||||
| * | tor-netdoc: Rename RelayFlags elements for regularity vs spec | Ian Jackson | 2025-11-18 | 1 | -2/+2 |
| | | | | | | Add underscores so that the spec keywords and the flag constants correspond (according to `paste`'s case-changing rules). | ||||
| * | Fix name of clippy lint to unchecked_time_subtraction (2) | Ian Jackson | 2025-11-06 | 1 | -1/+1 |
| | | | | | Run maint/add_warning | ||||
| * | tor-netdoc: Apply much rustfmt churn | Ian Jackson | 2025-08-26 | 1 | -8/+3 |
| | | |||||
| * | tor-netdoc: Remove generics from Consensus and its contents | Ian Jackson | 2025-08-26 | 1 | -9/+9 |
| | | |||||
| * | tor-netdoc: netstatus: Move everything variety-specific | Ian Jackson | 2025-08-26 | 1 | -10/+10 |
| | | | | | | | | | | 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-netdir: Allow access to the `ConsensusBuilder` when building test ↵ | Gabriela Moldovan | 2024-09-09 | 1 | -1/+6 |
| | | | | | netdirs (fmt). | ||||
| * | tor-netdir: Allow access to the `ConsensusBuilder` when building test netdirs. | Gabriela Moldovan | 2024-09-09 | 1 | -9/+9 |
| | | | | | | This allows us to set SRVs for example (needed because by default, the test `NetDir` is built from a consensus that doesn't contain any SRVs). | ||||
| * | Run maint/add_warning. | Nick Mathewson | 2024-03-13 | 1 | -0/+1 |
| | | |||||
| * | netdir: flag every testnet relay as Fast and Stable | Nick Mathewson | 2024-01-16 | 1 | -1/+5 |
| | | | | | | As we enforce these flags in more places, it will be handy for our default network to have them for its relays. | ||||
| * | Run maint/add_warning to add lint block everywhere | Ian Jackson | 2023-08-23 | 1 | -0/+1 |
| | | |||||
| * | Add country codes to relays inside a NetDir | eta | 2023-07-13 | 1 | -0/+40 |
| | | | | | | | | | | | | | - When the `geoip` feature flag of `tor-netdir` is enabled, perform GeoIP lookups for all relays added to the directory and add the resulting country code to the `Relay` struct. - The GeoIP database is provided in a new `PartialNetDir::new_with_geoip` constructor. - A new trait was also added to `tor-linkspec`, `HasCountryCode`, to enable getting this data out from other crates. Part of onionmasq#47. | ||||
| * | Run maint/add_warning to actually apply new lint allows | Ian Jackson | 2023-07-10 | 1 | -0/+1 |
| | | |||||
| * | Remove explicit allows for missing_panics_docs. | Nick Mathewson | 2023-07-06 | 1 | -1/+0 |
| | | | | | These are no longer needed. | ||||
| * | tor-netdir: Update tests to parse the descriptor, make test consensus ↵ | Gabriela Moldovan | 2023-05-03 | 1 | -8/+17 |
| | | | | | | | lifetime configurable. Signed-off-by: Gabriela Moldovan <[email protected]> | ||||
| * | tor-netdir: testnet: Make all non-guard non-exits be hsdirs | Ian Jackson | 2023-04-05 | 1 | -1/+1 |
| | | |||||
| * | Allow clippy::unchecked_duration_subtraction in tests | Nick Mathewson | 2023-01-27 | 1 | -0/+1 |
| | | | | | | This panics on error, and we're fine with a panic on misbehavior in tests. | ||||
| * | test lint blocks: Add many many automatically | Ian Jackson | 2022-12-12 | 1 | -0/+9 |
| | | | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks. | ||||
| * | fix clippy::needless_borrow | trinity-1686a | 2022-09-10 | 1 | -1/+1 |
| | | |||||
| * | tor-netdir: testnet: construct_custom_netdir_with_params: Fix doc | Ian Jackson | 2022-08-17 | 1 | -1/+2 |
| | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/657#note_2826168 | ||||
| * | tor-netdir, testnet: Provide construct_custom_netdir_with_params | Ian Jackson | 2022-08-16 | 1 | -2/+16 |
| | | | | | | We're going to want this for testing netdirs with padding parameters that diff ere from the spec's default. | ||||
| * | tor-netdir: testnet: Make construct_netdir infallible | Ian Jackson | 2022-06-13 | 1 | -2/+2 |
| | | | | | | This is a *lot* of unwraps. The function takes no parameters and is used only for testing. It ought to be infallible. | ||||
| * | Remove allow(clippy::disallowed_methods) lint. | Nick Mathewson | 2022-03-30 | 1 | -1/+0 |
| | | |||||
| * | use wallclock where possible in tests | trinity-1686a | 2022-02-26 | 1 | -0/+1 |
| | | |||||
| * | tor-netdir: Split testnet errors into a new type | Nick Mathewson | 2022-02-15 | 1 | -6/+9 |
| | | | | | | There's no reason to have the test-network-construction code share an error enum with the main netdir code. | ||||
| * | Merge remote-tracking branch 'origin/mr/151' | Nick Mathewson | 2021-11-30 | 1 | -12/+0 |
| |\ | |||||
| | * | Remove unused tap_onion_key and tap_key | Neel Chauhan | 2021-11-28 | 1 | -12/+0 |
| | | | |||||
| * | | add semicolons if nothing returned | Daniel Eades | 2021-11-25 | 1 | -1/+1 |
| |/ | |||||
| * | tor_netdir::testnet: Correct a documentation error. | Nick Mathewson | 2021-09-29 | 1 | -1/+1 |
| | | |||||
| * | Move all crates into a `crates` subdirectory. | Nick Mathewson | 2021-08-27 | 1 | -0/+238 |
| This will cause some pain for now, but now is really the best time to do this kind of thing. | |||||
