<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/fslock-guard/src, branch main</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=main</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2026-07-15T17:56:49Z</updated>
<entry>
<title>add_warning: add reference to arti#2556</title>
<updated>2026-07-15T17:56:49Z</updated>
<author>
<name>Jim Newsome</name>
<email>jnewsome@torproject.org</email>
</author>
<published>2026-07-15T17:56:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6d333d6e6f0bf4d75fdc81e8865e06f6537d5af6'/>
<id>urn:sha1:6d333d6e6f0bf4d75fdc81e8865e06f6537d5af6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removed unnecessary lint</title>
<updated>2026-07-15T17:16:51Z</updated>
<author>
<name>pryty26</name>
<email>238962075+pryty26@users.noreply.github.com</email>
</author>
<published>2026-07-15T17:07:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d12e408c1d62f29e58647c91a2714c49e3004cc4'/>
<id>urn:sha1:d12e408c1d62f29e58647c91a2714c49e3004cc4</id>
<content type='text'>
Removed unnecessary lint
</content>
</entry>
<entry>
<title>maint: Run maint/add_warning to deny string slices</title>
<updated>2026-06-09T15:36:01Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-06-09T15:36:01Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9f5752a77fb57052c06ead0eeae606831f1e8e97'/>
<id>urn:sha1:9f5752a77fb57052c06ead0eeae606831f1e8e97</id>
<content type='text'>
This commit executes maint/add_warning with the just added change to
deny string slices except in tests.

I recommend auditing this by checking out the previous commit followed
by running the script yourself and then verifying that the diff is
identical to this commit.

This commit makes cargo clippy fail.  We will add exceptions in the next
commit.
</content>
</entry>
<entry>
<title>fslock-guard: Provide specialized android impls.</title>
<updated>2026-05-28T14:47:16Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-27T18:39:48Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=826ab5ec80f82326dc75979db3b0654bdb137d79'/>
<id>urn:sha1:826ab5ec80f82326dc75979db3b0654bdb137d79</id>
<content type='text'>
We need these because `File::lock()` and `File::try_lock()`
claim not to work on Android, and have to be emulated with flock.
For more information, see
&lt;https://github.com/rust-lang/rust/issues/148325&gt;.

Closes #2544.

Based on code by @syphyr.

Co-Authored-By: syphyr &lt;syphyr@gmail.com&gt;
</content>
</entry>
<entry>
<title>fslock-guard: Extract calls to {try_,}lock</title>
<updated>2026-05-28T14:46:17Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-27T18:29:22Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=15fa57b69ffbe1bf1d502e3124703ce25ddf6a70'/>
<id>urn:sha1:15fa57b69ffbe1bf1d502e3124703ce25ddf6a70</id>
<content type='text'>
We're about to provide android-only versions of these.
</content>
</entry>
<entry>
<title>fslock-guard: Use windows-sys and GetFileInformationByHandleEx.</title>
<updated>2026-05-12T17:23:12Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-06T17:41:36Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=39ba5597344f687ad5d7a98222a77f7e73dbce96'/>
<id>urn:sha1:39ba5597344f687ad5d7a98222a77f7e73dbce96</id>
<content type='text'>
Unlike winapi, windows-sys is maintained (by microsoft),
and supports more APIs.  We use it elsewhere in our tree,
but this was our largest usae of winapi.

The GetFileInformationByHandleEx variant includes an
explicit buffer size to make errors harder,
and enables us to get a 128-bit file identifier,
which is (supposedly) even more unique than the 64-bit
identifiers we were looking at before.
</content>
</entry>
<entry>
<title>fslock-guard: Fix up documentation a bit.</title>
<updated>2026-05-06T19:28:40Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-06T17:48:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c4c22610300333cf709abecf0252ae2b51ab24b6'/>
<id>urn:sha1:c4c22610300333cf709abecf0252ae2b51ab24b6</id>
<content type='text'>
This mainly amounts to clarifying some of our windows desiderata,
and removing the final refrences to fslock.
</content>
</entry>
<entry>
<title>fslock-guard: Compile on wasm.</title>
<updated>2026-05-06T19:28:40Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-06T17:01:06Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1b9b1dbed3c65b1e7475b0acde0acbe0dc24d15a'/>
<id>urn:sha1:1b9b1dbed3c65b1e7475b0acde0acbe0dc24d15a</id>
<content type='text'>
We can't actually open a file on wasm-unknown-unknown,
but it's more convenient for us if we don't have to conditionally
compile this crate every place that uses it.
</content>
</entry>
<entry>
<title>fslock-guard: Remove fslock dependency.</title>
<updated>2026-05-06T19:28:40Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-05-06T16:57:38Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ce78b7ab7032345d8b3dac2f723a8faa4e9ad66a'/>
<id>urn:sha1:ce78b7ab7032345d8b3dac2f723a8faa4e9ad66a</id>
<content type='text'>
We can do this since our msrv is now 1.89.0, where
File::lock is supported.
</content>
</entry>
<entry>
<title>Allow clippy::collapsible_if to trigger</title>
<updated>2026-02-16T15:22:24Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-02-09T11:49:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ade1d59e8e44c93b6ee447b72a2948a9652ec44e'/>
<id>urn:sha1:ade1d59e8e44c93b6ee447b72a2948a9652ec44e</id>
<content type='text'>
`clippy::collapsible_if` started triggering after bumping the MSRV to
1.88.

Since this triggers from a lot of places, and since there even are a
couple of instances where we explicitly allow `clippy::collapsible_ifs`,
I've opened #2342 for deciding what to do about it.
</content>
</entry>
</feed>
