summaryrefslogtreecommitdiffstats
path: root/tokio/tests/io_read_to_string.rs
AgeCommit message (Collapse)Author
2020-07-28io: rewrite read_to_end and read_to_string (#2560)Alice Ryhl
The new implementation changes the behavior such that set_len is called after poll_read. The motivation of this change is that it makes it much more obvious that a rouge panic won't give the caller access to a vector containing exposed uninitialized memory. The new implementation also makes sure to not zero memory twice. Additionally, it makes the various implementations more consistent with each other regarding the naming of variables, and whether we store how many bytes we have read, or how many were in the container originally. Fixes: #2544
2019-11-22default all feature flags to off (#1811)Carl Lerche
Changes the set of `default` feature flags to `[]`. By default, only core traits are included without specifying feature flags. This makes it easier for users to pick the components they need. For convenience, a `full` feature flag is included that includes all components. Tests are configured to require the `full` feature. Testing individual feature flags will need to be moved to a separate crate. Closes #1791
2019-10-26io: move into `tokio` crate (#1691)Carl Lerche
A step towards collapsing Tokio sub crates into a single `tokio` crate (#1318). The `io` implementation is now provided by the main `tokio` crate. Functionality can be opted out of by using the various net related feature flags.
2019-08-02io: move io helpers back into `tokio-io` (#1377)Lucio Franco
Utilities are made optional with a feature flag.
2019-07-19tokio: add AsyncReadExt::read_to_string (#1326)Taiki Endo