Skip Navigation

User banner
Rust

Members
0
Posts
64
Created
3 yr. ago

What 27 merged PRs taught me about testing a Rust rewrite (uutils) as a black box

I have been sending small fixes to uutils, the Rust rewrites of coreutils, findutils, sed and procps. The way I find the bugs is simple: record how the GNU tool behaves on a few hundred cases (stdout, stderr, exit code, files it touches), then replay the same cases against the uutils build and read the diffs. The write-up is about what that turned up. Almost nothing was a crash. It was error message wording, option parsing edge cases like a bare - being eaten as an option value, exit codes, and a few GNU version differences that look like bugs but are really version pins. So far that is 44 bug reports and 51 fix PRs upstream, 34 of them merged. The recorder is a small open source tool I wrote: https://github.com/emirmrkaljevic/behave Happy to hear how others test rewrites for compatibility.

dev.to

Diesel 2.4.0

I'm happy to announce the release of Diesel 2.4.0, a ORM and query builder for Rust. This release contains the development of the last 14 months, including the contributions of 76 people. Headline features include: • Support for database views • Improved support for enums • Support for batch update statements • A distinct backend for MariaDB • Extended support for SQLite functionality, including hooks, pragmas and BLOB's • Support for using Diesel (SQLite) in a no-std environment • Migrations written in Rust • Support for diesel-async in #[derive(MultiConnection)] See the announcement blog post about details to each feature: https://diesel.rs/news/2_4_0_release/ I would like to use this possibility to thank all contributors and sponsors that made this release possible. A special thank goes to Luca for his large contributors to the release, to Prototype Found for funding the development of the Database View support and to RustFoundation for funding the general maintenance. Nevertheless, the Diesel project is always looking for support. You can help by: • Contributing Code, Documentation, or Guides. • Answering questions in our discussion forum • Reporting bugs in our issue tracker • Helping to triage issues in our issue tracker • Sponsoring the maintainers. • Filling out this survey about about the current state and future developments of Diesel (EDIT: lemmy seems to break that link, please use that one from the blog post instead) Feel free to answer questions about the release or Diesel in general, I will try to answer them in the next days.

diesel.rs