Help needed about tokio-rustls usage
Hi fellow rust users! I want to use the tokio-rustls crate for encrypting traffic between client and sever for my chat-server client project 8080_msg. However I can't figure out how you go from a...
View ArticleWhich rule does it regulate that `dyn Trait + AutoTrait` can be coerced to...
Consider this example: use std::error::Error; fn invoke()->Box<dyn Error + Send + Sync>{ todo!() } fn main(){ let b:Box<dyn Error> = invoke(); } I tried to find the relevant rules in...
View ArticleLooking for examples of new protocol families?
Hi - I am looking to port an LKM over to Rust and it's been difficult getting started. What the LKM does is create a new address families at the application and transport layer. What I'm looking for...
View ArticleHow to add binary I/O to boa engine?
I'm trying to add proper binary I/O capabilities to the boa engine (GitHub - boa-dev/boa: Boa is an embeddable Javascript engine written in Rust. · GitHub). This is what I have so far use...
View ArticleTest That! 0.6.0: A powerful assertion library for Rust
Hi everyone, I just pushed version 0.6.0 of the test assertion crate Test That!. I created Test That! a few months ago as a fork of GoogleTest Rust (of which I am the original author) in order to...
View ArticlePLT symbols with `cxx-build`
Hey folks, sorry if this is the wrong place to post this, but I can't really distinguish whether this problem is related to cxx, rustc, rust-lld, or gcc, static linking or something else entirely. I'm...
View ArticleHow to super-impose images?
The frame-buffer coordinates are larger than the image1 and image2. So they need to be wrapped around. I was instructed to cast my coordinate to a signed integer and use rem_euclid for this, but I am...
View ArticleBest Way to Process a Large CSV Time-Series Dataset in Rust?
I’ve been experimenting with Rust for processing larger time-series datasets and I’m trying to figure out the most sensible approach once the files stop being small. The data itself is pretty simple:...
View ArticleWhy doesn't the debugger stop on loop `break`?
I am debugging some Rust code, and inside an if condition, there was only a single line: break, which exits the loop. I couldn't confirm whether the condition was true because the debugger didn't step...
View ArticleFeatures for sqlx for Cargo.toml
Hello, I’m posting here because I still don’t fully understand how to use SQLX to connect to different relational databases. I’m currently building the backend for a blog and my database will be...
View ArticleLibrary providing a self-describing, byte format which works with serde?
Hello, I am looking for a serde format which, unlike postcard is self-describing, and unlike bincode, works well with serde and lets you use serde attributes like flatten, etc. It also needs to be...
View ArticleWays To Improve Rust Debug Experience
The recent Rust debugger survey reminded me of my experiments on #[debugger_visualizer] and other tricks to improve the debug experience. So I made a tool called dbgvis to help with that. Introduction...
View ArticleBlog post: Handling exactly-one feature validation in Rust
While developing my framework historia, I faced a need to make a binary crate run with exactly one feature from a group. Cargo doesn't have any built-in options for mutually exclusive features — and...
View ArticleMutable reference to isize conversion and in reverse soundness
let installed_apps = platform::list_installed_apps(); let running_apps_offset = installed_apps.len(); let mut incorporable_apps = Self { inner: installed_apps, running_apps_offset }; // SAFETY: The...
View ArticleTrait labels in std docs
Recently I noticed this: rustdoc apparently adds Read and Write labels at the top for types that implement std::io::Read and std::io::Write. Have I just not noticed this before, or is a somewhat new...
View ArticleClose fantoccini client when an assertion fails inside an integration test
Hello, I'm new to Rust and I'm experimenting with it to do a personal web project. I'm at the stage where I want to implement integration tests. For this I've decided to use the fantoccini crate to...
View ArticleHow to build Rust in < 8GB?
I need to build Rust on the arm64 FreeBSD system with only 12 GB dedicated to the VM (because the total memory is only 16GB on this system). The Rust build runs out of memory. I changed these 3...
View ArticleFumiko: A local-first desktop email watcher built with Dioxus 0.7, Tokio, and...
Hello to anyone reading this! I wanted to share a desktop application I’ve spent the last few months building in Rust: Fumiko (文子). It is an open-source (MPL-2.0), local email watcher and triage tool....
View ArticleFumiko: A local-first desktop email watcher built with Dioxus 0.7, Tokio, and...
(topic deleted by author) 1 post - 1 participant Read full topic
View ArticleCannot return value referencing local variable in closure
Hello! I am writing my pet app and spent a lot of time trying to figure out why this error occurs. I am building a future stream of ip's, which should ping each ip in parrallel, so I guess i must use...
View Article