<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdoc/src/encode.rs, 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-24T12:34:06Z</updated>
<entry>
<title>tor-netdoc: Replace trivial string slice</title>
<updated>2026-06-24T12:34:06Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-06-24T12:34:06Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e017caa30580aa6480561f2770a6c3b088125cd1'/>
<id>urn:sha1:e017caa30580aa6480561f2770a6c3b088125cd1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: Use assert_eq_or_diff in three more places</title>
<updated>2026-06-11T11:38:51Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-11T11:31:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d40b0d15e3315292948cf0ceeb8127ff2e14670f'/>
<id>urn:sha1:d40b0d15e3315292948cf0ceeb8127ff2e14670f</id>
<content type='text'>
</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>Upgrade rand crates to 0.10.</title>
<updated>2026-05-12T20:55:43Z</updated>
<author>
<name>Wesley Aptekar-Cassels</name>
<email>me@wesleyac.com</email>
</author>
<published>2026-05-07T20:06:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a18167928901d8c88cd1cdd87346de8ad1ee42a2'/>
<id>urn:sha1:a18167928901d8c88cd1cdd87346de8ad1ee42a2</id>
<content type='text'>
When the circ-padding feature is enabled, we use maybenot, which does
not yet support rand 0.10. In the meantime, enabling this feature pulls
in rand 0.9. This is not ideal, but should be okay as a temporary
situation.

This also replaces the use of ReseedingRng (which was removed in 0.10)
with the reseeding_rng crate. This is somewhat less performant, but it
should be okay.
</content>
</entry>
<entry>
<title>tor-netdoc: Move FromStr and Display from NormalItemArgument to impls</title>
<updated>2026-04-29T10:20:28Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-04-27T14:43:55Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4c75ba0cb8c036e4b330f1f10740e7c29e8379de'/>
<id>urn:sha1:4c75ba0cb8c036e4b330f1f10740e7c29e8379de</id>
<content type='text'>
This allows implementing NormalItemArgument for types that can only be
parsed, or only displayed - or other combinations.

I noticed this restriction while inventing a type I later decided was
unnecessary.  I still think it's a good change.

There is no practical impact elsewhere, since in practice downstream
code implements NormalItemArgument rather than relying on it.
</content>
</entry>
<entry>
<title>tor-netdoc: Implement encoding traits for Arc&lt;T&gt;</title>
<updated>2026-04-21T12:42:43Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-04-07T11:46:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ffc631750f542aa7b41d5fd1d9a035004690bd15'/>
<id>urn:sha1:ffc631750f542aa7b41d5fd1d9a035004690bd15</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: encode: Move various ItemArgument impls to impls.rs</title>
<updated>2026-04-01T11:33:48Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-04-01T10:31:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=cadbd63b8628b668efd0e6d471d0122195d462f9'/>
<id>urn:sha1:cadbd63b8628b668efd0e6d471d0122195d462f9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: impl encoding traits for rsa::PublicKey</title>
<updated>2026-04-01T11:18:14Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-03-26T11:37:39Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8555bed910ea6cb424e1ed3519da911c30f8ab73'/>
<id>urn:sha1:8555bed910ea6cb424e1ed3519da911c30f8ab73</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: Provide ItemEncoder::text_sofar()</title>
<updated>2026-04-01T11:18:14Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-03-26T13:49:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ecca83cefb0d30dcd7211009de20a0465c45a367'/>
<id>urn:sha1:ecca83cefb0d30dcd7211009de20a0465c45a367</id>
<content type='text'>
</content>
</entry>
</feed>
