<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdoc/src/doc/netstatus/dir_source.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-06-24T12:24:30Z</updated>
<entry>
<title>tor-netdoc: Replace string slices with str::get() in doc (fmt)</title>
<updated>2026-06-24T12:24:30Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-06-24T12:24:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=648117f59cd083736d7055e2399d87034bd47f11'/>
<id>urn:sha1:648117f59cd083736d7055e2399d87034bd47f11</id>
<content type='text'>
No functional change, just reformatting.
</content>
</entry>
<entry>
<title>tor-netdoc: Replace string slices with str::get() in doc</title>
<updated>2026-06-24T12:22:30Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-06-24T12:22:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9587e70a6f8155f15dc454a1d70d14d1fd774382'/>
<id>urn:sha1:9587e70a6f8155f15dc454a1d70d14d1fd774382</id>
<content type='text'>
This commit replaces the use of string slices with str::get() in all
document related code.

While this is not a perfect replacement for it, the relevant parts in
the code heavily depend upon the byte offsets returned by the low level
(legacy) parser where changing it would lead to a very big refactoring.

Nonetheless, this approach is better because returning a bug is better
than crashing.
</content>
</entry>
<entry>
<title>everywhere: Add #[allow(clippy::string_slice)]</title>
<updated>2026-06-09T16:02:36Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-06-09T16:00:38Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d0af4abbd7b371f1eade609202a730cd9a1c21d3'/>
<id>urn:sha1:d0af4abbd7b371f1eade609202a730cd9a1c21d3</id>
<content type='text'>
This commit adds #[allow(clippy::string_slice)] to all functions in the
code where string slices are used, alongside a TODO comment.

We do this add the function header to have it consistent, as things like
expression based allow's are still experimental.
</content>
</entry>
<entry>
<title>tor-netdoc: Un-gate features impls in doc/netstatus/dir_source.rs (rewrap)</title>
<updated>2026-04-28T13:58:19Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-04-28T11:59:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=df08d15fdc8cfaf4e7ca0c0d0358ffef82583556'/>
<id>urn:sha1:df08d15fdc8cfaf4e7ca0c0d0358ffef82583556</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: Un-gate features impls in doc/netstatus/dir_source.rs</title>
<updated>2026-04-28T13:58:19Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-04-28T11:51:46Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a2bf074c4756660f202abeb2d55aa62be76b2e31'/>
<id>urn:sha1:a2bf074c4756660f202abeb2d55aa62be76b2e31</id>
<content type='text'>
There are no outstanding TODOs here.
</content>
</entry>
<entry>
<title>tor-netdoc: consensus authority section: ConsensusAuthoritySection</title>
<updated>2026-04-27T15:49:05Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-04-15T14:26:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=221c0bf0c7f041fc84c60c8a844fac34da7d5fe5'/>
<id>urn:sha1:221c0bf0c7f041fc84c60c8a844fac34da7d5fe5</id>
<content type='text'>
Replace poc code with new ConsensusAuthoritySection.
This is an entirely new parsing approach.

Key differences:

 * We parse the arguments to dir-source, which poc didn't.

 * We don't clone the input and fully parse the first item; instead,
   we dismantle the dir-source line ad-hoc to determine the item type.

 * Rather than a Vec of Enums, we parse into two Vecs
   of the different entry types.

The few lines that aren't rewritten show up as moved in
  git show  --color-moved --color-moved-ws=allow-indentation-change
but I suggest reviewing the new implementation de novo.
</content>
</entry>
<entry>
<title>tor-netdoc: consensus authority section: SupersededAuthorityKey</title>
<updated>2026-04-27T15:49:05Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-04-15T14:25:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fe9565b7f290e52092bb232e87f3c6b488302f50'/>
<id>urn:sha1:fe9565b7f290e52092bb232e87f3c6b488302f50</id>
<content type='text'>
This is the type corresponding to a "superseded authority key entry",
which is a single dir-source line with a weird nickname.
</content>
</entry>
<entry>
<title>tor-netdoc: DirSource: move to new dir_source module</title>
<updated>2026-04-27T15:49:05Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-04-21T11:53:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b85b49debd464ad1bea849bbaeb026b1e8b7b453'/>
<id>urn:sha1:b85b49debd464ad1bea849bbaeb026b1e8b7b453</id>
<content type='text'>
This is going to handle the bizarre `-legacy` nickname encoding for
superseded authority keys.  That's going to be a fair amount of code,
some derived from DirSource.  Make a module for it all.

We're going to take a different approach that in poc.  So there's
going to be all-new code and then the poc version will be deleted.
They don't resemble each other very much.

In this commit: just code motion, and the creation of the new module
with associated doc comment.  Review with --color-moved.
</content>
</entry>
</feed>
