<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-config/src/path.rs, branch arti-v1.1.0</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2022-10-12T12:50:29Z</updated>
<entry>
<title>Allow "clippy::single_char_pattern" in tests.</title>
<updated>2022-10-12T12:50:29Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-10-11T13:00:07Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=82ad9eea5f80331d0e26a7d5ccfeed9e58a615fb'/>
<id>urn:sha1:82ad9eea5f80331d0e26a7d5ccfeed9e58a615fb</id>
<content type='text'>
This lint exists for perf reasons, and this is rarely relevant in
tests.

Using double quoted str is generally cognitively less burdensome.
</content>
</entry>
<entry>
<title>tor-config: CfgPath: Fix two typos "expaneded"</title>
<updated>2022-10-11T10:22:49Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-10-11T10:22:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d6b85b27c4e15a5e8c1bb6b13b3d978f97977cfd'/>
<id>urn:sha1:d6b85b27c4e15a5e8c1bb6b13b3d978f97977cfd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>CfgPath: Add support for ${PROGRAM_DIR}.</title>
<updated>2022-10-07T13:03:00Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-10-07T12:35:57Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e005d38edb886ed21f9f8c234c94432d76db3417'/>
<id>urn:sha1:e005d38edb886ed21f9f8c234c94432d76db3417</id>
<content type='text'>
`${PROGRAM_DIR}` expands to the equivalent of
`std::env::current_exe().parent()`, with appropriate unwrapping and
conversions.

It is expected to be useful for finding the locations of pluggable
transports in some kinds of bundles.

Closes #586.
</content>
</entry>
<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>
</feed>
