<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-persist/src/testing.rs, branch derive-traits</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=derive-traits</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=derive-traits'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-02-24T19:55:59Z</updated>
<entry>
<title>arti-client: Unlock the state manager on failure to bootstrap</title>
<updated>2022-02-24T19:55:59Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2022-02-18T16:02:18Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c6fdd7c0037df821a7cfc475993322958c2f006a'/>
<id>urn:sha1:c6fdd7c0037df821a7cfc475993322958c2f006a</id>
<content type='text'>
`StateMgr` got a new `unlock()` method that does what it says on the
tin. We now call it from `bootstrap()` using the new
`util::StateMgrUnlockGuard`, which works in a manner similar to the
`BoolResetter` from `tor_dirmgr`.

(A decent small little task in future might be to unify these types in
some sort of general arti utility crate?)

closes arti#335
</content>
</entry>
<entry>
<title>tor-persist: Distinguish load vs. store json errors</title>
<updated>2022-02-04T14:33:09Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-01-13T16:50:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a4765717da64cc287f09e429989c79b97d794ded'/>
<id>urn:sha1:a4765717da64cc287f09e429989c79b97d794ded</id>
<content type='text'>
Serialisation errors ought not to occur, since they would represent an
attempt to store malformed data, or something.  (We always convert to
a string, so the JSON error never contains IO errors or the like.)

Deserialisation errors mean the persistent state is corrupt.
</content>
</entry>
<entry>
<title>address clippy's latest lint</title>
<updated>2021-12-20T09:46:41Z</updated>
<author>
<name>Daniel Eades</name>
<email>danieleades@hotmail.com</email>
</author>
<published>2021-12-20T09:46:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9b51a52b53acf3efd468d17296b3671ed9a1af47'/>
<id>urn:sha1:9b51a52b53acf3efd468d17296b3671ed9a1af47</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change how TestingStateMgr handles locking.</title>
<updated>2021-11-03T17:27:01Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-11-03T17:05:52Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=619ae65064861f844966e45194dbc8ffb74cee28'/>
<id>urn:sha1:619ae65064861f844966e45194dbc8ffb74cee28</id>
<content type='text'>
Previously it was either all-locked or all-not-locked.  Now you can
simulate having the same shared storage opened by multiple managers,
only one of which has the lock.
</content>
</entry>
<entry>
<title>Add Futureproof&lt;T&gt; wrapper type, use for GuardDisabled enum</title>
<updated>2021-10-27T14:10:44Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2021-10-27T13:09:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5a4db67b16cf54d1373e2d71aa638358e5b36dc7'/>
<id>urn:sha1:5a4db67b16cf54d1373e2d71aa638358e5b36dc7</id>
<content type='text'>
The Futureproof&lt;T&gt; type lets you serialize and deserialize types whose
representations might change (most useful for enums that might grow
additional variants). It uses #[serde(untagged)] to accomplish this.

This gets used in order to make the `disabled` field of `Guard` more
robust against future guard disablement reasons being added.

A test was also added to verify correct behaviour of the new type.
</content>
</entry>
<entry>
<title>Remove try_lock from StorageHandle.</title>
<updated>2021-10-20T13:42:34Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-20T13:42:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fe85f44fd09a6ee2de9830773bc63f48894f7f65'/>
<id>urn:sha1:fe85f44fd09a6ee2de9830773bc63f48894f7f65</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace the return type of StorageMgr::try_lock with a tristate</title>
<updated>2021-10-20T13:37:53Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-20T13:37:53Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7b6ed9dab6a673b9b563fa3818806cec4b208240'/>
<id>urn:sha1:7b6ed9dab6a673b9b563fa3818806cec4b208240</id>
<content type='text'>
It's useful to know now only if we now have the lock, but also if we
just got it for the first time.
</content>
</entry>
<entry>
<title>Fix some typos (via the "typos" tool)</title>
<updated>2021-10-08T13:42:54Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-08T13:42:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=4a7c563b7911add6d2e5318135b93fcc94cc84de'/>
<id>urn:sha1:4a7c563b7911add6d2e5318135b93fcc94cc84de</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change tor-persist to use json instead of toml.</title>
<updated>2021-10-07T13:30:08Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-07T13:23:35Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7e68883a27c59b770022484626730e5b89b9587e'/>
<id>urn:sha1:7e68883a27c59b770022484626730e5b89b9587e</id>
<content type='text'>
The limitations with toml seemed to be reaching a head, and I wasn't
able to refactor the guardmgr code enough to actually have its state
be serializable as toml.  Json's limitations are much narrower.
</content>
</entry>
<entry>
<title>Add tests for tor-persist object-safe wrapper.</title>
<updated>2021-09-30T19:36:11Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-09-30T16:07:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=37040d06d13711cf0a0e4dad416ded28f18a15a2'/>
<id>urn:sha1:37040d06d13711cf0a0e4dad416ded28f18a15a2</id>
<content type='text'>
</content>
</entry>
</feed>
