| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | tor-linkspec: Provide HasRelayIds::has_any_relay_id_from (fmt) | Ian Jackson | 2023-08-29 | 1 | -3/+3 |
| | | | | | Worsify formatting as demanded by rustfmt. | ||||
| * | tor-linkspec: Provide HasRelayIds::has_any_relay_id_from | Ian Jackson | 2023-08-29 | 1 | -0/+67 |
| | | | | | | This seems logically necessary, and I want to use it in intro point selection. | ||||
| * | linkspec: Derive Clone and Copy for VerbatimLinkSpecCircTarget. | Nick Mathewson | 2023-08-24 | 1 | -0/+1 |
| | | |||||
| * | Run maint/add_warning to add lint block everywhere | Ian Jackson | 2023-08-23 | 9 | -0/+9 |
| | | |||||
| * | Lower linkspec list parsing into new tor-linkspec method. | Nick Mathewson | 2023-08-22 | 1 | -1/+20 |
| | | |||||
| * | Run add_warnings on all files. | Nick Mathewson | 2023-08-04 | 1 | -2/+2 |
| | | |||||
| * | tor-linkspec: impl AsRef<str> for PtTransportName | Ian Jackson | 2023-07-20 | 1 | -0/+6 |
| | | |||||
| * | Run maint/add_warning to actually apply new lint allows | Ian Jackson | 2023-07-10 | 10 | -0/+10 |
| | | |||||
| * | Fix new "useless_vec" warning from clippy +nightly | Ian Jackson | 2023-07-10 | 1 | -1/+1 |
| | | | | | | | | | | | | Explanation at https://rust-lang.github.io/rust-clippy/master/index.html#/useless_vec This is the non-tests subset of the same-named commmit in !1388, (recreated by hand by me, and then checked against that commit; I stole the commit message from Nick's.) This should be uncontroversial I think. | ||||
| * | Merge branch 'allow_missing_panics' into 'main' | Ian Jackson | 2023-07-07 | 1 | -1/+0 |
| |\ | | | | | | | | | | | | | add_warning: Tolerate clippy::missing_panics_doc Closes #950 See merge request tpo/core/arti!1380 | ||||
| | * | Run add_warning to remove `missing_panics_doc` deny. | Nick Mathewson | 2023-07-06 | 1 | -1/+0 |
| | | | | | | | | | Closes #950. | ||||
| * | | Merge branch 'clippy-nightly-20230703' into 'main' | Nick Mathewson | 2023-07-07 | 1 | -2/+2 |
| |\ \ | |/ |/| | | | | | | | | | Fix various warnings from clippy nightly Closes #943 See merge request tpo/core/arti!1369 | ||||
| | * | Avoid matches!(x, None), matches!(x, Ok(_)) | Nick Mathewson | 2023-07-06 | 1 | -2/+2 |
| | | | | | | | | | This appeases clippy-nightly. | ||||
| * | | Additional documentation around bridges/PT configuration | Nick Mathewson | 2023-07-03 | 1 | -4/+7 |
| |/ | | | | | | | This tries to flesh out some of the details for users who may be new to bridges and PTs. Closes #706. | ||||
| * | lints: Run maint/add_warning to actually apply new lints | Ian Jackson | 2023-06-21 | 1 | -0/+2 |
| | | |||||
| * | linkspec: cleanup usage; change std::fmt to fmt. | Nick Mathewson | 2023-06-12 | 1 | -6/+6 |
| | | |||||
| * | RelayId: Display the ID type on redacted identities. | Nick Mathewson | 2023-06-09 | 2 | -4/+3 |
| | | | | | | Formerly we would display just the first characters of the identity, without telling you what kind of ID it was. | ||||
| * | linkspec: implement Display/Redacted on RelayIds | Nick Mathewson | 2023-06-09 | 1 | -0/+22 |
| | | |||||
| * | linkspec: Implement HasRelayIds::display_relay_ids(). | Nick Mathewson | 2023-06-09 | 1 | -6/+49 |
| | | |||||
| * | linkspec::verbatim: wrapper to give a CircTarget a new set of LinkSpecs | Nick Mathewson | 2023-05-11 | 2 | -0/+111 |
| | | |||||
| * | Add linkspec::decode to convert linkspecs to an OwnedChanTarget | Nick Mathewson | 2023-05-11 | 2 | -0/+186 |
| | | | | | | | | Relays and onion service services/clients will both need this. I'm marking this experimental for now; we should stabilize it before we release onion services. | ||||
| * | Change CircTarget::linkspecs() to return an encoded list. | Nick Mathewson | 2023-05-10 | 2 | -4/+15 |
| | | | | | | | | | If we didn't do this, we would need to transfrom `EncodedLinkSpec`s into a `LinkSpec::Unrecognized`, which is not semantically right. What's more, every user of this API wants to consume encoded link specifiers, so encoding them early saves a little effort. | ||||
| * | linkspec: Make LinkSpecType public. | Nick Mathewson | 2023-05-10 | 2 | -31/+39 |
| | | | | | | This lets us check the type of an `EncodedLinkSpec` as well, and lets us remove an interface that took a raw u8. | ||||
| * | linkspec: define conversion functions for EncodedLinkSpec | Nick Mathewson | 2023-05-10 | 1 | -48/+79 |
| | | | | | | | This commit adds functions to convert between LinkSpec and EncodedLinkSpec, and refactors their read/write implementations a bit to avoid code duplication. | ||||
| * | Rename UnparsedLinkSpec => EncodedLinkSpec | Nick Mathewson | 2023-05-10 | 2 | -13/+13 |
| | | |||||
| * | test_linkspecs: tidy order of linkspecs | Nick Mathewson | 2023-05-10 | 1 | -11/+11 |
| | | | | | This is pure code movement. | ||||
| * | Move responsibility for linkspec sorting to CircTarget. | Nick Mathewson | 2023-05-10 | 1 | -2/+13 |
| | | | | | | | This change is necessary so that we can build Extend2 messages that have their LinkSpecs appear in a verbatim order as provided in an INTRODUCE2 message or in a HS descriptor. | ||||
| * | RelayId: implement id_type and as_bytes in terms of RelayIdRef | Ian Jackson | 2023-04-27 | 1 | -8/+2 |
| | | | | | This eliminates some duplicated code. | ||||
| * | RelayIdRef: as_bytes: Doesn't borrow from self | Ian Jackson | 2023-04-27 | 1 | -1/+1 |
| | | | | | | | | This borrows from the contained key, but not from self. This will allow us to implement RelayId::as_bytes in terms of RelayIdRef::as_bytes. | ||||
| * | RelayId: impl Display in terms of RelayIdRef | Ian Jackson | 2023-04-27 | 1 | -3/+9 |
| | | | | | This removes a duplicated copy of the format strings. | ||||
| * | linkspec: Add a missing ; in tests. | Nick Mathewson | 2023-04-06 | 1 | -1/+1 |
| | | |||||
| * | tor-linkspec: Add a constructor for UnparsedLinkSpec | Nick Mathewson | 2023-03-06 | 1 | -0/+10 |
| | | |||||
| * | tor-linkspec: New UnparsedLinkspec type. | Nick Mathewson | 2023-02-17 | 2 | -1/+81 |
| | | | | | | | | | | | Unlike linkspec, this doesn't validate the actual contents of the specifiers. We'll use this so we can handle the linkspec list for an introduction point in an HsDesc, and just pass it on when constructing our circuits. I haven't added any accessor or constructor functions, because I don't expect to need them. | ||||
| * | tor-linkspec: LinkSpec parsing: use read_nested_u8len (fmt) | Ian Jackson | 2023-02-06 | 1 | -13/+15 |
| | | |||||
| * | tor-linkspec: LinkSpec parsing: use read_nested_u8len | Ian Jackson | 2023-02-06 | 1 | -21/+5 |
| | | | | | This eliminates hardcoded length values. | ||||
| * | Allow clippy::unchecked_duration_subtraction in tests | Nick Mathewson | 2023-01-27 | 7 | -0/+7 |
| | | | | | | 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 'ya-lint' into 'main' | eta | 2023-01-06 | 1 | -1/+4 |
| |\ | | | | | | | | | tor-linkspec: Fix an unused lint See merge request tpo/core/arti!935 | ||||
| | * | tor-linkspec: Fix an unused lint | Ian Jackson | 2022-12-12 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise: cargo +stable clippy -p tor-proto --all-features --all-targets Produces: warning: unused import: `PtTargetAddr` --> crates/tor-linkspec/src/traits.rs:9:28 | 9 | use crate::{ChannelMethod, PtTargetAddr, RelayIdRef, RelayIdType, RelayIdTypeIter}; | ^^^^^^^^^^^^ | ||||
| * | | test lint blocks: Add many many automatically | Ian Jackson | 2022-12-12 | 6 | -0/+48 |
| |/ | | | | | This is precisely the result of running the rune in maint/adhoc-add-lint-blocks. | ||||
| * | bridge config: Rename accessors | Ian Jackson | 2022-11-30 | 1 | -2/+2 |
| | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/904#note_2858480 | ||||
| * | BridgeAddr tests: dedupe slightly | Ian Jackson | 2022-11-30 | 1 | -12/+11 |
| | | |||||
| * | Separate BridgeAddr and PtTargetAddr | Ian Jackson | 2022-11-30 | 3 | -38/+212 |
| | | | | | | | | | | As per https://gitlab.torproject.org/tpo/core/arti/-/issues/668#note_2858220 This commit is difficult to split up. The innards of BridgeAddr and PtTargetAddr are still a bit entangled. | ||||
| * | Merge branch 'more-linkspec-tests' into 'main' | Nick Mathewson | 2022-11-29 | 3 | -15/+159 |
| |\ | | | | | | | | | Add tests for a bunch of code in tor-linkspec See merge request tpo/core/arti!867 | ||||
| | * | Fix up compatibility issues between linkspec tests and other patches | Nick Mathewson | 2022-11-28 | 1 | -5/+5 |
| | | | |||||
| | * | linkspec: Add some tests for ChannelMethod | Nick Mathewson | 2022-11-28 | 1 | -0/+84 |
| | | | |||||
| | * | linkspec: Tests for PtTargetSettings | Nick Mathewson | 2022-11-28 | 1 | -0/+46 |
| | | | |||||
| | * | PtTransportName: Remove unused accessors. | Nick Mathewson | 2022-11-28 | 1 | -13/+0 |
| | | | |||||
| | * | linkspec: Add tests for has_any_identity. | Nick Mathewson | 2022-11-28 | 1 | -0/+7 |
| | | | |||||
| | * | linkspec: Add test for lookup on no-ids. | Nick Mathewson | 2022-11-28 | 1 | -0/+1 |
| | | | |||||
