<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-cell/src/restrict.rs, branch tor-llcrypto-v0.4.4</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=tor-llcrypto-v0.4.4</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=tor-llcrypto-v0.4.4'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-02-15T15:48:19Z</updated>
<entry>
<title>tor-cell: Implement {Relay,Chan}Msg for every body type</title>
<updated>2023-02-15T15:48:19Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-13T20:53:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3f1457ea046b724a1df33dee6c91c1e51a773dd5'/>
<id>urn:sha1:3f1457ea046b724a1df33dee6c91c1e51a773dd5</id>
<content type='text'>
This will make it ergonomic to decode a single body type without
having to declare a variant that accepts only a single message.
</content>
</entry>
<entry>
<title>tor-cell: Return a useful error when restrist_msg rejects a command.</title>
<updated>2023-02-09T15:20:31Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-08T14:11:03Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=1c1dec0948975bc111cff14aff7b14cc5a8efd2c'/>
<id>urn:sha1:1c1dec0948975bc111cff14aff7b14cc5a8efd2c</id>
<content type='text'>
</content>
</entry>
<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: Re-export paste so restrict_msg can work outside the crate.</title>
<updated>2023-02-09T15:20:31Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-08T13:26:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=037d1658b2b69ac6cc76801034d605e7bd073d27'/>
<id>urn:sha1:037d1658b2b69ac6cc76801034d605e7bd073d27</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-cell: Make RelayEarly a separate type.</title>
<updated>2023-02-09T15:20:28Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-08T12:41:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=16b9d23a7c0439b574eedd11323884f71a26148d'/>
<id>urn:sha1:16b9d23a7c0439b574eedd11323884f71a26148d</id>
<content type='text'>
This allows us to remove a shenanigan from `restricted_msg!{}`.
</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: documentation cleanups related to restricted_msg</title>
<updated>2023-02-07T21:03:14Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-07T19:45:40Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7feda22444662180314693adf3084f44b867d857'/>
<id>urn:sha1:7feda22444662180314693adf3084f44b867d857</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-cell: correct handling of optional msg types.</title>
<updated>2023-02-07T21:03:14Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2023-02-07T14:25:50Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=77cccdfd6e9972f9833c0e7e66a475cabff12483'/>
<id>urn:sha1:77cccdfd6e9972f9833c0e7e66a475cabff12483</id>
<content type='text'>
We need to make sure any `#[cfg(feature=...)]` attributes are
applied not only to our variant declarations, but also to the
branches in the match statements that deal with them.
</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: Rename ChanMsg and ChanCell-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:12:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=d99c13067939bd256614796be0a50637c3a2b3eb'/>
<id>urn:sha1:d99c13067939bd256614796be0a50637c3a2b3eb</id>
<content type='text'>
</content>
</entry>
</feed>
