<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdoc/src/encode.rs, branch arti-v2.0.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.0.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.0.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2025-12-10T11:05:28Z</updated>
<entry>
<title>tor-netdoc: Add two TODOs re trait naming</title>
<updated>2025-12-10T11:05:28Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-09T17:01:38Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c21970fb5cb8d165370e6a33a48d7fd4e64c4d01'/>
<id>urn:sha1:c21970fb5cb8d165370e6a33a48d7fd4e64c4d01</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: derive netdoc encoding traits</title>
<updated>2025-12-10T11:05:28Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-08T12:30:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d101894ca656906c4d6ddb3cb82f31aae4970a72'/>
<id>urn:sha1:d101894ca656906c4d6ddb3cb82f31aae4970a72</id>
<content type='text'>
Signature encoding is not yet supported.  We need to consider how this
will work.
</content>
</entry>
<entry>
<title>tor-netdoc: encoding: Provide multiplicity module</title>
<updated>2025-12-10T11:05:28Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-08T12:30:29Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3fc25a9325703282605730b0ffa5cefe4d4f4a5a'/>
<id>urn:sha1:3fc25a9325703282605730b0ffa5cefe4d4f4a5a</id>
<content type='text'>
This is quite like the one for parse2, but separate for Reasons.

Also add a bit of explanation to parse2's multiplicity.rs, about why
there are all these different FooSetMethods traits, which the encoder
doesn't need.
</content>
</entry>
<entry>
<title>tor-netdoc: encoding: Add new traits that we will derive</title>
<updated>2025-12-10T11:05:28Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-11-12T12:28:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a6338b891763de4c9fdacc1bbcb6759b259b92cf'/>
<id>urn:sha1:a6338b891763de4c9fdacc1bbcb6759b259b92cf</id>
<content type='text'>
And implement them for Void and tuples, as applicable.
</content>
</entry>
<entry>
<title>tor-netdoc: Add imports to encode module, for new encode derive</title>
<updated>2025-12-10T11:05:28Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-01T14:32:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8a8a393fbd3e6b745ad1aa306db0294b63936be3'/>
<id>urn:sha1:8a8a393fbd3e6b745ad1aa306db0294b63936be3</id>
<content type='text'>
Adding these all at the beginning helped me with churn in this branch.
The allow(unused) will go away again shortly.
</content>
</entry>
<entry>
<title>tor-netdoc: Provide ItemEncoder::finish</title>
<updated>2025-12-04T12:54:46Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-01T14:24:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=29e0dfa34749bf73315bfe9f41acfda1c4f7ecd7'/>
<id>urn:sha1:29e0dfa34749bf73315bfe9f41acfda1c4f7ecd7</id>
<content type='text'>
This provides a way to explicitly consume the encoder and finish the
item, without use of mem::drop.
</content>
</entry>
<entry>
<title>tor-netdoc: Improve and expose args_raw_string</title>
<updated>2025-12-04T12:54:46Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-01T12:53:20Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d17443f3f6815629c37ae6dc66e44209775e702b'/>
<id>urn:sha1:d17443f3f6815629c37ae6dc66e44209775e702b</id>
<content type='text'>
The new derive is going to want this.  So it would need to be at least
`#[doc(hidden)]`.  But it makes sense to expose it.

But, it had a weird signature.  Make its signature like that of `.arg_empty()`.
(Note that an ItemEncoder contains just a `&amp;mut NetdocEncoder`.)
</content>
</entry>
<entry>
<title>tor-netdoc: Better error from empty argument (fmt)</title>
<updated>2025-12-04T12:54:14Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-01T14:43:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=471ef01b461f3f0af3441db33b2f55b574a700df'/>
<id>urn:sha1:471ef01b461f3f0af3441db33b2f55b574a700df</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: Better error from empty argument</title>
<updated>2025-12-04T12:54:14Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-01T11:10:06Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7df2e061d1fd1e09ff7d75cc4cfe63c139f49c05'/>
<id>urn:sha1:7df2e061d1fd1e09ff7d75cc4cfe63c139f49c05</id>
<content type='text'>
talking about the "keyword argument syntax" makes it sound a bit like
its' the *keyword* that is wrong.
</content>
</entry>
<entry>
<title>tor-netdoc: Throw rather than squirreling error from NormalItemArgument</title>
<updated>2025-12-04T12:54:14Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-01T11:09:57Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a3044987c98fc9254ec12124efaa7546100f920d'/>
<id>urn:sha1:a3044987c98fc9254ec12124efaa7546100f920d</id>
<content type='text'>
NormalItemArgument is for types where we use the Display as the netdoc
argument formatter.  But what if gives the empty string?

Previously we would allow `add_arg` to handle the error.  That would
record it in the NetdocEncoder.  That's kind of OK, but it will
prevent the caller from aborting early (and from elaborating the error).
</content>
</entry>
</feed>
