about summary refs log tree commit diff
path: root/library/std/src/io/copy
AgeCommit message (Collapse)AuthorLines
2025-01-24Fix testing of the standard library with Emscriptenbjorn3-0/+1
This does need EMCC_CFLAGS="-s MAXIMUM_MEMORY=2GB" avoid several OOMs.
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-07-29Reformat `use` declarations.Nicholas Nethercote-4/+3
The previous commit updated `rustfmt.toml` appropriately. This commit is the outcome of running `x fmt --all` with the new formatting options.
2023-11-26unify read_to_end and io::copy impls for reading into a VecThe 8472-4/+7
2023-07-09additional io::copy specializationsThe 8472-1/+37
- copying from `&[u8]` and `VecDeque<u8>` - copying to `Vec<u8>`
2023-06-17Extend io::copy buffer reuse to BufReader tooThe 8472-0/+108
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.