<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/io/util, branch 1.77.2</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.77.2</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.77.2'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2023-07-30T18:36:33+00:00</updated>
<entry>
<title>Rollup merge of #98154 - vidhanio:master, r=workingjubilee</title>
<updated>2023-07-30T18:36:33+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2023-07-30T18:36:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=27e3a740ae28ed0d8ad27b617337cf4bfc6291d2'/>
<id>urn:sha1:27e3a740ae28ed0d8ad27b617337cf4bfc6291d2</id>
<content type='text'>
merge functionality of `io::Sink` into `io::Empty`

Many times, there is a need for a simple dummy `io::Read`er + `io::Write`r, but currently the only options are `io::Empty` and `io::Sink` respectively. Having both of their functionality together requires writing your own boilerplate for something that makes sense to have in the standard library. This PR adds the functionality of `io::Sink` to `io::Empty`, making `io::Empty` be able to perform the tasks of both of the previous structs. (This idea was first mentioned in #24235)

Note: I also updated some doc comments in `io::utils` in this pull request to fix inconsistencies between `io::Sink` and `io::Empty`.

API Change Proposal: https://github.com/rust-lang/libs-team/issues/49
</content>
</entry>
<entry>
<title>Extend io::copy buffer reuse to BufReader too</title>
<updated>2023-06-17T09:07:04+00:00</updated>
<author>
<name>The 8472</name>
<email>git@infinite-source.de</email>
</author>
<published>2023-06-05T23:09:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=373878573569371be876bb838607c64076f17f49'/>
<id>urn:sha1:373878573569371be876bb838607c64076f17f49</id>
<content type='text'>
previously it was only able to use BufWriter. This was due to a limitation in the
BufReader generics that prevented specialization. This change works around the issue
by using `where Self: Read` instead of `where I: Read`. This limits our options, e.g.
we can't access BufRead methods, but it happens to work out if we rely on some
implementation details.
</content>
</entry>
<entry>
<title>feat: merge functionality of `io::Sink` into `io::Empty`</title>
<updated>2023-05-05T13:32:33+00:00</updated>
<author>
<name>Vidhan Bhatt</name>
<email>me@vidhan.io</email>
</author>
<published>2023-05-05T13:32:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=79a22f4954704d65f8356be59c3d07851e31f074'/>
<id>urn:sha1:79a22f4954704d65f8356be59c3d07851e31f074</id>
<content type='text'>
</content>
</entry>
<entry>
<title>non-linux platforms</title>
<updated>2022-08-05T16:18:51+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>nrc@ncameron.org</email>
</author>
<published>2022-06-07T07:43:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1a2122fff015d1d7fb31fe3a55e49027d67d79af'/>
<id>urn:sha1:1a2122fff015d1d7fb31fe3a55e49027d67d79af</id>
<content type='text'>
Signed-off-by: Nick Cameron &lt;nrc@ncameron.org&gt;
</content>
</entry>
<entry>
<title>std::io: migrate ReadBuf to BorrowBuf/BorrowCursor</title>
<updated>2022-08-04T14:29:32+00:00</updated>
<author>
<name>Nick Cameron</name>
<email>nrc@ncameron.org</email>
</author>
<published>2022-05-13T14:06:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c1aae4d27902aaaa0d8e7d1a76d030b4fc90f329'/>
<id>urn:sha1:c1aae4d27902aaaa0d8e7d1a76d030b4fc90f329</id>
<content type='text'>
Signed-off-by: Nick Cameron &lt;nrc@ncameron.org&gt;
</content>
</entry>
<entry>
<title>read_buf</title>
<updated>2021-11-03T05:47:20+00:00</updated>
<author>
<name>DrMeepster</name>
<email>19316085+DrMeepster@users.noreply.github.com</email>
</author>
<published>2021-01-18T06:28:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=98c6200b1615e6a40fd63984f81bd55d589b42a5'/>
<id>urn:sha1:98c6200b1615e6a40fd63984f81bd55d589b42a5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>specialize io::copy to use the memory of the writer if it is a BufWriter</title>
<updated>2021-01-31T13:58:03+00:00</updated>
<author>
<name>The8472</name>
<email>git@infinite-source.de</email>
</author>
<published>2020-11-01T18:59:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=410550665601a8abe8935f7b55d5732fe4c4224f'/>
<id>urn:sha1:410550665601a8abe8935f7b55d5732fe4c4224f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>impl Seek for Empty</title>
<updated>2021-01-30T22:00:10+00:00</updated>
<author>
<name>oberien</name>
<email>jaro.fietz@gmx.de</email>
</author>
<published>2020-10-17T10:08:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f1cd17961ccaac4bfaeeab81969cf36c56eec4a5'/>
<id>urn:sha1:f1cd17961ccaac4bfaeeab81969cf36c56eec4a5</id>
<content type='text'>
Fix #78029
</content>
</entry>
<entry>
<title>Make some std::io functions `const`</title>
<updated>2020-11-06T16:48:26+00:00</updated>
<author>
<name>Benoît du Garreau</name>
<email>benoit.dugarreau@platform.sh</email>
</author>
<published>2020-11-06T16:46:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=ae059b532fcc504b75388d043d56ce12fdb055a7'/>
<id>urn:sha1:ae059b532fcc504b75388d043d56ce12fdb055a7</id>
<content type='text'>
Includes:
- io::Cursor::new
- io::Cursor::get_ref
- io::Cursor::position
- io::empty
- io::repeat
- io::sink
</content>
</entry>
<entry>
<title>std: move "mod tests/benches" to separate files</title>
<updated>2020-08-31T02:56:59+00:00</updated>
<author>
<name>Lzu Tao</name>
<email>taolzu@gmail.com</email>
</author>
<published>2020-08-27T13:45:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a4e926daeeaedc9178846711daf1f4cb6ce505fb'/>
<id>urn:sha1:a4e926daeeaedc9178846711daf1f4cb6ce505fb</id>
<content type='text'>
Also doing fmt inplace as requested.
</content>
</entry>
</feed>
