<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/fslock-guard, 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-08-03T19:48:24Z</updated>
<entry>
<title>Bump versions for crates with non-functional changes</title>
<updated>2026-08-03T19:48:24Z</updated>
<author>
<name>Steven Engler</name>
<email>opara@torproject.org</email>
</author>
<published>2026-08-03T19:48:16Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6b9ec7ca47501c26a7974e050b81d9ae4f49cb1d'/>
<id>urn:sha1:6b9ec7ca47501c26a7974e050b81d9ae4f49cb1d</id>
<content type='text'>
```bash
bump=(caret equix fs-mistrust fslock-guard futures-copy oneshot-fused-workaround retry-error safelog slotmap-careful test-temp-dir web-time-compat)
./maint/bump-nodep "${bump[@]}"
```
</content>
</entry>
<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>Version bumps for 2.5.0</title>
<updated>2026-06-30T13:42:13Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2026-06-30T13:42:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=245b03f5a48b4e58f8c84f072920160fc87be500'/>
<id>urn:sha1:245b03f5a48b4e58f8c84f072920160fc87be500</id>
<content type='text'>
Closes #2617.

We've lucked out this time, and it turns out that every one of our
published crates gets a minor bump.  So this was generated with:

```
for cr in $(./maint/list-crates); do
   cargo set-version -p $cr --bump minor
done
```
</content>
</entry>
<entry>
<title>Bump MSRV to 1.91</title>
<updated>2026-06-15T13:18:11Z</updated>
<author>
<name>Clara Engler</name>
<email>cve@cve.cx</email>
</author>
<published>2026-06-15T12:59:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e93e0e2f9f42f526a8e1aa64e6ea659ef31dd800'/>
<id>urn:sha1:e93e0e2f9f42f526a8e1aa64e6ea659ef31dd800</id>
<content type='text'>
This commit bumps the MSRV to 1.91 which was released on 2025-10-30.

The Cargo.toml files were updated as follows:
```sh
git ls-files | \
    grep ".*Cargo\.toml$" | \
    xargs sed -i '' 's/^rust-version = "1\.89"$/rust-version = "1\.91"/g'
```

The following files were updated manually:
```
	modified:   .gitlab-ci.yml
	modified:   README.md
	modified:   flake.nix
	modified:   maint/docker-android/Dockerfile
```
</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>Bump the versions of the non-{arti-,tor-} crates</title>
<updated>2026-06-01T16:30:04Z</updated>
<author>
<name>Gabriela Moldovan</name>
<email>gabi@torproject.org</email>
</author>
<published>2026-06-01T16:30:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d480c7653c219e019ad3f2387dfdce7f6d85e4d3'/>
<id>urn:sha1:d480c7653c219e019ad3f2387dfdce7f6d85e4d3</id>
<content type='text'>
The non-{arti-,tor-} crates are:
```
./maint/list-crates  | rg -v '^(tor|arti)'
oneshot-fused-workaround
web-time-compat
slotmap-careful
test-temp-dir
fslock-guard
hashx
equix
caret
fs-mistrust
safelog
retry-error
futures-copy
```

We split them in the following categories:
  * crates with no changes (no version bumps):

    ```
     oneshot-fused-workaround: No change.
     web-time-compat: No change.
     slotmap-careful: No change.
     test-temp-dir: No change.
     caret: No change.
     safelog: No change.
     retry-error: No change.
     futures-copy: No change.
    ```

    Obtained with:
    ```
    maint/changed-crates -v "arti-v$LAST_VERSION" 2&gt;&amp;1 &gt;/dev/null | grep -i "no change" | grep -v '\(tor\|arti\)-'
    ```

  * crates that only have non-functional changes (bump the patch version,
    but not the dependend-on version):
    - equix

  * crates where functional changes were made, but no APIs were broken
    (bump patch):
    - fs-mistrust

  * crates where APIs were broken (bump minor):
    - hashx
    - fslock-guard

The bumps from this commit were created using this script:

```
PATCH_NF=(
equix
)

PATCH="
fs-mistrust
"

MINOR="
hashx
fslock-guard
"

./maint/bump-nodep "${PATCH_NF[@]}"

for crate in $PATCH; do
    cargo set-version --bump patch -p $crate;
done

for crate in $MINOR; do
    cargo set-version --bump minor -p $crate;
done
```
</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>
</feed>
