<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-config/src/path.rs, branch arti-v0.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-v0.4.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.4.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-05-20T14:34:32Z</updated>
<entry>
<title>Remove dbg!()s in tor-config</title>
<updated>2022-05-20T14:34:32Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-05-20T14:34:32Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9d26a91886990b08dc5b6033c290d417489c61fc'/>
<id>urn:sha1:9d26a91886990b08dc5b6033c290d417489c61fc</id>
<content type='text'>
This should satisfy our CI and turn it green again.
</content>
</entry>
<entry>
<title>CfgPath: Test serialisation round-trip with a binary format</title>
<updated>2022-05-03T16:42:54Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-04-27T15:35:55Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2da84857a5376c2f5b07ce565605064590defba3'/>
<id>urn:sha1:2da84857a5376c2f5b07ce565605064590defba3</id>
<content type='text'>
Use MessagePack.

Signed-off-by: Ian Jackson &lt;ijackson@chiark.greenend.org.uk&gt;
</content>
</entry>
<entry>
<title>CfgPath: Make it Serialize</title>
<updated>2022-05-03T16:42:54Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-04-27T15:57:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1e6c6169a8d2033796b588967b8b009337cbeb8f'/>
<id>urn:sha1:1e6c6169a8d2033796b588967b8b009337cbeb8f</id>
<content type='text'>
And provide round-trip tests.

As per https://gitlab.torproject.org/tpo/core/arti/-/issues/371
</content>
</entry>
<entry>
<title>CfgPath: Overhaul API</title>
<updated>2022-05-03T16:42:14Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-04-27T15:56:36Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ed970310e266c650d082794e246d8d077a39ce46'/>
<id>urn:sha1:ed970310e266c650d082794e246d8d077a39ce46</id>
<content type='text'>
Document that this can contain either a string for expansion, or a
literal PathBuf not for expansion.

Rename the `from_path` method to `new_literal`: a very important
difference is whether it gets expanded - less important than the Rust
type.  Also, now it takes `Into&lt;PathBuf&gt;`, which avoids a needless
clone.

(We don't change the API in `arti-client` because
`&amp;tempfile::Tempdir()` doesn't implement `Into&lt;PathBuf&gt;`, so
`arti-client` has to have some new `as_ref` calls.)

Provide accessors `as_unexpanded_str` and `as_literal_path`.  The
deserialisation already makes this part of the stable API,l so not
pvoding accessors seems just obstructive.  They are useful for tests,
too.

Add tests for the new entrypoints, and for deserialisation of both
variants from TOML (via config, or directly) and JSON.
</content>
</entry>
<entry>
<title>CfgPath: Change deserialisaation of Literal variant</title>
<updated>2022-05-03T16:42:14Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-04-27T15:36:43Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ae776392faf5c5feddb65ae6e8c49f3388105d3c'/>
<id>urn:sha1:ae776392faf5c5feddb65ae6e8c49f3388105d3c</id>
<content type='text'>
We introduce LiteralPath struct, so that a literal path deserialises
from
    some_path = { literal: "actual path string" }

This makes the deserialisation unambiguous.
</content>
</entry>
<entry>
<title>Test shell variable expansion on windows</title>
<updated>2022-03-05T01:40:42Z</updated>
<author>
<name>Michael</name>
<email>michael.prantl@hotmail.de</email>
</author>
<published>2022-03-05T01:40:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=206714f2e44003ea55facbba7193c5d55c34a9fe'/>
<id>urn:sha1:206714f2e44003ea55facbba7193c5d55c34a9fe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-config: Add HasKind support.</title>
<updated>2022-02-09T17:30:20Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-02-09T14:25:11Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=cb6de69ef6bfca672378b7e2ba1d1668145d5574'/>
<id>urn:sha1:cb6de69ef6bfca672378b7e2ba1d1668145d5574</id>
<content type='text'>
This required a few new ErrorKinds.
</content>
</entry>
<entry>
<title>Fix invalid path character on windows</title>
<updated>2022-01-31T20:53:13Z</updated>
<author>
<name>Michael</name>
<email>michael.prantl@hotmail.de</email>
</author>
<published>2022-01-31T20:53:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=334bba2ef2bb99bd0bc808db76a2c748578bba11'/>
<id>urn:sha1:334bba2ef2bb99bd0bc808db76a2c748578bba11</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Explain that CfgPath can look at the environment.</title>
<updated>2022-01-12T19:59:13Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-01-12T19:59:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e0ee3b50495430f20313e89204f399b26f7024f9'/>
<id>urn:sha1:e0ee3b50495430f20313e89204f399b26f7024f9</id>
<content type='text'>
Closes #246.
</content>
</entry>
<entry>
<title>Change sane_defaults() and with_directories()</title>
<updated>2021-11-29T19:20:34Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-11-29T19:20:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f107794b742fb075c673249999362afd28d77772'/>
<id>urn:sha1:f107794b742fb075c673249999362afd28d77772</id>
<content type='text'>
The sane_defaults() call is now the same as you get from a default
builder: by convention, we just call that method Default::default().

The with_directories() constructor makes more sense as a constructor
for the TorClientConfigBuilder than for TorClientConfig.
</content>
</entry>
</feed>
