<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/arti.git/crates/tor-proto/src/stream, branch arti-v0.0.1</title>
<subtitle>mirror of https://gitlab.torproject.org/tpo/core/arti
</subtitle>
<id>http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.0.1</id>
<link rel='self' href='http://git.dilluti0n.com/mirrors/arti.git/atom?h=arti-v0.0.1'/>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/'/>
<updated>2021-10-29T13:06:06Z</updated>
<entry>
<title>Improve docs of more (potentially re-exported) arti-client types</title>
<updated>2021-10-29T13:06:06Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2021-10-29T13:06:06Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a12fffc66accb0126500280f540b09c0922c1145'/>
<id>urn:sha1:a12fffc66accb0126500280f540b09c0922c1145</id>
<content type='text'>
Most of the structs in `arti-client` have example code now, to give a
clearer idea of how they're used.

Annoyingly, a lot of the types exposed in `arti-client` are actually
re-exports, which makes documentation a bit harder: example code that
references other parts of `arti-client` can't actually be run as a
doctest, since the crate it's in is a dependency of `arti-client`.

We might be able to fix this in future by doing the documentation in
`arti-client` itself, but rustdoc seems to have some weird behaviours
there that need to be investigated first (for example, it seems to merge
the re-export and original documentation, and also put the re-export
documentation on the `impl` block for some reason).

For now, though, this commit just writes the docs from the point of view
of an `arti-client` consumer, removing notes specific to the crate in
which they're defined. It's not ideal, but at least the end user
experience is decent.
</content>
</entry>
<entry>
<title>Use correct link for AsyncWriteExt::flush</title>
<updated>2021-10-29T00:48:54Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-29T00:48:54Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=2057142671c4ced0828c85b01dae02b9b1f0b172'/>
<id>urn:sha1:2057142671c4ced0828c85b01dae02b9b1f0b172</id>
<content type='text'>
</content>
</entry>
<entry>
<title>DataStream: document the importance of flush().</title>
<updated>2021-10-29T00:21:35Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-29T00:19:25Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=c8f65e532e136e76eb0de44eeba83aa2c723c994'/>
<id>urn:sha1:c8f65e532e136e76eb0de44eeba83aa2c723c994</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Replace references to arti-client in the documentation.</title>
<updated>2021-10-21T18:22:21Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-21T18:19:34Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=730be38867c82b8d5ca76a569e1b1175ddf75cd4'/>
<id>urn:sha1:730be38867c82b8d5ca76a569e1b1175ddf75cd4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Also implement tokio Async{Read,Write} on Data{Reader,Writer}.</title>
<updated>2021-10-19T19:49:49Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-19T19:49:49Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=fb2c7cb85a76acb2a80ae467a635ddb52d80a363'/>
<id>urn:sha1:fb2c7cb85a76acb2a80ae467a635ddb52d80a363</id>
<content type='text'>
This will let callers use the tokio traits on these types too, if
they call `split()` on the DataStream.

(Tokio also has a `tokio::io::split()` method, but it requires a
lock whereas `DataStream::split()` doesn't.)
</content>
</entry>
<entry>
<title>Add a little documentation about when you'll need the tokio trait.</title>
<updated>2021-10-19T19:48:55Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-19T19:48:55Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=a9a9f70eb9b8ff7ad5506fed60aaadab1b5c3572'/>
<id>urn:sha1:a9a9f70eb9b8ff7ad5506fed60aaadab1b5c3572</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tor-proto: implement tokio Async{Read, Write} traits conditionally</title>
<updated>2021-10-19T18:59:29Z</updated>
<author>
<name>eta</name>
<email>tor@eta.st</email>
</author>
<published>2021-10-19T16:26:52Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=ccd1d36e90dac9f282cdb7199d44f89004f0a070'/>
<id>urn:sha1:ccd1d36e90dac9f282cdb7199d44f89004f0a070</id>
<content type='text'>
futures::io::AsyncRead (and Write) isn't the same thing as tokio::io::AsyncRead,
which is a somewhat annoying misfeature of the Rust async ecosystem (!).

To mitigate this somewhat for people trying to use the `DataStream` struct with
tokio, implement the tokio versions of the above traits using `tokio-util`'s
compat layer, if a crate feature (`tokio`) is enabled.
</content>
</entry>
<entry>
<title>Use append in place of extend_from_slice in DataReaderImpl::add_data.</title>
<updated>2021-10-17T16:31:10Z</updated>
<author>
<name>Nick Mathewson</name>
<email>nickm@torproject.org</email>
</author>
<published>2021-10-17T16:31:10Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=9df9706010020d5434b0268fbbe23c2da3c9bfbb'/>
<id>urn:sha1:9df9706010020d5434b0268fbbe23c2da3c9bfbb</id>
<content type='text'>
Suggested by @cheako.
</content>
</entry>
<entry>
<title>Fix typos</title>
<updated>2021-09-07T04:52:00Z</updated>
<author>
<name>Jani Monoses</name>
<email>jani.monoses@gmail.com</email>
</author>
<published>2021-09-07T04:52:00Z</published>
<link rel='alternate' type='text/html' href='http://git.dilluti0n.com/mirrors/arti.git/commit/?id=25b4421fa6de950a3c0525c472b416b8f18c16f9'/>
<id>urn:sha1:25b4421fa6de950a3c0525c472b416b8f18c16f9</id>
<content type='text'>
</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>
