<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-config/src/list_builder.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: 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>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: Implement Builder for ListBuilders and MapBuilders.</title>
<updated>2026-05-27T12:05:52Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-18T12:50:52Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3f349864d55760a57a47db3cc326be4cc9c90383'/>
<id>urn:sha1:3f349864d55760a57a47db3cc326be4cc9c90383</id>
<content type='text'>
This isn't strictly necessary, but it helps for consistency.
</content>
</entry>
<entry>
<title>tor_config: Make ListBuilders implement ExtendBuilder.</title>
<updated>2025-12-09T16:32:14Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-12-01T15:33:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6aa3355b7884112cb2ca0de985aed49bd5b684b6'/>
<id>urn:sha1:6aa3355b7884112cb2ca0de985aed49bd5b684b6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: missing #[allow(dead_code)] in derive_list_builder_helper</title>
<updated>2025-12-09T16:32:13Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-11-29T02:54:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=742c0e08a479e2cdc7a6ffe0e089e3b3da80a1a0'/>
<id>urn:sha1:742c0e08a479e2cdc7a6ffe0e089e3b3da80a1a0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: missing $crate in derive_list_builder_helper</title>
<updated>2025-12-09T16:32:13Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-11-29T02:54:16Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6f6188b22d0ecd3162b2b247f7d2321de871282c'/>
<id>urn:sha1:6f6188b22d0ecd3162b2b247f7d2321de871282c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: obviate need for Educe in derive_list_builder_helper</title>
<updated>2025-12-09T16:32:13Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-11-29T02:43:55Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2e712a8c622e15debd294717caf82e920fdd81bc'/>
<id>urn:sha1:2e712a8c622e15debd294717caf82e920fdd81bc</id>
<content type='text'>
We were only using it for Default, and it is easier to implement
Default by hand than it is to keep this particular layer in our
leaning tower of macros.
</content>
</entry>
<entry>
<title>Fix name of clippy lint to unchecked_time_subtraction (2)</title>
<updated>2025-11-06T11:28:22Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-11-06T11:23:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a5fd5c48ea059a80cc1f6c50e248654b5ff3aaff'/>
<id>urn:sha1:a5fd5c48ea059a80cc1f6c50e248654b5ff3aaff</id>
<content type='text'>
Run maint/add_warning
</content>
</entry>
<entry>
<title>Switch Cargo.toml files to edition 2024.</title>
<updated>2025-08-07T15:28:36Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-08-06T01:19:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=77b0de43b8c67cdb81befe0680a3df43b6ad37bc'/>
<id>urn:sha1:77b0de43b8c67cdb81befe0680a3df43b6ad37bc</id>
<content type='text'>
First, run

```
git grep -l "^edition =" |
    xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;'
```

Second, manually verify that all Cargo.toml files have changed,
and nothing else has changed.

Third, run cargo fmt again.
</content>
</entry>
</feed>
