<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-linkspec/src/ids.rs, branch main</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=main</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-07-15T10:40:08Z</updated>
<entry>
<title>tor-linkspec: RelayIdType: Clarify display vs display_id</title>
<updated>2026-07-15T10:40:08Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-07-15T10:39:36Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c7c3e490d8102cfcb2071c6dee8fb93d4943da6f'/>
<id>urn:sha1:c7c3e490d8102cfcb2071c6dee8fb93d4943da6f</id>
<content type='text'>
Prompted by
  https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/4196#note_3433090
</content>
</entry>
<entry>
<title>tor-linkspec: Un-explode and tidy some derive lists</title>
<updated>2026-07-01T18:15:59Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-07-01T17:39:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a4dd2efe205883751afc96cbe23c3b33ee7dbb91'/>
<id>urn:sha1:a4dd2efe205883751afc96cbe23c3b33ee7dbb91</id>
<content type='text'>
rustfmt likes this IMO-awful layout for derives.

We can force it to let us manually break the line, if we use //,
and then it stays put.

No functional change.
</content>
</entry>
<entry>
<title>tor-linkspec: Sort out indentation in new macro template</title>
<updated>2026-07-01T18:15:59Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-07-01T17:59:11Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0e6b977e3b78a1aa43149319b397d4f104dc4498'/>
<id>urn:sha1:0e6b977e3b78a1aa43149319b397d4f104dc4498</id>
<content type='text'>
Pure whitespace change.  Review with, eg, git diff -w.
</content>
</entry>
<entry>
<title>tor-linkspec: PartialEq: use deftly, not an ad-hoc macro_rules</title>
<updated>2026-07-01T18:15:59Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-07-01T17:47:57Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b3cc43b9809fccf4616908d781864ab7882e7514'/>
<id>urn:sha1:b3cc43b9809fccf4616908d781864ab7882e7514</id>
<content type='text'>
This gets rid of the matcher, and the need to invoke it.
</content>
</entry>
<entry>
<title>tor-linkspec: PartialEq: change variable names</title>
<updated>2026-07-01T18:15:59Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-07-01T17:31:20Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=bad7d768b62d17b408b2d6bed1aa28429298475c'/>
<id>urn:sha1:bad7d768b62d17b408b2d6bed1aa28429298475c</id>
<content type='text'>
Change $var to $vname, and $type to $IDENTITY.

These are the names used in the deftly template.  This will make the
next commit almost a no-op.
</content>
</entry>
<entry>
<title>tor-linkspec: PartialEq: simplify PartialEq&lt;FooIdentity&gt; for RelayId</title>
<updated>2026-07-01T18:15:59Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-07-01T17:33:22Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=684c53e41c01f4a0355601f42e1eff9cf8840b66'/>
<id>urn:sha1:684c53e41c01f4a0355601f42e1eff9cf8840b66</id>
<content type='text'>
We can just refer to the PartialEq&lt;FooIdentity&gt; for RelayIdRef, which
is macro-generated just above, replacing this copy-pasted matches.
</content>
</entry>
<entry>
<title>tor-linkspec: Use deftly for RelayIdId and RelayIdRef impls</title>
<updated>2026-07-01T18:15:59Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-07-01T17:55:11Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=646e7a805d7a38f7fef377b0def2e38bf8368661'/>
<id>urn:sha1:646e7a805d7a38f7fef377b0def2e38bf8368661</id>
<content type='text'>
This removes quite a lot of in-detail copy-paste.

The lone `}` is being moved, bringing the code we're changing within
the scope of the template.
</content>
</entry>
<entry>
<title>tor-linkspec: Minimal deftly for RelayIdId and RelayIdRef</title>
<updated>2026-07-01T18:15:59Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-07-01T17:44:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0280e5d2ac375f54f4b52f8f892515c41750ff9e'/>
<id>urn:sha1:0280e5d2ac375f54f4b52f8f892515c41750ff9e</id>
<content type='text'>
Derive the two types.  We end up moving the display strings from
direct attributes directed to derive_more, to deftly attributes.

Indentation is rather odd now: we ought to indent the macro body.
We'll sort that out at the end.

No functional change.
</content>
</entry>
<entry>
<title>tor-linkspec: Move PartialEq impls</title>
<updated>2026-07-01T18:13:22Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-07-01T17:29:52Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=49c54cd25b1ddd9e8ca0adfb3b1469090f271a28'/>
<id>urn:sha1:49c54cd25b1ddd9e8ca0adfb3b1469090f271a28</id>
<content type='text'>
Pure code motion.  We want to move this to where a bigger macro is
going to be, so that it can be part of it.

Code motion only, review with --color-moved.
</content>
</entry>
<entry>
<title>maint: Run maint/add_warning to deny string slices</title>
<updated>2026-06-09T15:36:01Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-06-09T15:36:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9f5752a77fb57052c06ead0eeae606831f1e8e97'/>
<id>urn:sha1:9f5752a77fb57052c06ead0eeae606831f1e8e97</id>
<content type='text'>
This commit executes maint/add_warning with the just added change to
deny string slices except in tests.

I recommend auditing this by checking out the previous commit followed
by running the script yourself and then verifying that the diff is
identical to this commit.

This commit makes cargo clippy fail.  We will add exceptions in the next
commit.
</content>
</entry>
</feed>
