<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-netdoc/src/doc/routerdesc.rs, branch tor-llcrypto-v0.4.4</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=tor-llcrypto-v0.4.4</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=tor-llcrypto-v0.4.4'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-02-17T12:34:32Z</updated>
<entry>
<title>Merge branch 'doc-iter' into 'main'</title>
<updated>2023-02-17T12:34:32Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-17T12:34:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1297dfb5e3d5606081fe081d4fff9e34bf533307'/>
<id>urn:sha1:1297dfb5e3d5606081fe081d4fff9e34bf533307</id>
<content type='text'>
tor-netdoc: Abolish PauseAt in favour of using itertools

Closes #760

See merge request tpo/core/arti!1021</content>
</entry>
<entry>
<title>Expire routerdescs as soon as any of their expiries expire</title>
<updated>2023-02-15T17:41:28Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-02-15T17:41:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ca127b013f007429c4dd9133b762da4f09d88641'/>
<id>urn:sha1:ca127b013f007429c4dd9133b762da4f09d88641</id>
<content type='text'>
Fixes #772
</content>
</entry>
<entry>
<title>tor-netdoc: Remove many needless calls to .iter() and .into_iter()</title>
<updated>2023-02-15T17:17:01Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-02-15T16:18:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4a91c732fe4b597ad4e90564ca4630ac3048938a'/>
<id>urn:sha1:4a91c732fe4b597ad4e90564ca4630ac3048938a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-netdoc: Replace use of PauseAt::new_pred()</title>
<updated>2023-02-15T17:16:57Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-02-15T16:11:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=089ebb7d1129593280828fbd129277db79ca9258'/>
<id>urn:sha1:089ebb7d1129593280828fbd129277db79ca9258</id>
<content type='text'>
We can just make a new PauseAt, since it can take the inner peekable
iterator by mutable reference.

This seems to tidy the code up a bit too.
</content>
</entry>
<entry>
<title>Merge branch 'authcert_bug' into 'main'</title>
<updated>2023-02-07T16:06:20Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2023-02-07T16:06:20Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c7c4fff66ef22df16efa2a3938350d989aa187d6'/>
<id>urn:sha1:c7c4fff66ef22df16efa2a3938350d989aa187d6</id>
<content type='text'>
Fix AuthCert behavior on unrecognized tokens, and prevent bug from recurring elsewhere.

Closes #752

See merge request tpo/core/arti!1006</content>
</entry>
<entry>
<title>netdoc: Use Signature::from to construct ed25519 sigs.</title>
<updated>2023-02-07T14:02:15Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-31T19:50:56Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6954c6b48862e1f149bfa0e6e5d23418aff91737'/>
<id>urn:sha1:6954c6b48862e1f149bfa0e6e5d23418aff91737</id>
<content type='text'>
</content>
</entry>
<entry>
<title>netdoc: Require that unrecognized tokens be handled explicitly.</title>
<updated>2023-02-03T16:33:30Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-03T16:33:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=73199ebf68815f7bc1ef6f85f5ce04d3e2620a2e'/>
<id>urn:sha1:73199ebf68815f7bc1ef6f85f5ce04d3e2620a2e</id>
<content type='text'>
Now we require that, for all `SectionRules`, either the caller say
how to handle unrecognized tokens (using `.add(UNRECOGNIZED...)`),
or that they explicitly reject unrecognized tokens (using
`reject_unrecognized`()`.)

This solution uses an assert!() rather than an Error to indicate
failure.  I say that's fine, since
  1. This is a crate-internal API.
  2. We never dynamically construct SectionRules according to
     different behavior: they are always prefabricated in a fixed
     code block.  Thus, if we test a parser at all, we will make
     sure that its SectionRules are well-formed.

I considered and explicitly rejected a solution where the builder
had to be finalized with separate methods `build_strict()` or
`build_tolerant()`: It's too easy IMO for the caller to forget what
these call means.

Prevents further recurrences of #752.

Closes #752.
</content>
</entry>
<entry>
<title>netdoc: Switch SectionRules building to use a Buidler pattern.</title>
<updated>2023-02-03T16:14:00Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-03T16:14:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=13d5452e2e6052e358da95c0becd7b522cf1183f'/>
<id>urn:sha1:13d5452e2e6052e358da95c0becd7b522cf1183f</id>
<content type='text'>
No new behavior yet.
</content>
</entry>
<entry>
<title>Allow clippy::unchecked_duration_subtraction in tests</title>
<updated>2023-01-27T13:28:02Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-27T13:01:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a6dd92843edf2bd4c58de62a0d562921e4191ada'/>
<id>urn:sha1:a6dd92843edf2bd4c58de62a0d562921e4191ada</id>
<content type='text'>
This panics on error, and we're fine with a panic on misbehavior in
tests.
</content>
</entry>
<entry>
<title>Merge branch 'test-lints' into 'main'</title>
<updated>2023-01-06T17:16:09Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2023-01-06T17:16:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=118050e54cdb7d6e55f8eb375b82cbfc8466a809'/>
<id>urn:sha1:118050e54cdb7d6e55f8eb375b82cbfc8466a809</id>
<content type='text'>
Add test lint blocks to all "mod test"

See merge request tpo/core/arti!937</content>
</entry>
</feed>
