<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-config/src/load.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-09T15:36:01Z</updated>
<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>config: Simplify ConfigurationTree::merge_from to take &amp;mut self.</title>
<updated>2026-05-27T12:05:52Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-21T14:28:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=54c99e93b5d9cd0a3e1cfb66c249c7aeeba2ecce'/>
<id>urn:sha1:54c99e93b5d9cd0a3e1cfb66c249c7aeeba2ecce</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: Update doctests to use Deftly, and to pass</title>
<updated>2026-05-27T12:05:52Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-19T14:44:06Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8d62f53b0a8f676ece49360184ab094d8dc0edb5'/>
<id>urn:sha1:8d62f53b0a8f676ece49360184ab094d8dc0edb5</id>
<content type='text'>
Some of the tests used derive(Builder), which is not current
practice for our configuration.

Additionally, they didn't implement the requisite ConfigBuilder
logic to pass with the other changes in this branch.
</content>
</entry>
<entry>
<title>Give resolve_return_results options to control output_tree.</title>
<updated>2026-05-27T12:05:52Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-19T13:25:50Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8559c5df2c487df7f882ca762ea70faef7450414'/>
<id>urn:sha1:8559c5df2c487df7f882ca762ea70faef7450414</id>
<content type='text'>
I've left the options here as booleans, but moved them into a
struct.  (IMO, booleans are at their riskiest when they are passed
as function arguments, and much less risky when they are used as
struct fields.)
</content>
</entry>
<entry>
<title>config: Add an `output_tree` to our resolver methods.</title>
<updated>2026-05-27T12:05:52Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-18T19:29:48Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f9478b994ce908a952e55bf71beea824f61adcc4'/>
<id>urn:sha1:f9478b994ce908a952e55bf71beea824f61adcc4</id>
<content type='text'>
This functionality exposes the part of the configuration tree that
was actually used, along with any defaulted values.  RPC will want
this.
</content>
</entry>
<entry>
<title>config: Add a method to fill in a builder with unset defaults</title>
<updated>2026-05-27T12:05:52Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-18T14:13:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f1df3d1c8d83fd63d484cccf0bf45534f0369761'/>
<id>urn:sha1:f1df3d1c8d83fd63d484cccf0bf45534f0369761</id>
<content type='text'>
This new method modifies a builder by replacing any unset values
that have a default with that default.  We're using this method
so that we can re-serialize a builder into a `ConfigurationTree`
with all of its default values included.

In all cases, `b.apply_defaults()?; b.build()` should produce
the same output as `b.build()`.

The interesting parts of this commit are in tor_config::load
and tor_config::derive.  The rest of this commit just adds
`apply_defaults` to other builders that _aren't_ made with
`derive_deftly(TorConfig)`.
</content>
</entry>
<entry>
<title>config: Fix documentation of ResolutionResults</title>
<updated>2026-05-27T12:05:51Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-18T14:19:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1e28b26543f6d6e89e75db9345146a8e90be9cf8'/>
<id>urn:sha1:1e28b26543f6d6e89e75db9345146a8e90be9cf8</id>
<content type='text'>
It previously referred to a function that didn't exist.
</content>
</entry>
<entry>
<title>config: Convert some load.rs tests to use dd(TorConfig).</title>
<updated>2026-05-18T15:53:37Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-12T13:49:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=02690f381feefde3164b5d333a232fce7338b9d9'/>
<id>urn:sha1:02690f381feefde3164b5d333a232fce7338b9d9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: remove a needless clone.</title>
<updated>2026-05-18T15:53:37Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-05T12:44:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e434e1bfb03754c44f529cfed843aa73121bc4b1'/>
<id>urn:sha1:e434e1bfb03754c44f529cfed843aa73121bc4b1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: small typo fix in docs</title>
<updated>2026-01-07T16:27:34Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2026-01-07T16:27:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2a8cfd520d0707c6595d2b627a9ade3082dd4dd0'/>
<id>urn:sha1:2a8cfd520d0707c6595d2b627a9ade3082dd4dd0</id>
<content type='text'>
</content>
</entry>
</feed>
