<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdoc/src/test2.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-22T16:57:00Z</updated>
<entry>
<title>tor-netdoc: encode derive: New default(skip) feature</title>
<updated>2026-06-22T16:57:00Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-06-16T18:47:50Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0fb33ea8a2e414ede9cfe973e641620df651b3ad'/>
<id>urn:sha1:0fb33ea8a2e414ede9cfe973e641620df651b3ad</id>
<content type='text'>
This lets us skip fields which have the default values.
</content>
</entry>
<entry>
<title>tor-netdoc: Replace ad-hoc pseudo-diff with unidiff from imra (fmt)</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:36:47Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=65b1f1e10dcec33c19da87ab28b3c0bfc83fee82'/>
<id>urn:sha1:65b1f1e10dcec33c19da87ab28b3c0bfc83fee82</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: Replace ad-hoc pseudo-diff with unidiff from imra</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:05:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fa1feb06cff0492dda770bd9df4334fce57e6909'/>
<id>urn:sha1:fa1feb06cff0492dda770bd9df4334fce57e6909</id>
<content type='text'>
And wrap it up nicely in an assert_eq_or_diff macro.

I've tested the output by sabotaging one of the test2 tests.
</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>Merge branch 'parse2-more-debug' into 'main'</title>
<updated>2026-04-21T08:25:13Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-04-21T08:25:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8514ad24b51357920598f1cd2bb07372a8cb07f0'/>
<id>urn:sha1:8514ad24b51357920598f1cd2bb07372a8cb07f0</id>
<content type='text'>
Add debugging support to ItemValueParseable derive

See merge request tpo/core/arti!3881</content>
</entry>
<entry>
<title>tor-netdoc: Support `#[deftly(netdoc(skip))]` in items</title>
<updated>2026-04-20T18:07:00Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-04-15T10:47:52Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=82206aeed4f0e10818e140964afa0680f7416a2a'/>
<id>urn:sha1:82206aeed4f0e10818e140964afa0680f7416a2a</id>
<content type='text'>
Ie for "arguments" that don't actually appear.
</content>
</entry>
<entry>
<title>tor-netdoc: Add debugging to ItemValueParseable, demo in test</title>
<updated>2026-04-13T18:38:12Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-04-13T18:04:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e46c5c4579456fd4441d53eb411f108952ba3271'/>
<id>urn:sha1:e46c5c4579456fd4441d53eb411f108952ba3271</id>
<content type='text'>
With

  cargo test --all-features -p tor-netdoc -- --no-capture test2

the output now contains, amongst many other things:

  netdoc TestItem parse: item start, "test-item", "N", Some("TEST OBJECT")
  netdoc TestItem parse: field needed, normal, args=1, "N"
  netdoc TestItem parse: field optional, normal, args=Option&lt;_&gt;, ""
  netdoc TestItem parse: field rest, normal, args=Vec&lt;_&gt;, ""
  netdoc TestItem parse: field object, object, object=1, Some(("TEST OBJECT", Ok(5)))
  netdoc TestItem parse: item complete Ok
</content>
</entry>
<entry>
<title>tor-netdoc: parse2/encode derive: Use unquoted attributes at call sites</title>
<updated>2026-04-07T16:05:05Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-04-02T09:14:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f39e77b21176da250d269b0ca6ef73da46548dc6'/>
<id>urn:sha1:f39e77b21176da250d269b0ca6ef73da46548dc6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: derives: New `skip` document field option</title>
<updated>2026-01-14T14:45:54Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2026-01-07T12:39:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d209f26e1c01c5c337418f3c99c85aec31613c66'/>
<id>urn:sha1:d209f26e1c01c5c337418f3c99c85aec31613c66</id>
<content type='text'>
This lets us having document items that are "manually non exhaustive"
which is necessary for struct literal constructors.
</content>
</entry>
<entry>
<title>tor-netdoc: test2: Make t_ok (which takes no boundaries) take &amp;D not &amp;[D]</title>
<updated>2025-12-18T17:30:44Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-12-17T16:18:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=39e1c2de26ce626bdd84550aaefb43daa8782a34'/>
<id>urn:sha1:39e1c2de26ce626bdd84550aaefb43daa8782a34</id>
<content type='text'>
</content>
</entry>
</feed>
