<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-hsservice/src/config/restricted_discovery, 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-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>hsservice: Port to use derive_deftly(TorConfig)</title>
<updated>2026-02-17T13:55:08Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-02-11T19:32:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=07cb744083c0b0d180f4d0182cafcbad5101f172'/>
<id>urn:sha1:07cb744083c0b0d180f4d0182cafcbad5101f172</id>
<content type='text'>
Some of the behaviors of the existing types here are nonstandard;
I've kept them and documented them, to avoid breaking compatibility.
</content>
</entry>
<entry>
<title>hsservice: Move derive_more::From out of internal_prelude.</title>
<updated>2025-08-19T13:46:54Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-08-19T13:46:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6cb98ccc344768c0cff6b7136ea81c38d2f4e990'/>
<id>urn:sha1:6cb98ccc344768c0cff6b7136ea81c38d2f4e990</id>
<content type='text'>
This fixes an error from nightly. The trouble is that with nightly,
there's a now a [derive macro for From][issue].  That doesn't cause
a conflict when we `use derive_more::From`, but it _does_
cause a conflict when we import `derive_more::From` via
`use internal_prelude::*`.

So as a solution, we just import `derive_more::From` explicitly.

Closes #2124

[issue]: https://github.com/rust-lang/rust/pull/144922
</content>
</entry>
<entry>
<title>update `CfgPath::path` to use a `CfgPathResolver`</title>
<updated>2024-11-18T15:01:56Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2024-11-05T05:18:57Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b5aa8f7a88808dc9267457ec723d23c8ffd1295a'/>
<id>urn:sha1:b5aa8f7a88808dc9267457ec723d23c8ffd1295a</id>
<content type='text'>
This is a big change across multiple crates since there isn't a good way
to break it up.

This changes the signature of `CfgPath::path` to:

```
pub fn path(&amp;self, path_resolver: &amp;CfgPathResolver) -&gt; Result&lt;PathBuf, CfgPathError&gt; {
```

Making this change means that our global `CfgPathResolver` needs to be
stored in the 'arti-client' library instead of `tor-config-path`, and
must be passed through to anything that calls `path` to expand the
variables.
</content>
</entry>
<entry>
<title>tor-hsservice: pass through the `CfgPathResolver`</title>
<updated>2024-11-18T15:01:56Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2024-11-05T05:26:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=37cd51866697e7cebaa4d0378bb9a119d948e2ae'/>
<id>urn:sha1:37cd51866697e7cebaa4d0378bb9a119d948e2ae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: removed re-export of `CfgPath`</title>
<updated>2024-11-04T14:58:43Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2024-10-29T19:55:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6b3e0f89c04fed10436f6437b852d6c9671be7df'/>
<id>urn:sha1:6b3e0f89c04fed10436f6437b852d6c9671be7df</id>
<content type='text'>
Also updated other packages to get `CfgPath` directly from
`tor-config-path' instead of 'tor-config'.
</content>
</entry>
<entry>
<title>tor-hsservice: Use the new "restricted discovery" terminology.</title>
<updated>2024-10-03T11:42:29Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-10-03T11:36:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=80bc61a4e2e40dcc2e7c7cb6e987e513f7604fe3'/>
<id>urn:sha1:80bc61a4e2e40dcc2e7c7cb6e987e513f7604fe3</id>
<content type='text'>
Part of #1476
</content>
</entry>
<entry>
<title>tor-hsservice: Rewrite read_keys impl to be more functional.</title>
<updated>2024-08-05T16:41:15Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-07-31T11:54:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=085557fefe4b6a31003dce81b8cbf48fe4669051'/>
<id>urn:sha1:085557fefe4b6a31003dce81b8cbf48fe4669051</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-hsservice: Use DirEntry::file_name to simplify key file reading logic.</title>
<updated>2024-08-05T16:41:15Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-07-31T11:50:33Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=57d0e090349b50eab7bbd641823bad740c497909'/>
<id>urn:sha1:57d0e090349b50eab7bbd641823bad740c497909</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-hsservice: Give static_keys precedence over key_dirs (fmt).</title>
<updated>2024-08-05T16:41:15Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-07-31T11:27:07Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ea2fca89728e5f262ae6090fd2b0a4c79c547696'/>
<id>urn:sha1:ea2fca89728e5f262ae6090fd2b0a4c79c547696</id>
<content type='text'>
</content>
</entry>
</feed>
