aboutsummaryrefslogtreecommitdiff
path: root/crates/tor-keymgr/src/key_specifier
Commit message (Collapse)AuthorAgeFilesLines
...
* tor-keymgr: Fix typosgabi-2502024-01-081-3/+3
|
* KeyPathInfo: Add role fieldIan Jackson2024-01-041-2/+16
| | | | This *is* the spec name.
* KeySpecifier d-a macro: Populate extra_infoIan Jackson2024-01-041-0/+13
| | | | Finishes arti#1151 item 10.
* KeySpecifier d-a macro: Use dyn for describingIan Jackson2024-01-041-23/+75
| | | | This also passes the information we'll need to populate extra_info.
* KeySpecifier d-a macro: Mnaully wrap two long linesIan Jackson2024-01-041-2/+6
|
* KeySpecifier d-a macro: Use doc-hidden re-exportsIan Jackson2024-01-041-8/+6
|
* KeySpecifier d-a macro: Name result by whole pathIan Jackson2024-01-041-2/+2
| | | | This will make the macro work if call sites rebind Result.
* KeySpecifier d-a macro: Use derive-adhoc's pasting featureIan Jackson2024-01-041-6/+4
| | | | | The KeyInfoExtractor impl is still misindented but we'll change that when we replace it.
* KeySpecifier d-a macro: Use dyn for parsingIan Jackson2024-01-041-91/+181
| | | | | | | | | | | Now the only place that knows how to do all this is the one place in the macro. The indentation is -4 compared to previously, because we're going to remove the wrapping with paste::paste! later. It's convenient to do this reindent now, while we're rewriting it. arti#1151 item 5.
* KeyPathError::PatternNotMatched: Remove pattern from errorIan Jackson2024-01-041-1/+1
| | | | | | | | | This can only happen if we tried to parse an ArtiPath as the wrong kind of KeySpecifier, which shouldn't happen very often. If it does, the pattern isn't that interesting. Which is just as well, since we're about to make it a bit harder to obtain it in the place where this error is going to be constructed.
* KeySpecifier d-a macro: Do not produce fn new()Ian Jackson2024-01-041-15/+1
| | | | | | Where we wanted this, use derive_more::Constructor isntead. arti#1151 item 6.
* KeySpecifier d-a macro: Say what we produce, in the docsIan Jackson2024-01-041-1/+17
|
* KeySpecifier: Make KeySpecifierPattern a traitIan Jackson2024-01-041-10/+3
| | | | | | So now .arti_pattern() is a trait method. arti#1151 item 3.
* KeySpecifier d-a macro: Abolish prefix fnsIan Jackson2024-01-041-41/+0
| | | | | | | | arti_prefix is no longer used. Abolish prefix too. arti#1151 item 7. Closes #1147.
* KeySpecifier d-a macro: Introduce SomeSpecifierPattern and use dynIan Jackson2024-01-041-34/+57
| | | | | | | | This is a better API. The implementation has less monomorphisation. arti#1151 item 2 and the patterns part of 4. Closes #1126.
* KeySpecifier d-a macro: Use dyn for arti_pathIan Jackson2024-01-041-11/+153
| | | | | | | | | This reduces monomorphisation. arti#1151 item 4. The commentary reflects a decision not to do arti#1151 item 9 (using fmt signature for to_component) at this time.
* KeySpecifier d-a macro: Move to its own moduleIan Jackson2024-01-041-0/+329
This is going to expand and gain private helper methods.