<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-config/src/path.rs, branch arti-v1.1.2</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.2</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.2'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-01-27T13:28:02Z</updated>
<entry>
<title>Allow clippy::unchecked_duration_subtraction in tests</title>
<updated>2023-01-27T13:28:02Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-01-27T13:01:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a6dd92843edf2bd4c58de62a0d562921e4191ada'/>
<id>urn:sha1:a6dd92843edf2bd4c58de62a0d562921e4191ada</id>
<content type='text'>
This panics on error, and we're fine with a panic on misbehavior in
tests.
</content>
</entry>
<entry>
<title>tor-config: Update to shellexpand 3.x</title>
<updated>2022-12-06T15:15:22Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-12-06T15:11:39Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ba338bdf371250210474346bf0ac492d3bc70672'/>
<id>urn:sha1:ba338bdf371250210474346bf0ac492d3bc70672</id>
<content type='text'>
This is the new upstream version (published by me, recently).
It has the same MSRV and one breaking change:

The caller who specifies a home dir function for substituting into
strings, must now supply a string, not Path.  Previously shellexpand
would allow the caller to supply non-unicode data, and then simply not
substitute it.  That was an infelicity in the shellexpand API.

Now this infelicity is pushed into our code.  The overall behaviour of
Arti hasn't changed as a result.  And it seems reasonable to me.

shellexpand 3.x also has a module for expanding Paths instead, in
response to requests for this filed as upstream tickets.  We *could*
use that but I am not sanguine about that approach: the Pathness would
spread throughout much of our config and file handling code.

I think we should at the very least postpone trying to work with
invalid-unicode-paths as long as we can.
</content>
</entry>
<entry>
<title>tor-config: home dir handling: fmt pre-patch</title>
<updated>2022-12-06T15:11:58Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-12-06T15:11:26Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=010ffd6ea6c517379a8913c953932986d68a32a4'/>
<id>urn:sha1:010ffd6ea6c517379a8913c953932986d68a32a4</id>
<content type='text'>
</content>
</entry>
<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>
</feed>
