<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-config/src/err.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: 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>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>tor-config: fix error source for `ConfigLoadError`</title>
<updated>2025-11-13T16:40:42Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2025-11-13T00:00:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e37f31bea5d11e074ac02990b0f8c9965a34a09c'/>
<id>urn:sha1:e37f31bea5d11e074ac02990b0f8c9965a34a09c</id>
<content type='text'>
</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>
<entry>
<title>tor-config: Deprecate ConfigError::Permissions, use FileAccess</title>
<updated>2024-07-10T10:50:44Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-07-09T13:30:06Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e7b96b5a5595b809b7eb6e242b36f0e35a5e3e3e'/>
<id>urn:sha1:e7b96b5a5595b809b7eb6e242b36f0e35a5e3e3e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: Correct message and description for mistrust error</title>
<updated>2024-07-10T10:50:44Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-07-09T13:29:36Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=724d1581b6b8449a38db010957d9d37aab63c117'/>
<id>urn:sha1:724d1581b6b8449a38db010957d9d37aab63c117</id>
<content type='text'>
Part of #1473
</content>
</entry>
<entry>
<title>Rename ConfigParseError =&gt; ConfigLoadError</title>
<updated>2024-04-22T17:17:49Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-03-20T12:25:23Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=cd5311d9c3c8fa63b26a53bea16df16bb315c8e9'/>
<id>urn:sha1:cd5311d9c3c8fa63b26a53bea16df16bb315c8e9</id>
<content type='text'>
Figment can give an error under more conditions than just a parsing
failure, so we should report it a bit more vaguely.
</content>
</entry>
<entry>
<title>Add an action field to Io error in tor-config.</title>
<updated>2024-04-22T17:17:49Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-02-19T18:44:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c52c351892b9dd8f3d9347ea466dfa8687709006'/>
<id>urn:sha1:c52c351892b9dd8f3d9347ea466dfa8687709006</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert tor-config to use figment.</title>
<updated>2024-04-22T17:17:49Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-02-15T17:12:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=20d342db1a5fe976d26c709afa9d6b3859d4df28'/>
<id>urn:sha1:20d342db1a5fe976d26c709afa9d6b3859d4df28</id>
<content type='text'>
There are probably ways to make this a bit more elegant, but at
least the tests still pass.
</content>
</entry>
</feed>
