<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-config/src/map_builder.rs, branch arti-v2.4.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.4.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v2.4.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-05-27T12:05:52Z</updated>
<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>config: Use derive(TorConfig) for map builder tests.</title>
<updated>2026-05-18T15:53:37Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-06T13:07:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=41bbd680e954d77bb8294a1097387de109a23f1c'/>
<id>urn:sha1:41bbd680e954d77bb8294a1097387de109a23f1c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: Have macros document more types and fns</title>
<updated>2026-02-24T13:05:39Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-02-18T15:21:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7cb398e48fabcb296282f3b21150c6bccdc0d399'/>
<id>urn:sha1:7cb398e48fabcb296282f3b21150c6bccdc0d399</id>
<content type='text'>
</content>
</entry>
<entry>
<title>map_builder: Alternative syntax for use by derive(TorConfig)</title>
<updated>2025-12-09T16:32:14Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-12-01T14:16:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2c7952d40fa00d4e50747a150bb28e2881095c57'/>
<id>urn:sha1:2c7952d40fa00d4e50747a150bb28e2881095c57</id>
<content type='text'>
derive_deftly wants to expand types before passing them to
macro_rules macros, which is quite reasonable.  But map_builder
wants its input collection type to be an `ident`, not a `path`.
(And macro_rules doesn't accept `path` before a `&lt;`.)

To fix this, we're providing an alternative syntax for map_builder,
where the inputs are the map type and the builder map type.
</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>map_builder: Document deserialize implemntation.</title>
<updated>2024-12-19T21:12:25Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-12-19T17:40:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ab678571b1ad01d6a9dfc39aa3e165ae9a756bd5'/>
<id>urn:sha1:ab678571b1ad01d6a9dfc39aa3e165ae9a756bd5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>map_builder: Extensively rework example.</title>
<updated>2024-12-19T21:12:25Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-12-19T17:33:06Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=064a2d4ea78b391679af6ce8f662a968819852be'/>
<id>urn:sha1:064a2d4ea78b391679af6ce8f662a968819852be</id>
<content type='text'>
</content>
</entry>
<entry>
<title>map_builder: Add support for default settings.</title>
<updated>2024-12-19T21:12:25Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-12-17T15:58:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=30ea55d424a84e57ab7d8a4b622f63a1d54bc6a0'/>
<id>urn:sha1:30ea55d424a84e57ab7d8a4b622f63a1d54bc6a0</id>
<content type='text'>
This is a little tricky (beyond the usual macro fun) because we
needed to use ExtendBuilder to get reasonable behavior for our
default trees.
</content>
</entry>
</feed>
