-
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
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
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?
-
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].
-
Maybe rustlings?
-
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 :/
-
If you like ORMs, Diesel. If you want to write your own queries, SQLx.
-
sqlx
🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite. (by launchbadge)
If you like ORMs, Diesel. If you want to write your own queries, SQLx.
-
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 :)
-
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)
-
The bitfield library has very few examples and I am not sure if it will work...
-
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)
-
Well then, I'd suggest https://github.com/Rahix/avr-hal :-)