Rust Programming
Porting Shareaza, a multi-protocol p2p file-sharing program, to rust and typescript
Shareaza only works in linux with wine and it's pretty buggy, so I wanted to try to improve it but first I had to translate it to rust. I've been trying this last couple of weeks to translate it, but I'm going too slowly. I've managed to get errors even when changing the name on the source project's codebase. I just don't think I'm at the level to do this kind of project of my own. So perhaps somebody else is interested in maintaining the project and I can contribute with the things I can actually do. If there is no interest this is just me throwing the towel.

publicado de forma cruzada desde: > [Activitypub]( is decentralized social networking protocol recommended by the W3C. It provides a client to server API for creating, updating and deleting content, as well as a federated server to server API for delivering notifications and content. As part of the work on [Lemmy](, we have implemented some high-level abstractions for handling the server-to-server protocol in Rust. These abstractions are now available as a standalone library. > > The main features are: > > - Data structures for federation are defined by the user, not the library. This gives you maximal flexibility, and lets you accept only messages which your code can handle. Others are rejected automatically during deserialization. > - ObjectId type, wraps the id url and allows for type safe fetching of objects, both from database and HTTP > - Queue for activity sending, handles HTTP signatures, retry with exponential backoff, all in background workers > - Inbox for receiving activities, verifies HTTP signatures, performs other basic checks and helps with routing > - Generic error type (unfortunately this was necessary) > - various helpers for verification, (de)serialization, context etc > > Documentation is currently lacking. If you want to get started with the library, best look at the example. > > The code has already been used in production as part of Lemmy for a long time, without any notable problems. However, ergonomics are lacking and need to be improved. There are also many additional features which would be worth implementing. See the project readme for details. Contributions and suggestions are very much welcome! > > You can find the project here: > > []( > > [](

Rust equivalent for Python's shelve?
Hello all, I'm learning Rust after years of programming mainly in C/C++. Python has a very neat shelve library: It's basically a dict (hash table), but is located on disk instead of memory. It's great for easy persistence and also for working with massive objects that won't fit into memory. Is there anything similar for Rust? I could not find any, but I'm still learning Rust and could have missed it.

> For the last year I’ve been leading the development of rust-minidump, a pure-Rust replacement for the minidump-processing half of google-breakpad. > > Well actually in some sense I finished that work, because Mozilla already deployed it as the crash processing backend for Firefox 6 months ago, it runs in half the time, and seems to be more reliable. (And you know, isn’t a terrifying ball of C++ that parses and evaluates arbitrary input from the internet. We did our best to isolate Breakpad, but still… yikes.)

Distributed metadata database?
I was planning on doing a distributed metadata database. But it seems there isn't a simple way of doing this yet. There is OrbitDB for JavaScript but I haven't seen anything else. For now I've decided I can get started with the application by simply doing a client-server model. I'll follow this guide: [Building a Multithreaded Web Server](, and maybe I'll [place the server behind tor](

Live coding Rust and Matrix. I'm working on a Matrix bot to supply Arnie quotes, but got distracted adding a Redis back end to matrix-rust-sdk. I stream every week on Monday 14:00 London time (currently UTC+1). Join me! Or my Owncast instance at Follow me on mastodon to be reminded about streams, or follow the Owncast instance by clicking Follow at I'm actually away on Monday, so next stream is on 6th June. You can watch the old streams at

Rust Programming
    • 0 users online
    • 7 users / day
    • 11 users / week
    • 18 users / month
    • 60 users / 6 months
    • 1.54K subscribers
    • 356 Posts
    • Modlog