<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-rtmock/src/util.rs, branch arti-v1.2.7</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.7</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.2.7'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2024-06-18T14:18:58Z</updated>
<entry>
<title>tls: Support export keying material (RFC 5705)</title>
<updated>2024-06-18T14:18:58Z</updated>
<author>
<name>David Goulet</name>
<email>dgoulet@torproject.org</email>
</author>
<published>2024-06-04T18:56:21Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=144522a38a511ee0dd1f5bcee9bec01c971d1f6b'/>
<id>urn:sha1:144522a38a511ee0dd1f5bcee9bec01c971d1f6b</id>
<content type='text'>
Add a function to get the keying material as detailed by RFC 5705.
Because native-tls doesn't have such support, there is a place holder
panic!() for now.

This means that for the forseable future, relay would only work with
rustls until we figure out a solution for native-tls.

Closes #1432

Signed-off-by: David Goulet &lt;dgoulet@torproject.org&gt;
</content>
</entry>
<entry>
<title>Change deftly syntax to post 0.12.1 version</title>
<updated>2024-06-17T18:13:06Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-06-17T17:33:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=dddf07561868579ea687eeadaa8f863aa833c764'/>
<id>urn:sha1:dddf07561868579ea687eeadaa8f863aa833c764</id>
<content type='text'>
 * Change `pub` to `export`
 * Change the `=` in define to `:`
 * Change `pub_template_semver_check` to `template_export_semver_check`

Right now, 0.12.1 supports both syntaxes.  I have verified this branch
also compiles with
  https://gitlab.torproject.org/Diziet/rust-derive-deftly/-/merge_requests/402
  ee171ffaf56d7dcb7d75584054921153fe19b222
</content>
</entry>
<entry>
<title>tor-rtmock: Remove a todo comment</title>
<updated>2024-04-03T12:15:08Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-04-02T14:36:30Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=482de7997a32efe317498a13712da2544c481b06'/>
<id>urn:sha1:482de7997a32efe317498a13712da2544c481b06</id>
<content type='text'>
derive-deftly 0.10.x rejects unrecognised `#[deftly]` attributes.
</content>
</entry>
<entry>
<title>Switch to derive-deftly</title>
<updated>2024-04-03T12:11:39Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-04-02T11:58:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b71d0bf6cd413650550b40ce81e02dc47ae2fa5e'/>
<id>urn:sha1:b71d0bf6cd413650550b40ce81e02dc47ae2fa5e</id>
<content type='text'>
This is the combination of a number of separate commits, many of which
were generated by seddery, and then rebased and squashed.

Cargo.toml
  perl -i~ -pe 's{^derive-adhoc}{derive-deftly = "0.10"}' crates/*/Cargo.toml
  (not regenerated during rebase)

update Cargo.lock
  `cargo fetch` without --locked
  (regenerated during rebase)

seddery
  git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{^use derive_adhoc}{use derive_deftly}'
  git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bdefine_derive_adhoc\b}{define_derive_deftly}g'
  git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bAdhoc\b}{Deftly}g if m{derive}'
  git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\#\[derive_adhoc\b}{#[derive_deftly}g'
  git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{use derive_adhoc}{use derive_deftly}'
  git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bderive_adhoc\b}{derive_deftly_adhoc} if m{use.*deftly}'
  git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bderive_adhoc!}{derive_deftly_adhoc!}'
  (not regenerated during rebase)

Manually add `#[derive_deftly_adhoc]` where needed.

seddery
  git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\#\[adhoc\b}{#[deftly}g'
  git-ls-files | grep '\.rs$' | xargs perl -i~ -pe 's{\bderive_adhoc_template}{derive_deftly_template}'
  (not regenerated during rebase)

Manually fix up an import

Manually update some builder attrs

Manually fix up tor_rtmock::time_core
  This was missed in my seddery, due to me rebasing the branch and not
  redoing the seddery.
</content>
</entry>
<entry>
<title>tor-rtcompat: Make Runtime imply CoarseTimeProvider, etc. (fmt)</title>
<updated>2024-03-25T11:52:56Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-03-25T11:18:44Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ea85c4f67e6076901dc4ae61b03bebb9ae4a5e3a'/>
<id>urn:sha1:ea85c4f67e6076901dc4ae61b03bebb9ae4a5e3a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-rtcompat: Make Runtime imply CoarseTimeProvider, etc.</title>
<updated>2024-03-25T11:52:56Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2024-03-21T15:19:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=5834d988c8bf87ebce0a821d8f269280d47174bd'/>
<id>urn:sha1:5834d988c8bf87ebce0a821d8f269280d47174bd</id>
<content type='text'>
We must also impl CoarseTimeProvider for mocked runtimes.
</content>
</entry>
<entry>
<title>tor-rtmock: Use derive-adhoc for composite runtimes</title>
<updated>2023-07-07T09:26:44Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-07-06T14:46:35Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=6e495d8400e9e5b0deb087d572f821d7fd802b8f'/>
<id>urn:sha1:6e495d8400e9e5b0deb087d572f821d7fd802b8f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-rtmock: statically assert that the macro makes a Runtime impl</title>
<updated>2023-07-06T14:58:42Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-07-06T14:46:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=de97288c5325b331ef0805be16ead1ec73cb3941'/>
<id>urn:sha1:de97288c5325b331ef0805be16ead1ec73cb3941</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-rtmock: Use the same specified field for BlockOn and Spawn</title>
<updated>2023-07-06T14:58:42Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-07-06T14:34:24Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f0168b5220b47ea5563893d0e57f2b26a1c3be61'/>
<id>urn:sha1:f0168b5220b47ea5563893d0e57f2b26a1c3be61</id>
<content type='text'>
These are always the same and probably always will be.
</content>
</entry>
<entry>
<title>tor-rtmock: net: "Provide" a UDP "implementation" which doesn't work</title>
<updated>2023-07-06T14:14:40Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-07-05T11:28:41Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=395a616c9f1a513c2905548aa13d5345cd1b937c'/>
<id>urn:sha1:395a616c9f1a513c2905548aa13d5345cd1b937c</id>
<content type='text'>
Nothing in our tree actually *uses* the UDP in tests.

We want a mock UDP provider that isn't part of a real runtime, so that
we can make a totally-mock runtime for properly controlled testing.

It seems best to make this part of MockNetProvider rather than a
separate type.
</content>
</entry>
</feed>
