<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-config/src/path.rs, branch arti-v0.6.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.6.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.6.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-06-24T13:23:38Z</updated>
<entry>
<title>clippy: Consolidate many lints in maint/add_warning</title>
<updated>2022-06-24T13:23:38Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-06-24T12:24:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=23c352b96bf07c981bb396fa34ce83e512ada0b2'/>
<id>urn:sha1:23c352b96bf07c981bb396fa34ce83e512ada0b2</id>
<content type='text'>
Found these by disabling the nightly dbg macro special case.  Now, we
have a mechanism for globally adding suppressions to tests, we can use
that instead.
</content>
</entry>
<entry>
<title>tor-config: style fixes on CfgPathError.</title>
<updated>2022-06-22T12:36:13Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-22T12:36:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c39631af2770ef44d40f172cf24dd86f813cbfda'/>
<id>urn:sha1:c39631af2770ef44d40f172cf24dd86f813cbfda</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert "Remove dbg!()s in tor-config"</title>
<updated>2022-05-27T17:14:03Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-05-27T17:14:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=35e3841e4c18e510a00931c30048ae022e4eaf13'/>
<id>urn:sha1:35e3841e4c18e510a00931c30048ae022e4eaf13</id>
<content type='text'>
This was done because Nightly Rust complained about these, despite
them all being in tests.  That is now fixed upstream:
  https://github.com/rust-lang/rust-clippy/issues/8758
  https://github.com/rust-lang/rust-clippy/pull/8838

This reverts commit 9d26a91886990b08dc5b6033c290d417489c61fc.
</content>
</entry>
<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>
</feed>
