<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-bytes/src/err.rs, branch arti-v1.1.12</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.12</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v1.1.12'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2023-08-17T11:52:29Z</updated>
<entry>
<title>tor-bytes: deprecate always_bug with From trait</title>
<updated>2023-08-17T11:52:29Z</updated>
<author>
<name>Emil Engler</name>
<email>me@emilengler.com</email>
</author>
<published>2023-08-17T09:45:17Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=73059827f037763bae465a972900a65221dc1f7b'/>
<id>urn:sha1:73059827f037763bae465a972900a65221dc1f7b</id>
<content type='text'>
This commit deprecates the `EncodeError::always_bug` function with a
`From&lt;EncodeError&gt; for Bug` trait, which is a more semantically correct
way to perform this action.
</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-bytes: Implement conversion from EncodeError to Bug</title>
<updated>2023-01-24T16:15:17Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2023-01-24T13:48:39Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a4a4b19f2129b48970b2b61a0aa85d529d39f408'/>
<id>urn:sha1:a4a4b19f2129b48970b2b61a0aa85d529d39f408</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add a Bug variant to tor-bytes::EncodeError.</title>
<updated>2022-07-11T15:18:51Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-07-09T17:18:02Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fa72365f0e4fea3e505cbad517d142dc1a3e8061'/>
<id>urn:sha1:fa72365f0e4fea3e505cbad517d142dc1a3e8061</id>
<content type='text'>
This will help down the line as we make more writers fallible.
</content>
</entry>
<entry>
<title>tor-bytes: Split EncodeError from Error</title>
<updated>2022-06-23T12:58:25Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-23T12:58:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=f699988c411a588b278158bf6852b1a8c63c7454'/>
<id>urn:sha1:f699988c411a588b278158bf6852b1a8c63c7454</id>
<content type='text'>
Since there is currently only one error type that can occur when
encoding, it doesn't make sense to use the full Error type here.

This split will help us downstream, as we no longer need to
categorize tor_bytes::Error as "an error in encoding or decoding".

I considered renaming Error to DecodeError, but that had pretty huge
downstream effects, and didn't seem to be worth it.
</content>
</entry>
<entry>
<title>Style fixes to tor-bytes errors.</title>
<updated>2022-06-22T13:00:59Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-06-22T13:00:59Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=3120f1092a1984a5904ad4772b9ead9e67905cec'/>
<id>urn:sha1:3120f1092a1984a5904ad4772b9ead9e67905cec</id>
<content type='text'>
Also note an issue with the design of tor-bytes::Error that should
probably go in a separate MR.
</content>
</entry>
<entry>
<title>tor-bytes: Prepare errors for nested reader/writer</title>
<updated>2022-06-09T16:08:56Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-06-07T19:18:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=655804f80414ad68f3a7e1b93ed38bb851e257fc'/>
<id>urn:sha1:655804f80414ad68f3a7e1b93ed38bb851e257fc</id>
<content type='text'>
Writing is going to be able to give errors too.
</content>
</entry>
<entry>
<title>Make Bug from InternalError, add bad_api_usage! and into_bad_api_usage!</title>
<updated>2022-02-15T11:40:24Z</updated>
<author>
<name>Ian Jackson</name>
<email>ijackson@chiark.greenend.org.uk</email>
</author>
<published>2022-02-14T18:31:45Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=b8f928e4f5cec07c8dff1de9f1c6f09b8dc17efc'/>
<id>urn:sha1:b8f928e4f5cec07c8dff1de9f1c6f09b8dc17efc</id>
<content type='text'>
Including supporting machinery, new kind field, etc.
</content>
</entry>
<entry>
<title>tor-bytes: Use InternalError.</title>
<updated>2022-02-09T19:39:04Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2022-02-09T19:39:04Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=7670a26d9c7a5eafa2f0e5cd32785f15a517fc26'/>
<id>urn:sha1:7670a26d9c7a5eafa2f0e5cd32785f15a517fc26</id>
<content type='text'>
This crate's Error type is too low-level to have an ErrorKind, but
it does make sense to use InternalError for the internal errors
here.
</content>
</entry>
<entry>
<title>Move all crates into a `crates` subdirectory.</title>
<updated>2021-08-27T13:53:09Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-08-27T13:53:09Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=557a0ff40b3731d4690767de27010bbeff08777d'/>
<id>urn:sha1:557a0ff40b3731d4690767de27010bbeff08777d</id>
<content type='text'>
This will cause some pain for now, but now is really the best time
to do this kind of thing.
</content>
</entry>
</feed>
