<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-rtmock/src/task.rs, branch arti-v1.7.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.7.0</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.7.0'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2025-08-07T15:28:36Z</updated>
<entry>
<title>Switch Cargo.toml files to edition 2024.</title>
<updated>2025-08-07T15:28:36Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-08-06T01:19:58Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=77b0de43b8c67cdb81befe0680a3df43b6ad37bc'/>
<id>urn:sha1:77b0de43b8c67cdb81befe0680a3df43b6ad37bc</id>
<content type='text'>
First, run

```
git grep -l "^edition =" |
    xargs perl -i -pe 's/^edition *=.*/edition = "2024"/;'
```

Second, manually verify that all Cargo.toml files have changed,
and nothing else has changed.

Third, run cargo fmt again.
</content>
</entry>
<entry>
<title>Update code for Edition 2024</title>
<updated>2025-08-07T15:28:31Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-08-07T12:44:47Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=0453fb4be8cf618b94230812957ce1db1afe74bd'/>
<id>urn:sha1:0453fb4be8cf618b94230812957ce1db1afe74bd</id>
<content type='text'>
1. Run cargo fix --edition

2. Selectively revert the "if let"-&gt;"match" changes.
   These changes are meant to protect us from the lifetime changes
   for "if let" bindings in Rust 2024.
   But we're not actually relying on the old lifetime rules
   anywhere, and the match syntax here is quite ugly.

3. Automatically revert `$pat:expr_2021` to `$pat:expr`.
   (We don't actually want to restrict the expression syntax
   that our macros accept).
   Done with
   `git grep -l expr_2021 | xargs perl -i -pe 's/expr_2021/expr/g;'`

4. Run cargo fmt.
</content>
</entry>
<entry>
<title>tor-rtmock: Use subthread_spawn for spawn_blocking.</title>
<updated>2025-06-09T18:07:22Z</updated>
<author>
<name>Wesley Aptekar-Cassels</name>
<email>me@wesleyac.com</email>
</author>
<published>2025-06-09T17:45:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1704d094a31013afafaac9f0fd87dcfa8db7f511'/>
<id>urn:sha1:1704d094a31013afafaac9f0fd87dcfa8db7f511</id>
<content type='text'>
Fixes: #2033
</content>
</entry>
<entry>
<title>rtmock: use Option::replace instead of mem::replace</title>
<updated>2025-05-16T01:39:48Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2025-05-16T01:39:48Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9aa5137a79ea9af627135d088468998a208cddbb'/>
<id>urn:sha1:9aa5137a79ea9af627135d088468998a208cddbb</id>
<content type='text'>
Option::replace has been around since 1.31,
but the clippy warning is new.
</content>
</entry>
<entry>
<title>tor-rtcompat: task tests: Allow a clippy lint</title>
<updated>2025-04-10T16:22:19Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-04-10T16:22:07Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7fc0ec4f2161e1023a2243e207879d2dbd5c754d'/>
<id>urn:sha1:7fc0ec4f2161e1023a2243e207879d2dbd5c754d</id>
<content type='text'>
This doesn't seem to happen with my local compiler.  Anyway, suppress
it.  I don't think we want to split up this function.
</content>
</entry>
<entry>
<title>tor-rtcompat: task: Break out subthread_yield</title>
<updated>2025-04-10T14:34:34Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-04-10T14:34:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=cedb3da4588b96eae0d6750f10fe43dd4d504a63'/>
<id>urn:sha1:cedb3da4588b96eae0d6750f10fe43dd4d504a63</id>
<content type='text'>
This gets rid of a clippy complaint about subthread_block_on_future
being too complicated.
</content>
</entry>
<entry>
<title>tor-rtcompat: task tests: Allow a clippy lint</title>
<updated>2025-04-10T14:34:34Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-04-10T14:26:39Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c71aa81d5287531421adb2175ad68ef524d76d3b'/>
<id>urn:sha1:c71aa81d5287531421adb2175ad68ef524d76d3b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-rtcompat: BlockOn: relax bounds on reenter_block_on</title>
<updated>2025-04-09T16:52:03Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-04-07T16:58:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2a7dc6c46274e0d96e773c031cabd5373483429e'/>
<id>urn:sha1:2a7dc6c46274e0d96e773c031cabd5373483429e</id>
<content type='text'>
The future no longer needs to be `Send + 'static`.
</content>
</entry>
<entry>
<title>tor-rtmock: task: subthread_block_on_future; Yield a bit more</title>
<updated>2025-04-09T16:52:03Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-04-09T16:20:16Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a56e724360f6c1e33e892970b88f651296e79af7'/>
<id>urn:sha1:a56e724360f6c1e33e892970b88f651296e79af7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-rtmock: task tests: New subhtread_pingpong test</title>
<updated>2025-04-09T16:52:03Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2025-04-09T15:39:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=eadb6e980fe2b8acc8d6ea3b1ea8d7c8aa2cc188'/>
<id>urn:sha1:eadb6e980fe2b8acc8d6ea3b1ea8d7c8aa2cc188</id>
<content type='text'>
This test demonstrates that the intended use pattern compiles and
works.

It couldn't exist until now because we couldn't conveniently make a
`Send + 'static` future out of `rx.next()`.
</content>
</entry>
</feed>
