summaryrefslogtreecommitdiff
path: root/tor-linkspec/src/traits.rs
Commit message (Collapse)AuthorAgeFilesLines
* linkspec: Define owned variants of ChanTarget and CircTarget.Nick Mathewson2021-06-131-0/+6
|
* Fix some warnings from nightly clippyNick Mathewson2021-05-071-4/+1
|
* Fix a bunch more new clippy lints in Rust 1.51Nick Mathewson2021-03-291-3/+4
| | | | | | | | The major types are: * You implemented Into when you should have implemented From. * You sliced a slice when you didn't have to. * You said Ok(x?) when you could have said x. * You said Vec::new(); push(); push(); when you could have said vec![].
* Fix Rust-1.51 clippy warnings about acronyms in camel case.Nick Mathewson2021-03-291-1/+1
| | | | This is painful, but we shouldn't have to do it again.
* Rename Rsa{Identity,Signature} to fix clippy warning.Nick Mathewson2021-03-291-5/+5
|
* Improvements to Relay type in tor-netdir.Nick Mathewson2020-10-191-4/+14
| | | | | | | | | | | Now, a Relay is always valid. This required some changes to the API: all_relays() has to return a new UncheckedRelay type that might or might not be valid, and the functions on Relay and ChanTarget that return ed25519 identities need to return an Ed25519Identity, not an ed25519::PublicKey. This change required some new encoding/decoding/conversion functions on Ed25519Identity.
* Explain problems with APIs in linkspec::traits.Nick Mathewson2020-10-181-2/+6
|
* Mark must-resolve XXXX issues with "XXXXM3".Nick Mathewson2020-10-181-2/+2
| | | | | | | | | | "M3" is for "milestone 3" -- my target to fix the technical debt that I think will be bad if we ship even a pre-alpha with it. These aren't necessarily _all_ must-resolve, but they're all must-look-at. Closes #15
* Tests for CircTarget::linkspecs()Nick Mathewson2020-09-281-0/+89
|
* Rename some identifiers in tor-linkspec.Nick Mathewson2020-09-281-9/+9
| | | | By convention, rust accessor functions don't start with 'get'.
* Rename ExtendTarget to CircTarget.Nick Mathewson2020-09-281-2/+2
|
* Document private members in most cratesNick Mathewson2020-09-241-0/+3
|
* Sort linkspecs in the same order as tor doesNick Mathewson2020-09-171-1/+0
|
* New "linkspec" module to encapsulate info needed to connect/extend.Nick Mathewson2020-09-081-0/+40