<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/arti/src/cfg.rs, branch arti-v1.1.4</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.4</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.4'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-01-27T13:28:02Z</updated>
<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>arti: transports parsing: Record this as a ticket</title>
<updated>2022-11-30T15:56:16Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-11-30T15:56:16Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e6d721c49720c04eeb7ff994a0c89fb287af7334'/>
<id>urn:sha1:e6d721c49720c04eeb7ff994a0c89fb287af7334</id>
<content type='text'>
</content>
</entry>
<entry>
<title>arti, arti-client: Conditionalise various things on pt-client</title>
<updated>2022-11-29T16:32:14Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-11-29T16:12:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c92dcb5f501d5f3035d3289e5a6a4b8098e8324f'/>
<id>urn:sha1:c92dcb5f501d5f3035d3289e5a6a4b8098e8324f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>arti cfg tests: Add some more debug output</title>
<updated>2022-11-29T16:32:14Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-11-24T16:50:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d05d383fa573fe4cd697b1d02854dd30dab7b86f'/>
<id>urn:sha1:d05d383fa573fe4cd697b1d02854dd30dab7b86f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bridge non-support: Test that we reject configs</title>
<updated>2022-11-21T16:46:19Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-11-18T18:42:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ec7f058cfd9583d4aefbe1f3743804ecdd7f875d'/>
<id>urn:sha1:ec7f058cfd9583d4aefbe1f3743804ecdd7f875d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bridge non-support: De-cfg the primary bridge config fields</title>
<updated>2022-11-21T16:46:19Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-11-18T19:05:11Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b2607fd8c8e6920ea4a45da232dd429a37681675'/>
<id>urn:sha1:b2607fd8c8e6920ea4a45da232dd429a37681675</id>
<content type='text'>
We now parse the `bridges.enabled` BoolOrAuto, and the
`bridges.bridges` list.

The `bridges.bridges` list is Vec&lt;()&gt; in the builder, and Vec&lt;Void&gt; in
the built config.  Ie, it is simply a count, and vanishes in the built
config.

But this count triggers us to try to call build(), to try to parse
bridges, and to try to set and honour the enablement boolean.

The result is that the type system now ensures that if bridges are
disabled, but specified (either by listing them in the config, or
writing `enabled=true`), we inevitably try to insist that we have a
non-empty Vec&lt;Void&gt;, which is of course impossible.

There will be a test case too for those who think this too abstract a
way to guarantee this property :-).
</content>
</entry>
<entry>
<title>arti cfg test: Break out expect_err_contains function</title>
<updated>2022-11-21T16:46:19Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-11-18T18:35:12Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7688973fd404fb3843fa7c85b1cb93c6265b75b4'/>
<id>urn:sha1:7688973fd404fb3843fa7c85b1cb93c6265b75b4</id>
<content type='text'>
Maybe this will want to be in tor-error or something but put it here
for now.
</content>
</entry>
<entry>
<title>bridge non-support: Disable the test for now</title>
<updated>2022-11-21T16:46:19Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-11-18T17:53:28Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fa4f842340d1b87e7e2d5e7e52ab9a0f2602cfeb'/>
<id>urn:sha1:fa4f842340d1b87e7e2d5e7e52ab9a0f2602cfeb</id>
<content type='text'>
This test will start to fail if you compile without bridge support,
because we'll start rejecting the test configurations with bridges
specified.

We'll add a proper test for this later.
</content>
</entry>
<entry>
<title>Fix a bunch of "needless borrow" warnings on nightly</title>
<updated>2022-11-18T15:12:05Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-11-18T15:12:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d51162e55b19036528b4fafc1d4b15c8d9d23a04'/>
<id>urn:sha1:d51162e55b19036528b4fafc1d4b15c8d9d23a04</id>
<content type='text'>
It looks like, despite a few false starts, they've got this warning
right; there weren't any false positives.
</content>
</entry>
<entry>
<title>pt config, arti cfg test: Expect bridges.transports to be missing</title>
<updated>2022-11-16T11:39:25Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-11-15T19:08:22Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d7dc02968f2c74ec5671f17e80615400a3543529'/>
<id>urn:sha1:d7dc02968f2c74ec5671f17e80615400a3543529</id>
<content type='text'>
As per
  https://gitlab.torproject.org/tpo/core/arti/-/merge_requests/823#note_2854365
</content>
</entry>
</feed>
