Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
🌉 bridged from !rust@programming.dev by Tidepool
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
🌉 bridged from !rust@programming.dev by Tidepool
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.
A datetime library for Rust
Announcing Rust 1.100.0 | Rust Blog
What's in 1.100.0 stable • Never type • Allocator API • DropGuard API • Conjuring zero-sized types • Reporting unused dependencies in Cargo • Reducing Cargo cache collisions • Cargo min-publish-age • Stabilized APIs
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.
Tutorial for Verus, a language and checker for statically verifying correctness of Rust code sections
Here the verus github page with some code samples in color: https://github.com/verus-lang/verus