| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | tor-guardmgr: Replace From impl with from_net_parameter constructor. | Gabriela Moldovan | 2024-03-26 | 1 | -2/+8 |
| | | |||||
| * | tor-guardmgr: Implement From<BoundedInt32> for VanguardMode. | Gabriela Moldovan | 2024-03-26 | 1 | -0/+13 |
| | | | | | | We'll need this to convert the `vanguard_enabled` and `vanguard_hs_service` net params to a `VanguardMode. | ||||
| * | tor-circmgr: Unconditionally define VanguardMode. | Gabriela Moldovan | 2024-03-20 | 1 | -0/+32 |
| | | |||||
| * | Run maint/add_warning. | Nick Mathewson | 2024-03-13 | 1 | -0/+1 |
| | | |||||
| * | tor-circmgr: Give CircMgr a VanguardMgr. | Gabriela Moldovan | 2024-03-11 | 1 | -0/+4 |
| | | | | | Closes #1277 | ||||
| * | tor-guardmgr: Add vanguards API skeleton. | Gabriela Moldovan | 2024-03-11 | 1 | -0/+2 |
| | | | | | Part of #1275 | ||||
| * | Fix typos in doc comments | Tobias Stoeckmann | 2024-03-06 | 1 | -1/+1 |
| | | |||||
| * | deny clippy::unchecked_duration_subtraction | trinity-1686a | 2024-02-29 | 1 | -0/+1 |
| | | |||||
| * | educe: Use std's default for enums where default variant is unit | Ian Jackson | 2024-02-12 | 1 | -7/+4 |
| | | | | | | | | | | | | | | Since Rust 1.66, std's default works properly for enums, provided that the default variant is a unit. Review all uses of `#[educe(default)]` on enums and replace them with std where possible, which is most of them. In 1.66 and later, std's `#[derive(Default)]` doesn't infer any generic bounds on the derived impl, where it's an enum - since the unit variant can always be constructed. So this change doesn't add any generic bounds and is not API-visible. | ||||
| * | guardmgr: Stop using now-needless retain_mut crate. | Nick Mathewson | 2023-11-30 | 1 | -6/+1 |
| | | |||||
| * | oneshot: Use veneer in tor-ptmgr | Ian Jackson | 2023-10-11 | 1 | -1/+4 |
| | | |||||
| * | Add cognitive-complexity exceptions for clippy. | Nick Mathewson | 2023-09-05 | 1 | -0/+1 |
| | | | | | I have no idea why these became necessary. | ||||
| * | Run maint/add_warning to add lint block everywhere | Ian Jackson | 2023-08-23 | 1 | -0/+1 |
| | | |||||
| * | guardmgr: Fix a dead-code warning when built without bridge support. | Nick Mathewson | 2023-08-16 | 1 | -0/+1 |
| | | |||||
| * | Run add_warnings on all files. | Nick Mathewson | 2023-08-04 | 1 | -2/+2 |
| | | |||||
| * | Better report for any recurrence of bug #638. | Nick Mathewson | 2023-07-13 | 1 | -0/+14 |
| | | |||||
| * | Run maint/add_warning to actually apply new lint allows | Ian Jackson | 2023-07-10 | 1 | -0/+2 |
| | | |||||
| * | Run add_warning to remove `missing_panics_doc` deny. | Nick Mathewson | 2023-07-06 | 1 | -1/+0 |
| | | | | | Closes #950. | ||||
| * | lints: Run maint/add_warning to actually apply new lints | Ian Jackson | 2023-06-21 | 1 | -0/+2 |
| | | |||||
| * | 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. | ||||
| * | Disable clippy::unlinlined-format-args | Nick Mathewson | 2023-01-27 | 1 | -0/+1 |
| | | | | | | | | | This warning kind of snuck up on us! (See #748) For now, let's disable it. (I've cleaned it up in a couple of examples, since those are meant to be more idiomatic and user-facing.) Closes #748. | ||||
| * | Merge branch 'test-lints' into 'main' | eta | 2023-01-06 | 1 | -0/+8 |
| |\ | | | | | | | | | Add test lint blocks to all "mod test" See merge request tpo/core/arti!937 | ||||
| | * | test lint blocks: Add many many automatically | Ian Jackson | 2022-12-12 | 1 | -0/+8 |
| | | | | | | | | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks. | ||||
| * | | Remove allow(unreachable_pub) from tor-guardmgr/src/lib.rs | Neel Chauhan | 2022-12-16 | 1 | -5/+0 |
| |/ | | | | Closes #589 | ||||
| * | Rename for_circuit_usage => as_relay_with_desc | Nick Mathewson | 2022-11-30 | 1 | -1/+1 |
| | | |||||
| * | guardmgr: Remove now-unneeded #[allow(unnecessary_wraps)] | Nick Mathewson | 2022-11-29 | 1 | -1/+0 |
| | | |||||
| * | Merge branch 'reconfig-bridges-bad' into 'main' | Nick Mathewson | 2022-11-27 | 1 | -7/+14 |
| |\ | | | | | | | | | | | | | Require state ownership when using bridges Closes #612 See merge request tpo/core/arti!889 | ||||
| | * | tor-guardmgr: rustfmt for recent changes | Ian Jackson | 2022-11-24 | 1 | -1/+1 |
| | | | | | | | | | Left unsquashed for ease of review | ||||
| | * | tor-guardmgr: NoLock error: add TODO for trying to get lock | Ian Jackson | 2022-11-24 | 1 | -0/+2 |
| | | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/889#note_2856874 | ||||
| | * | tor-guardmgr: Refuse to configure bridges if we don't have the lock | Ian Jackson | 2022-11-23 | 1 | -0/+3 |
| | | | | | | | | | Fixes #612 | ||||
| | * | tor-guardmgr: make replace_bridge_config fallible | Ian Jackson | 2022-11-23 | 1 | -7/+8 |
| | | | | | | | | | | | | | The error type needs to be convertible to GuardMgrError and also to ReconfigureError. Neither of those is right, so we need a new error type. | ||||
| | * | tor-guardmgr: Replace a let _ignore with a typed version | Ian Jackson | 2022-11-23 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `let _ignore =` isn't great because if the function called is currently infallible, but becomes fallible, it suppresses the detection of the error check. A better pattern is to specify the type of the ignored value. I'm about to do precisely this, here. I did a git-grep and `let _ignore =` seems very common. Let's not deal with all those now. | ||||
| * | | Merge branch 'bridge-config-arc' into 'main' | Nick Mathewson | 2022-11-23 | 1 | -2/+1 |
| |\ \ | | | | | | | | | | | | | | | | | | | Make BridgeConfig be Arc, so no Arc<BridgeConfig> Closes #635 See merge request tpo/core/arti!885 | ||||
| | * | | BridgeConfig: Replace all Arc<BridgeConfig> with BridgeConfig | Ian Jackson | 2022-11-22 | 1 | -2/+1 |
| | | | | | | | | | | | | | BridgeConfig is itself an Arc now, so these are redundant. | ||||
| * | | | Merge branch 'test-config' into 'main' | Ian Jackson | 2022-11-23 | 1 | -1/+1 |
| |\ \ \ | |_|/ |/| | | | | | | | | tor-guardmgr: Fix visibility of TestConfig with no features enabled See merge request tpo/core/arti!875 | ||||
| | * | | tor-guardmgr: Fix visibility of TestConfig with no features enabled | Ian Jackson | 2022-11-18 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | Without this, tor-guardmgr tests don't build when run without the crate's own testing feature enabled. | ||||
| * | | | CircMgr: retire all circuits if bridge configuration changes. | Nick Mathewson | 2022-11-22 | 1 | -7/+40 |
| | |/ |/| | | | | | Closes #650. | ||||
| * | | bridge non-support: Move dummy bridge module into own file | Ian Jackson | 2022-11-21 | 1 | -22/+2 |
| | | | | | | | | | | | A bit more stuff is going to appear here, so it's getting to be rather much for an inline module. | ||||
| * | | BridgeConfigBuilder: Introduce the struct with the dictionary repr | Ian Jackson | 2022-11-21 | 1 | -0/+10 |
| |/ | | | | | | | | | | | This struct is going to be the principal "dictionary-style" serde representation for a bridge, and the builder, making this all in keeping with our usual approach. In this commit: * Introduce the struct (defining the serialisation) * Provide the setters (defining the Rust API) * Add success test cases (not all of the data in which is used yet) | ||||
| * | GuardMgr: Add Instant to update(). | Nick Mathewson | 2022-11-16 | 1 | -18/+36 |
| | | | | | | | | | | | | This lets us avoid calling `Instant::now()`, when `Runtime::now()` is what we want. Unfortunately, there are a bunch of functions that called `update()` that needed to change. Fortunately, none of the changes were very complicated. Fixes a `TODO pt-client` comment. | ||||
| * | GuardMgr: Rename "now" arg in update() to "wallclock" | Nick Mathewson | 2022-11-16 | 1 | -10/+10 |
| | | | | | | | | I'm about to add an `Instant` argument. By convention, when we have both, we call the Instant "now". This commit is a pure renaming. | ||||
| * | guardmgr: Document that guardmgr only holds a Weak | Ian Jackson | 2022-11-15 | 1 | -0/+5 |
| | | |||||
| * | Merge branch 'make_bridges_work' into 'main' | Nick Mathewson | 2022-11-14 | 1 | -0/+1 |
| |\ | | | | | | | | | Bugfix: preserve active_set when loading guards See merge request tpo/core/arti!848 | ||||
| | * | Preserve active_set when loading guards. | Nick Mathewson | 2022-11-14 | 1 | -0/+1 |
| | | | |||||
| * | | Merge branch 'report_missing_descs' into 'main' | Nick Mathewson | 2022-11-14 | 1 | -0/+28 |
| |\| | | | | | | | | | | | | | GuardMgr: Update desired bridge descs from 'update' function. Closes #622 See merge request tpo/core/arti!847 | ||||
| | * | GuardMgr: Update desired bridge descs from 'update' function. | Nick Mathewson | 2022-11-14 | 1 | -0/+28 |
| | | | | | | | | | | | There are some new TODOs here for us to think about, but I think this will give us something to test. | ||||
| * | | Merge branch 'guardmgr' into 'main' | Ian Jackson | 2022-11-14 | 1 | -0/+2 |
| |\ \ | |/ |/| | | | | | Move guardmgr creation to arti-client, rather than within circmgr See merge request tpo/core/arti!850 | ||||
| | * | Document Clone semantics of GuardMgr and DirMgr | Ian Jackson | 2022-11-11 | 1 | -0/+1 |
| | | | |||||
| | * | cfg-ify an import | Ian Jackson | 2022-11-11 | 1 | -0/+1 |
| | | | |||||
| * | | GuardMgr: Downgrade a pt-client TODO about an internal API | Nick Mathewson | 2022-11-10 | 1 | -2/+4 |
| | | | |||||
