summaryrefslogtreecommitdiffstats
path: root/buffered-reader
AgeCommit message (Collapse)Author
2020-12-16Release 1.0.0.v1.0.0Justus Winter
- Release buffered-reader 1.0.0, sequoia-openpgp 1.0.0, and sequoia-sqv 1.0.0. - Also release sequoia-sop 0.22.0.
2020-12-14buffered-reader: Change BufferedReader::dump to take a sink.Justus Winter
2020-12-11Release 0.21.0.v0.21.0Justus Winter
2020-12-11Correct minimal versions.Nora Widdecke
- Versions required by feature or API usage: - anyhow 1.0.18. - policy::test::reject_seip_packet and policy::test::reject_cipher' fail - We use `impl From<anyhow::Error> for Box<dyn std::error::Error + Send + Sync + 'static>`, introduced in 1.0.5. - tokio 0.2.19 - We use `tokio::net::tcp::OwnedReadHalf`, introduced in 0.2.19. - chrono 0.4.10 - We use the `std` feature, introduced in 0.4.10. - thiserror 1.0.2 - futures and futures-util 0.3.5 - tempfile 3.1 - c_doctests require the same version of rand both as direct dependency and through tempfile. - Yanked versions: - structopt 0.3.11. 0.3.8 to 0.3.10 were yanked. - socket2 0.3.16. 0.3.0 to 0.3.15 were yanked. - Update our dependencies to the package versions required by other dependencies, e.g. structopt requires lazy_static 1.4.0. - clap 2.33 - lazy_static to 1.4.0 - libc to 0.2.66 - proc-macro2 to 1.0.7 - syn to 1.0.5. - winapi 0.3.8
2020-12-10openpgp: Add remaining assert_send_and_sync! calls.Azul
- See #615.
2020-12-10buffered-reader: Require Cookies to be Send and Sync.Azul
- This way the entire `BufferedReader<C>` will be `Send` and `Sync`. - Modify all other crates accordingly. - See #615.
2020-12-09buffered-reader: Assert that all types are Send and Sync.Justus Winter
- See #615.
2020-12-09buffered-reader: Don't explicitly storing the mapping.Justus Winter
- This makes file_unix::File Send and Sync.
2020-11-09buffered_reader: Explain fmt::Display use.Nora Widdecke
2020-11-09buffered_reader: Derive Debug for implementations.Nora Widdecke
2020-11-09buffered_reader: Use debug_struct for Display.Nora Widdecke
2020-11-09buffered_reader: Move dump to buffered_reader.Nora Widdecke
- Use the Cookie's debug output to allow for generic Cookies.
2020-11-09buffered-reader: Add Debug trait bound to Cookie.Nora Widdecke
2020-10-20buffered-reader: Fix error propagation.Justus Winter
- If reading from the wrapped reader returns an error, but we still can satisfy the request in Generic::data_helper, we do so. But, it is important to keep the error and return it next time the function is called. Otherwise, error conditions are mis-reported as end of file.
2020-10-20buffered-reader: Improve documentation.Justus Winter
2020-10-19buffered-reader: Embed the reader in struct Generic.Justus Winter
2020-10-19buffered-reader: Warn about missing documentation for public items.Justus Winter
2020-10-19buffered-reader: Make Generic::reader private and add accessors.Justus Winter
2020-10-19buffered-reader: New buffered reader 'Adapter'.Justus Winter
2020-10-14Release 0.20.0.v0.20.0Justus Winter
2020-10-14buffered-reader, openpgp: Port to bzip2 0.4.Justus Winter
2020-10-14Replace most 'extern crate' directives with 'use'.Justus Winter
- See #480.
2020-10-07buffered-reader: Unpin dependency flate2.Nora Widdecke
2020-09-15buffered-reader: Track file paths and display them in errors.Justus Winter
- Fixes #548.
2020-07-31Release 0.18.0.v0.18.0Justus Winter
2020-06-12Release 0.17.0.v0.17.0Justus Winter
2020-05-13openpgp, buffered-reader, ffi: Fix documentation warnings.Wiktor Kwapisiewicz
- Fix unmatched references.
2020-05-11buffered-reader: Use from_be_bytes.Nora Widdecke
- Replace bitshifts with {u16,u32}::from_be_bytes from the standard library.
2020-04-03Release 0.16.0.v0.16.0Justus Winter
2020-03-26Remove redundant field names.Wiktor Kwapisiewicz
2020-03-26buffered-reader: Fix error handling.Justus Winter
- Hat tip to Fabian Freyer of Radically Open Security.
2020-03-25buffered-reader: Improve performance of BufferedReader::drop_eof.Justus Winter
- Consume the whole buffer, not just DEFAULT_BUF_SIZE.
2020-02-07Release 0.14.0.v0.14.0Justus Winter
2020-01-29buffered-reader: Use the new as_boxed method.Justus Winter
- This cleanly avoids creating a linked list of references on the stack that grows every time we call into_inner.
2020-01-29buffered-reader: Make Dup polymorphic.Justus Winter
- Also, make PacketHeaderParser polymorphic over BufferedReader<Cookie> at the same time.
2020-01-29buffered-reader: Make Reserve polymorphic.Justus Winter
2020-01-29Revert "buffered-reader: Fix performance problem."Justus Winter
This reverts commit 9619dffaa756d8cfd6ec691699bd6ae4d59ecfb5.
2020-01-29buffered-reader: New method BufferedReader::as_boxed.Justus Winter
- This method returns the reader in a box. The nice thing is that we can provide a specialized implementation for Box<BufferedReader> that avoids boxing the reader twice. This cleanly addresses the issue worked around in 9619dffaa756d8cfd6ec691699bd6ae4d59ecfb5.
2019-12-20Release 0.13.0.v0.13.0Justus Winter
2019-11-25Release 0.12.0.v0.12.0Justus Winter
2019-11-18Fix more spellingDaniel Kahn Gillmor
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2019-10-31Change license to GPLv2+.Neal H. Walfield
2019-10-30Update authors.Neal H. Walfield
2019-10-30buffered-reader: Avoid unnecessarily reading from the inner reader.Neal H. Walfield
- If the internal buffer has some data, process that before reading more.
2019-10-30openpgp,buffered-reader: Optimize Vec<u8>::truncate manuallyNeal H. Walfield
- On debug builds, Vec<u8>::truncate is very, very slow. For instance, running the decrypt_test_stream test takes 51 seconds on my (Neal's) computer using Vec<u8>::truncate and <0.1 seconds using `unsafe { v.set_len(len); }`. The issue is that the compiler calls drop on every element that is dropped, even though a u8 doesn't have a drop implementation. The compiler optimizes this away at high optimization levels, but those levels make debugging harder.
2019-10-30buffered-reader: Fix Generic::data_helper.Neal H. Walfield
- The `Generic::data_helper` was not sufficiently careful when dealing with errors. In particular: - If `Generic::data_hard(1)` was called, and an error occured, and nothing was buffered or read, `Generic::data_helper` would return the empty string instead of the error. - If `Generic::data(n)` was called, and an error occured, but some data (< n bytes) was buffered, `Generic::data_helper` would return the error instead of the data that was read. - Fix these bugs. - Also, simplify the code and don't save whether we hit EOF or the error (which we can only return once, anyway). Instead, rely on the underlying reader to return EOF or the error again. - Fixes #174.
2019-10-30buffered-reader: Change drop_through to optionally match EOF.Neal H. Walfield
- Change BufferedReader::drop_through to optionally match EOF.
2019-10-27Fix more spelling errors caught by codespellDaniel Kahn Gillmor
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2019-10-25Release 0.11.0.v0.11.0Justus Winter
2019-09-27linting: Clear up bare trait object warningsDaniel Silverstone
Newer Rust compilers requre `dyn` marking trait objects. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>