<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-linkspec/src, branch arti-v2.5.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.5.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.5.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-06-10T17:17:33Z</updated>
<entry>
<title>hscrypto, linkspec, llcrypto: Use new redaction helpers</title>
<updated>2026-06-10T17:17:33Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-06-10T16:35:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=21ea6f773b627e1991e54422448d6731bf3df5ce'/>
<id>urn:sha1:21ea6f773b627e1991e54422448d6731bf3df5ce</id>
<content type='text'>
This eliminates some string slicing.
</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>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>
<entry>
<title>linkspec: Add serde(default) to fields in RelayIds.</title>
<updated>2026-04-28T18:56:12Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-04-28T18:56:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=12096488c74a8d21a737fe8feb2db824100b4723'/>
<id>urn:sha1:12096488c74a8d21a737fe8feb2db824100b4723</id>
<content type='text'>
With this change, we will accept serialized RelayId representations
that omit one or more keys.  This will eventually allow us to omit
absent keys when we serialize these.

This is the first stage of #2477.
</content>
</entry>
<entry>
<title>linkspec: Rename all_addrs_allowed_for_extend()</title>
<updated>2026-04-09T16:00:09Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-04-09T15:14:38Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a719962d3946b8306062b62b0f7dfce2ce2bcb4b'/>
<id>urn:sha1:a719962d3946b8306062b62b0f7dfce2ce2bcb4b</id>
<content type='text'>
Also set a better error message when validating channel target.

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>linkspec: Rename has_all_public_addresses()</title>
<updated>2026-03-30T15:00:18Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-03-26T16:26:10Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=af12980fa9a9a735cefd0d2b6c7f72b12bf15ff9'/>
<id>urn:sha1:af12980fa9a9a735cefd0d2b6c7f72b12bf15ff9</id>
<content type='text'>
Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>linkspec: Rename has_all_reachable_addresses()</title>
<updated>2026-03-30T15:00:18Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-03-26T14:49:51Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=34b227c0658da2ae842fe26051acda530aaaff1d'/>
<id>urn:sha1:34b227c0658da2ae842fe26051acda530aaaff1d</id>
<content type='text'>
Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>linkspec: Rename has_all_valid_port() to has_all_nonzero_port()</title>
<updated>2026-03-30T15:00:18Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-03-26T14:37:10Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a08e1d9de8fd3f8e566f004e04bc447cec6e9abd'/>
<id>urn:sha1:a08e1d9de8fd3f8e566f004e04bc447cec6e9abd</id>
<content type='text'>
Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>linkspec: Move has_all_valid_port() and has_all_reachable_addresses() into ChanTarget</title>
<updated>2026-03-30T15:00:18Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-03-26T14:29:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f129887b782a0cf093924136ecd2ab7118dfee4c'/>
<id>urn:sha1:f129887b782a0cf093924136ecd2ab7118dfee4c</id>
<content type='text'>
Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>linkspec: Add OwnedChanTarget address validation helpers</title>
<updated>2026-03-30T14:58:43Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2026-03-23T16:54:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=94690af315289a9f92519b8b1dc8fd2e4cc26066'/>
<id>urn:sha1:94690af315289a9f92519b8b1dc8fd2e4cc26066</id>
<content type='text'>
The has_all_reachable_addresses() should be used to validate the channel
target of a request to open a relay channel. The function looks for non
routable addresses or, most importantly, private addresses.

The other function is to validate that all socket addresses have a non
zero port.

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
</feed>
