Hey Rustaceans! Got a question? Ask here! (27/2022)!

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • SonarQube - Static code analysis for 29 languages.
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Onboard AI - Learn any GitHub repo in 59 seconds
  • Revelo Payroll - Free Global Payroll designed for tech teams
  • rust-analyzer

    A Rust compiler front-end for IDEs

    OK, I found the answer. As often happens with Rust, the answer is "no, this is not currently possible." Open GH issue: https://github.com/rust-lang/rust-analyzer/issues/4558

  • pmp-library

    The Polygon Mesh Processing Library

    In C++, there is this great mesh processing library called PMP and I have noticed that Rust is lacking in that regard. So I wondered that if I wanted to bring most of the functionality into Rust (and not just use bindings), how would people usually go about this?

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • rp-hal

    A Rust Embedded-HAL for the rp series microcontrollers

    You should join matrix channel on project https://github.com/rp-rs/rp-hal very smart people are figuring this out. From what I understood the firmware is closed sourced and provided as a blob and there is a AT commands API working. So it seems this will be awkward but doable

  • Catch

    A modern, C++-native, test framework for unit-tests, TDD and BDD - using C++14, C++17 and later (C++11 support is in v2.x branch, and C++03 on the Catch1.x branch)

    Is there a Catch-like test framework which is tokio aware? I've seen some implementations, but they use #[test] instead of #[tokio::test].

  • Rustlings

    :crab: Small exercises to get you used to reading and writing Rust code!

    Maybe rustlings?

  • tutorials

    📚 Stash of tutorials completed for learning cool stuff. (by mihaigalos)

    I'm trying to use reqwest to download a file and show it's progress. I found exactly what I need here however this seems to just write ontop of the file rather than resume, That still eludes me. Is there an example somewhere I can look at? Most of the examples I've found here have broken links :/

  • diesel

    A safe, extensible ORM and Query Builder for Rust

    If you like ORMs, Diesel. If you want to write your own queries, SQLx.

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • sqlx

    🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, SQLite, and MSSQL. (by launchbadge)

    If you like ORMs, Diesel. If you want to write your own queries, SQLx.

  • exif-rs

    Exif parsing library written in pure Rust

    I dont want the files to waste a lot of space so i decided to resize them. For that i used the resize method from the "image" crate. Everything works fine, until i start to upload images above 5mb. Then the resize method starts to rotate the images. I think i narrowed it down to the resize function deleting any existing exif data inside the image file. That way the orientation flag is removed and the image is in its default position. I already tried to fix this, by saving the exif data before resizing and then rewriting it to the image file. The only library that i could find that supports writing (at least for png and jpeg) was this one: kamadax-exif. The problem is, that when i write the exif data (all the previous data or just the orientation data) the file gets corrupted. Now to my question: Can someone recommend a library that can resize images, that preserves the aspect ratio and does not delete the exif data? if not, does someone have an idea on how to resize the images differently? Or maybe there exists another exif data crate that i can use? I hope this question is understandable, thanks in advance :)

  • image

    Encoding and decoding images in Rust (by image-rs)

    As for image processing, I'd start on crates.io and search for "image processing" and skim through to find the most downloaded crates -- image seems to be the most popular, with over 7 million downloads, so I'd check if that has what you want, and if not photon-rs seemed relatively mature with perhaps more features (albeit far less commonly used)

  • rust-bitfield

    This crate provides macros to generate bitfield-like struct.

    The bitfield library has very few examples and I am not sure if it will work...

  • reqwest

    An easy and powerful Rust HTTP Client

    hyper is kind of a low-level library - if you want to "just make request", then I'd suggest to take a look at https://docs.rs/reqwest :-) (it uses hyper underneath, providing a simpler, high-level interface for it)

  • avr-hal

    embedded-hal abstractions for AVR microcontrollers

    Well then, I'd suggest https://github.com/Rahix/avr-hal :-)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts