summaryrefslogtreecommitdiff
path: root/crates/tor-hsservice/src/nickname.rs
Commit message (Collapse)AuthorAgeFilesLines
* Run maint/add_warning.Nick Mathewson2024-03-131-0/+1
|
* tor-hsservice: nickname: Trick rustfmt into not exploding derivesIan Jackson2024-03-051-3/+2
|
* tor-hsservice: prelude: Move imports from nickname.rsIan Jackson2024-03-051-9/+1
| | | | There are none here that aren't in the prelude now.
* tor-hsservice: don't import derive_more::Display as suchIan Jackson2024-03-051-2/+2
| | | | "Display" is rather vague.
* tor-hsservice: Expose HsNickname::newIan Jackson2024-02-131-1/+1
| | | | | The non-visibility of this method seems like it must have been an oversight.
* tor-hsservice: impl state_dir::InstanceIdentity for HsNicknameIan Jackson2024-02-011-0/+10
|
* tor-persist: Make all Slugs non-empty.Gabriela Moldovan2024-01-311-9/+1
| | | | | | | | This also removes a TODO regarding adding a `Nickname` type for representing `HsClientSpecifier` and `HsNickname` (we don't need it if `Slug`s are non-empty). Prompted by https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1931#note_2990227
* tor-hsservice: Fix corner case in HsNickname FromStr impl.Gabriela Moldovan2024-01-311-3/+19
| | | | | It was previously possible to construct an `HsNickname` out of an empty string using the `FromStr` impl.
* tor-persist: Forbid slugs from starting with a hyphen.Gabriela Moldovan2024-01-311-1/+1
|
* tor-keymgr: Make ArtiPathComponent a Slug internally (fmt).Gabriela Moldovan2024-01-311-13/+2
|
* tor-hsservice: Make Slug the underlying repr of HsNickname.Gabriela Moldovan2024-01-311-19/+24
| | | | | | | We represent `HsNickname` as a `Slug` instead of an `ArtiPathComponent` (we are about to remove the latter). Part of #1092
* tor-hsservice: Downgrade a TODO HSS to TODO.Gabriela Moldovan2024-01-111-1/+1
|
* tor-keymgr: provide KeySpecifierComponentViaDisplayFromStr and use itIan Jackson2023-12-071-13/+2
| | | | Now the only manual impl is TimePeriod, which is indeed special.
* ArtiPaths: derive FromStr for ArtiPath ArtiPathComponent HsNickname (fmt)Ian Jackson2023-12-071-2/+13
| | | | Mandatory horrible formatting.
* ArtiPaths: derive FromStr for ArtiPath ArtiPathComponent HsNicknameIan Jackson2023-12-071-0/+1
|
* tor-keymgr: Introduce a KeySpecifierComponent trait.Gabriela Moldovan2023-12-051-1/+19
| | | | | | | | | Now the fields of a `DefaultKeySpecifier` no longer have to implement `Display` (they need to implement `KeySpecifierComponent`). See https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/1733#note_2966400 Closes #1127
* tor-keymgr, tor-hsservice: Run rustfmt to make derives uglierIan Jackson2023-08-231-3/+3
|
* tor-keymgr, tor-hsservice: deser for ArtiPathComponent and HsNicknameIan Jackson2023-08-231-0/+21
|
* tor-hsservice: Provide a sensible HsNicknameIan Jackson2023-08-231-0/+88