<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-persist/src/lib.rs, branch arti-v1.3.1</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.3.1</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.3.1'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-10-08T13:21:13Z</updated>
<entry>
<title>tor-hsservice: Move HsNickname to tor-persist.</title>
<updated>2024-10-08T13:21:13Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2024-09-26T12:13:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c744120a6709810bf89458485b8439ebabd02451'/>
<id>urn:sha1:c744120a6709810bf89458485b8439ebabd02451</id>
<content type='text'>
We are about to need this in `tor-keymgr`, where we're about to add a
config for C Tor service keystores (the C Tor keystore config will have
an associated `HsNickname` that specifies which of the arti hidden
services it's supposed to be used with).
</content>
</entry>
<entry>
<title>tor-persist: Allow all dead code if not all features enabled</title>
<updated>2024-09-30T11:23:04Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-09-30T11:21:26Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b8c6fe7a3fd4c57b9be8b979d1578728dd6928fd'/>
<id>urn:sha1:b8c6fe7a3fd4c57b9be8b979d1578728dd6928fd</id>
<content type='text'>
Fixes
  cargo check -p tor-circmgr --all-features --all-targets

which otherwise prints

warning: variant `InstanceState` is never constructed
  --&gt; crates/tor-persist/src/err.rs:45:5
   |
13 | pub(crate) enum Resource {
   |                 -------- variant in this enum
...
45 |     InstanceState {
   |     ^^^^^^^^^^^^^
   |
   = note: `Resource` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` on by default

warning: variants `Deleting` and `Enumerating` are never constructed
  --&gt; crates/tor-persist/src/err.rs:66:5
   |
57 | pub(crate) enum Action {
   |                 ------ variants in this enum
...
66 |     Deleting,
   |     ^^^^^^^^
...
78 |     Enumerating,
   |     ^^^^^^^^^^^
   |
   = note: `Action` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis

warning: method `delete` is never used
  --&gt; crates/tor-persist/src/load_store.rs:83:19
   |
35 | impl Target&lt;'_&gt; {
   | --------------- method in this implementation
...
83 |     pub(crate) fn delete(&amp;self) -&gt; Result&lt;(), ErrorSource&gt; {
   |                   ^^^^^^
</content>
</entry>
<entry>
<title>Re-run maint/add_warning.</title>
<updated>2024-05-06T13:31:35Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2024-05-06T13:23:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=97f452ec9958bf7d8ca3275c39655814a4494637'/>
<id>urn:sha1:97f452ec9958bf7d8ca3275c39655814a4494637</id>
<content type='text'>
This commit is automatically generated.
</content>
</entry>
<entry>
<title>deny clippy::unchecked_duration_subtraction</title>
<updated>2024-02-29T17:16:49Z</updated>
<author>
<name>trinity-1686a</name>
<email>trinity@deuxfleurs.fr</email>
</author>
<published>2024-02-29T17:06:46Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ac5b36027ca825d27ef466501c660ce498fd9e3c'/>
<id>urn:sha1:ac5b36027ca825d27ef466501c660ce498fd9e3c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-persist: state_dir: Enable rustfmt</title>
<updated>2024-01-31T12:54:09Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-01-29T19:18:24Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=274b8b2798ea35efc3c79d82b6a7afe572a27660'/>
<id>urn:sha1:274b8b2798ea35efc3c79d82b6a7afe572a27660</id>
<content type='text'>
The formatting will be normalised roughly as we go.
</content>
</entry>
<entry>
<title>Introduce tor_persist::slug module</title>
<updated>2024-01-25T10:37:08Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-01-24T13:54:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1c7ef73521336a2d5b2218d1bb91850bf8301b70'/>
<id>urn:sha1:1c7ef73521336a2d5b2218d1bb91850bf8301b70</id>
<content type='text'>
I need this for state_dir (#1163, !1853).

I intend that this should be used for arti paths (#1092, #1193).
See also #1195.

Implements the spec in #1192 but doesn't connect it to anything yet.
</content>
</entry>
<entry>
<title>tor-persist: Provide load_store module for use by state_dir</title>
<updated>2024-01-24T16:29:19Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-01-24T11:45:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d2d1cc31f76c20c165a5c16cbc774b0e0f6d9297'/>
<id>urn:sha1:d2d1cc31f76c20c165a5c16cbc774b0e0f6d9297</id>
<content type='text'>
</content>
</entry>
<entry>
<title>state-dir: Move from tor-hsservice to tor-persist</title>
<updated>2024-01-24T16:29:19Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-01-24T11:02:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e400e597daf81fe8da45c7aaf84653792eb3cc19'/>
<id>urn:sha1:e400e597daf81fe8da45c7aaf84653792eb3cc19</id>
<content type='text'>
And, instead of being a hidden module, it's a public experimental one.

I have feature-gated all the new dependencies since we probably want
to feature-gate this module in perpetuity, since some builds of Arti
won't need it.

Closes #1205
</content>
</entry>
<entry>
<title>tor-persist: Provide FsMistrustErrorExt, and use it</title>
<updated>2023-12-13T17:02:45Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-12-07T16:18:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=76bd3c0f4dc5886dbc4a11304a87661d1252b829'/>
<id>urn:sha1:76bd3c0f4dc5886dbc4a11304a87661d1252b829</id>
<content type='text'>
This code needs fs_mistrust::Error and tor_error::ErrorKind.  I think
we probably don't want fs_mistrust to depend on tor_error or vice
versa.

tor_persist is approximately the place where these two threads of
thought come together, and it's currently the lowest place where this
is needed.

Use it in tor-dirmgr too, which is currently the other place that
embodies this knowledge about fs_mistrust::Error.
</content>
</entry>
<entry>
<title>tor-persist: Make LockStatus #[must_use]</title>
<updated>2023-11-22T12:58:06Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-11-22T12:57:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=641baaf7b65e5fb30f7215261084bccdf82997cf'/>
<id>urn:sha1:641baaf7b65e5fb30f7215261084bccdf82997cf</id>
<content type='text'>
I see other problems with this API, see #1136. but we can at least
easily do this.
</content>
</entry>
</feed>
