<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-config/src/lib.rs, branch arti-v2.5.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.5.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.5.0'/>
<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: 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>Move metrics config types to tor-config.</title>
<updated>2026-05-26T15:47:40Z</updated>
<author>
<name>Wesley Aptekar-Cassels</name>
<email>me@wesleyac.com</email>
</author>
<published>2026-05-12T21:50:35Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e1fa3995ed7e247aa63483c6c39653b6059ab529'/>
<id>urn:sha1:e1fa3995ed7e247aa63483c6c39653b6059ab529</id>
<content type='text'>
This will allow these types to be shared by arti and arti-relay.

This does change these types from being behind the experimental-api
flag. I think this is okay, as tor-config is not a stable crate anyways,
but it's worth keeping in mind.

There is also an argument to be made for having two separate types, one
in arti and one in arti-relay, as we do for LoggingConfig. I think that
using a single type has benefits, and we should strive to eventually
merge the LoggingConfigs, for instance, and perhaps other types, but it
doesn't seem critical in either direction at the moment.
</content>
</entry>
<entry>
<title>config: Implement Default for ConfigurationTree.</title>
<updated>2026-05-18T15:53:37Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-05T14:51:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9b50c0e66a22f893e374240be2d33cd2377fc218'/>
<id>urn:sha1:9b50c0e66a22f893e374240be2d33cd2377fc218</id>
<content type='text'>
</content>
</entry>
<entry>
<title>config: Add a merge_from method to ConfigurationTree</title>
<updated>2026-05-18T15:53:24Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-04T17:50:05Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ff772adf75b81d33a4339846e56cde62b1f8c127'/>
<id>urn:sha1:ff772adf75b81d33a4339846e56cde62b1f8c127</id>
<content type='text'>
We'll use this in RPC to implement configuration changing.
</content>
</entry>
<entry>
<title>tor-config: Allow inspecting parts of a ConfigurationTree.</title>
<updated>2026-05-12T13:06:25Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-04T17:18:48Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e96596491026848ab93b7e3ea567209d2bb4bd3a'/>
<id>urn:sha1:e96596491026848ab93b7e3ea567209d2bb4bd3a</id>
<content type='text'>
This will be used by RPC.  Probably.  It might actually be a better
to re-serialize the configuration after parsing it, so that our
inspection functions can see default values.
</content>
</entry>
<entry>
<title>Document resolve_option_general behavior</title>
<updated>2026-02-18T17:43:51Z</updated>
<author>
<name>moumenalaoui</name>
<email>moumenalaoui@proton.me</email>
</author>
<published>2026-02-13T21:49:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=071d739a342fefc9381c46469e6a24b4c279f62b'/>
<id>urn:sha1:071d739a342fefc9381c46469e6a24b4c279f62b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Allow clippy::collapsible_if to trigger</title>
<updated>2026-02-16T15:22:24Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-02-09T11:49:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ade1d59e8e44c93b6ee447b72a2948a9652ec44e'/>
<id>urn:sha1:ade1d59e8e44c93b6ee447b72a2948a9652ec44e</id>
<content type='text'>
`clippy::collapsible_if` started triggering after bumping the MSRV to
1.88.

Since this triggers from a lot of places, and since there even are a
couple of instances where we explicitly allow `clippy::collapsible_ifs`,
I've opened #2342 for deciding what to do about it.
</content>
</entry>
<entry>
<title>tor-config: remove `resolve_alternative_specs` function</title>
<updated>2026-02-02T03:26:01Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2026-02-02T02:47:20Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=883c182da88ef05ba2126304f793c63ea7402630'/>
<id>urn:sha1:883c182da88ef05ba2126304f793c63ea7402630</id>
<content type='text'>
</content>
</entry>
</feed>
