<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-cell/src/relaycell/udp.rs, branch ios-sqlite-hacks</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=ios-sqlite-hacks</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=ios-sqlite-hacks'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-02-09T15:20:31Z</updated>
<entry>
<title>Change tor_bytes::Error::BadMessage to a Cow.</title>
<updated>2023-02-09T15:20:31Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-08T13:51:27Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=48ab7b0463aaada172a426ad4b20a63d7f44cb84'/>
<id>urn:sha1:48ab7b0463aaada172a426ad4b20a63d7f44cb84</id>
<content type='text'>
Actually, to avoid making a breaking change, I'm deprecating
BadMessage and creating a new InvalidMessage variant that takes a
Cow.  This way I don't need to track every crate that re-exposes
tor_bytes::Error and call this a breaking change in those.

Making this change will allow tor_bytes errors to be much more
helpful.
</content>
</entry>
<entry>
<title>tor-cell: Have restrict_msg add conversion functions.</title>
<updated>2023-02-09T15:20:11Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-07T22:35:14Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=e832cbd29c2a81449e097961a86b6ef75db3dfc3'/>
<id>urn:sha1:e832cbd29c2a81449e097961a86b6ef75db3dfc3</id>
<content type='text'>
Every FooMsg type now implements Into&lt;AnyFooMsg&gt;, and
TryFrom&lt;FooMsg&gt;.

Additionally, it now implements From&lt;X&gt; for every distinct type that
it supports.  This last part lets us discard a bunch of code.

Unfortunately, I needed some downright hackish trickery in order to
get these macros to avoid generating `From&lt;AnyFooMsg&gt; for AnyFooMsg`
and conflicting with the blanket implementation.

The trickery to deal with RelayEarly and Relay being the same type
was not necessarily worth it; I will be separating them and removing
said trickery in the next commit.
</content>
</entry>
<entry>
<title>tor-cell: Rename RelayMsg and RelayCell-related  types.</title>
<updated>2023-02-07T21:03:14Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-07T14:18:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d63d7926bd5e94f4129dd1a44e696728125a6c4a'/>
<id>urn:sha1:d63d7926bd5e94f4129dd1a44e696728125a6c4a</id>
<content type='text'>
Thanks to rust-analyzer for making this simple.
</content>
</entry>
<entry>
<title>tor-cell: Make Body and MsgClass traits more uniform.</title>
<updated>2023-02-07T21:03:14Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-06T16:58:31Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=afd5232430578f47a242cd33d1efaebae9a4a117'/>
<id>urn:sha1:afd5232430578f47a242cd33d1efaebae9a4a117</id>
<content type='text'>
Doing this will make it much easier to implement a macro that
generates restricted instances of the Msg types (for #525).

The Body change is a breaking change.  I don't think anybody else
implements Body, but in theory they could.
</content>
</entry>
<entry>
<title>tor-cell: Stop using write_infallible</title>
<updated>2022-07-11T15:18:51Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-07-09T18:21:24Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=44314f5076fae075101a8c0cba9de0e7214b5fff'/>
<id>urn:sha1:44314f5076fae075101a8c0cba9de0e7214b5fff</id>
<content type='text'>
Also, stop using "expect" and "assert!" to check for errors.
</content>
</entry>
<entry>
<title>tor-cell: Make encoding method signatures fallible.</title>
<updated>2022-07-11T15:18:51Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-07-09T17:15:13Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a0a88643f8a6972d2664ea4268d21d596d0e3c56'/>
<id>urn:sha1:a0a88643f8a6972d2664ea4268d21d596d0e3c56</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert each write_onto_infallible implementation into write_onto.</title>
<updated>2022-07-11T15:18:51Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-07-08T15:37:50Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=8810af7f6522d43408e30d04d21c4ec6102d73b3'/>
<id>urn:sha1:8810af7f6522d43408e30d04d21c4ec6102d73b3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rename "write" methods on tor-bytes to "write_infallible".</title>
<updated>2022-07-11T15:18:51Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-07-08T15:20:50Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7938f65c66020d6d7f143307f3336f340f398c63'/>
<id>urn:sha1:7938f65c66020d6d7f143307f3336f340f398c63</id>
<content type='text'>
This comprises four renames:

```
write_onto -&gt; write_onto_infallible
write_into -&gt; write_into_infallible
write -&gt; write_infallible
writer_and_consume -&gt; write_and_consume_infallible.
```

The rest of this branch will be concerned with replacing these
`_infallible` methods with ones that return a `Result`.  This is
part of #513.
</content>
</entry>
<entry>
<title>Fix a couple of typos in rustdoc comments.</title>
<updated>2022-06-24T12:18:15Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-24T12:18:15Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ea3160737c8c7737136f29b974f1a72a14b00014'/>
<id>urn:sha1:ea3160737c8c7737136f29b974f1a72a14b00014</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-cell: error usefulness and style fixes</title>
<updated>2022-06-22T14:02:42Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-22T14:02:42Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c3da82fc2d44816a96ac6175a843321199f34af7'/>
<id>urn:sha1:c3da82fc2d44816a96ac6175a843321199f34af7</id>
<content type='text'>
</content>
</entry>
</feed>
