Quantcast
Channel: The Rust Programming Language Forum - Latest topics
Browsing index pages (53753 articles)

How 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 Article


Test 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 Article


PLT 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 Article

How 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 Article

Best 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 Article


Why 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 Article

Features 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 Article

Library 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 Article


Ways 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 Article


Image may be NSFW.
Clik here to view.

Blog 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 Article

Mutable 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 Article

Image may be NSFW.
Clik here to view.

Trait 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 Article

Close 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 Article


How 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 Article

Fumiko: 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 Article


Fumiko: 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 Article

Cannot 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


Image may be NSFW.
Clik here to view.

Why do admonitions for `rustdoc` consist only of a warning block?

In AsciiDoc and GitHub's Markdown, admonitions (a.k.a. callouts or alerts) consist of five types (NOTE, TIP, IMPORTANT, CAUTION, and WARNING). Asciidoctor Docs AsciiDoc - Admonitions A documentation...

View Article

Can someone explain to me how Rust's `Future` trait works?

I’m not sure why... but I find the poll method of the Future trait to be quite abstract State? Polling? Anonymous functions? Also, are we relying too heavily on the tokio crate.. 6 posts - 6...

View Article

Intrusive data structure benefits over normal ones

hello, I am trying to understand intrusive data structure with this linked list example. I understand that for T to be an element of a single linked list it must store a pointer to next inside of T,...

View Article
Browsing index pages (53753 articles)


Latest Images