this post was submitted on 12 Jun 2023
43 points (100.0% liked)

Rust Lang

148 readers
1 users here now

Rules [Developing]

Observe our code of conduct

Constructive criticism only

No endless relitigation

No low-effort content

No memes or image macros

No NSFW Content

founded 1 year ago
MODERATORS
 

Any project in rust you want to chat about.

top 47 comments
sorted by: hot top controversial new old
[–] [email protected] 8 points 1 year ago (1 children)

An e-ink info display which displays the weather and my nextcloud calendars and tasks. So Rust Backend which pulls the data and displays a static HTML page, which will be pulled by the esp32 board. First project with rust

[–] [email protected] 2 points 1 year ago (2 children)

Are you also programmibg the esp using rust? Ive only gotten pretty basic stuff to run on embedded systems with rust despite really wishing that I could do more

[–] [email protected] 3 points 1 year ago (1 children)

I have done some small experiments (not much beyond a blinking light at this point) and I feel that the main issue right now for a beginner is that the documentation isn't there yet. By far.

Also I have read that many of the crates that use the same bus don't play well with each other (e.g. two devices on the same i2c bus) even though that is what embedded-hal is supposed to be all about. Many early crates are also abandoned apparently, further compounding this problem. I don't have enough personal experience though to tell if this is true.

[–] [email protected] 2 points 1 year ago

Yeah finding crates has also been my issue. Ive done HAL on a raspberry pi and it has been fairly painless, but Im still strugggling to get my head around no_std convensions on bare metal chips.. Also last I checked I couldnt figure out more advanced stuff like connectivity where I think Rust will really shine

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Not there yet. Just started with the Backend. But i read about Rust on embedded devices. I need to do some more research, but if its a realistic Option, i will try to

[–] [email protected] 1 points 1 year ago

I recently did a similar project. I have an old Chumby One device. I wrote a simple app that renders the time and date and outdoor temp and humidity. It receives the weather data over mqtt from rtl_433 running on an old wireless router with a USB sdr dongle.

It writes the image directly to the framebuffer /dev/fb0

I cross compiled for armv5te-unknown-linux-musleabi and it works great. Hard to get much running on 64mb of ram these days.

I hope to get the source up on GitHub when I get some time.

[–] [email protected] 8 points 1 year ago

I've been working slowly but surely on some rust <-> midi code. Mainly just playing around using midir.

[–] [email protected] 5 points 1 year ago (1 children)

Not a coding project with Rust, but figuring out what happens with /r/rust going forward. Posting here to show some support :-)

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

Well I'd say we try and make this the new and improved r/rust

[–] [email protected] 4 points 1 year ago

I might look into writing Lemmy bots with Rust; I'd made a small Discord bot back in the day but I think making a Rust library for Lemmy bots could be pretty useful. However, a browser plugin I'm designing in my head might have to come first. Oh, and after the projects that I can actually invoice for too 🤓

[–] [email protected] 4 points 1 year ago (1 children)

I am currently mostly working on integrating PRs into my arithmetic/boolean/string expression evaluation crate evalexpr.

But I am also in the process of creating a typed session handling crate for web frameworks like tower/axum. The existing crates all seem to only allow associating a hashtable with a session, which seems unnecessary if I can express the possible states of a session with e.g. an enum. It's pretty much work in progress though. There is the core library typed-session as well as an implementation for axum typed-session-axum

[–] [email protected] 2 points 1 year ago

Oh that sounds like a really useful crate!

[–] [email protected] 4 points 1 year ago

I'm using Rust to build an alternative to https://amara.org (online collaborative subtitle editor). Initially I wrote the backend in node.js/typescript but I quickly found I really do not like working with that, and switched to Rust with Rocket. That has been really nice. I haven't gotten around to working on it for quite a long time though, would like to pick it up again this summer.

[–] [email protected] 4 points 1 year ago (1 children)

Just had a massive breakthrough in my "Hello Cargo" program last night

[–] [email protected] 1 points 1 year ago (1 children)

Thats good! What were you stuck on and howd you figure it out?

[–] [email protected] 6 points 1 year ago (1 children)

Well, after thorough research, I discovered that you can print a string of characters.

It took me hours to get the spelling right.

[–] [email protected] 4 points 1 year ago (1 children)

Wow, well done, I still struggle with that and ive been coding in rust for almost 3 years now

[–] [email protected] 1 points 1 year ago (1 children)

Sorry but am I missing something? What's there to struggle with println("Hello Cargo")?

[–] [email protected] 2 points 1 year ago

They are kidding.

[–] [email protected] 4 points 1 year ago

I started studying vulkan recently, so i started building a toy renderer with (hopefully) a functional render graph and multi-threading command buffer encoding support

[–] [email protected] 3 points 1 year ago

I'm currently working on a discord bot, it's still a major work on progress though.

It's a rewrite of a bot I made a few months ago in Python but I wasn't getting the control I needed with the libraries available and based on my current testing, this rewrite is what I needed

It uses ML to generate text replies (currently using ChatGPT) and images (currently using DALL-E and Stable diffusion), I've got the text generation working, I just need yo get image generation working now.

Link to the github: https://github.com/2haloes/Delta-bot-rusty

Link to the original bot (has the env variables that need to be set): https://github.com/2haloes/Delta-Discord-Bot

[–] [email protected] 3 points 1 year ago

Im working on a weather script. Currently it pulls data from yr.no along my commute and lets me know via a telegram bot (also done in rust a while back) whether it will rain.. im also storing the data for the time being hoping to possibly learn a bit about ML to see if I can get more accurrate predictions, its my first time working working with async runtimes so its quite a lot of new stuff though

[–] [email protected] 3 points 1 year ago (2 children)

I'm working on to-html, a CLI for running a command and converting the output to HTML, with colors, to embed in a website. It wasn't getting any love for a while, but now there's a new contributor helping out, which motivated me to work on it again ❤️

[–] [email protected] 2 points 1 year ago

Wow that sounds interesting. I could definitely use something like that one day. Ive been looking at hosting pages with rust but ive gotten stuck after doing examples so this might be a way to get interested again.

[–] [email protected] 3 points 1 year ago (1 children)

I started working on a text analysis crate during grad school. I've gotten some surface-level stuff in there already, but I'd like to flesh it out and add some more true NLP functionality.

Link: https://github.com/michael-long88/rnltk

[–] [email protected] 2 points 1 year ago (1 children)

Does this detect stylistic similarity between texts? I was thinking about porting a similar project that was developed to determine probable authorship. It would be quite useful as an open-source bot detector.

[–] [email protected] 1 points 1 year ago

Nothing quite that advanced. It's mostly just stemming, basic tokenization, TF-IDF, and cosine similarity at this point.

[–] [email protected] 2 points 1 year ago

If someone is not working on something and have doney spare time (like me). I'm sure it would be greatly appreciated if we used some of that time to improve the Lemmy backend. My plan for the weekend is to go through the repository and get more familiar with the Lemmy code base

[–] [email protected] 2 points 1 year ago

I was working on a bittorrent client but got stuck on managing state between peers an also just communicating with them. The docs could certanly use an upgrade.

[–] [email protected] 2 points 1 year ago

I'm working on a falling sand physics-powered, 2d block-based open-world survival crafting game with spells instead of weapons and tools.

I'm currently using bevy_ecs (not bevy itself) and Vulkano (Vulkan rust library), SDL2 for windowing and fmod for audio. Developing on Linux but testing and building on Windows every now and then.

I've been running a Terraria server since 2012, and have had a lot of experience in C# working with Terraria's netcode and Terraria internals (via decompiling and IL patching), so decided it was time to try make something of my own.

I didn't know any engines, but I had previously used SDL2 for smaller things. We started using Rust at work (not game dev related) and I had used Rust a few times for personal projects. I got really interested in some of the functional programming concepts from languages like Ocaml and Haskell, so I decided I would make the game in Rust, despite that it may not be the most popular path.

[–] [email protected] 2 points 1 year ago

We have a pet project in work, which allows us to bring food and drinks to office and anyone can take, register it. Then once a month QR code is sent to everyone to pay to people who deliver stuff. Current system is classic SSR express.js app and I want to rewrite it to Axum backend and Vue SPA (and possibly other clients like cli). Currently finished the "customer needs analysis" and started grooming user stories to hopefully one day jump to writing the backend and then frontend.

[–] [email protected] 2 points 1 year ago

I had been working on https://github.com/Endle/fireSeqSearch in my last year.

fireSeqSearch is inspired by Evernote's browser extension - if we search a term, for example, softmax in Google(or other search engines), fireSeqSearch will also search in our personal notebook(logseq/obsidian), and append the hits into Google results.

Let me try to attach the video here https://user-images.githubusercontent.com/3221521/216853025-5cb82b18-fbcc-438e-8ff6-f791713c6b8b.mp4

[–] [email protected] 2 points 1 year ago

Been working on the same one for a while now, an implementation of COM for Linux and macOS (Microsoft's stable library ABI/IPC/network protocol). It of course supports C and C++ but also Rust, and as of now the IDL compiler which generates headers and Rust sources and makes up the majority of the code, is written in Rust.

I started working on this as part of wanting to port C++ software that heavily used COM interfaces internally to Linux but then I wanted to start using it for other things so I started writing the IDL stuff. (As of now there's no network/IPC functionality or any kind of runtime though, it's purely interfaces. That's still WIP)

I guess this is yet another way to do C++ <-> Rust calls :P

https://git.dblsaiko.net/nucom/

[–] [email protected] 2 points 1 year ago

I'm working on a test project to flesh out SurrealDB (built on Rust) embedded database in an Axum API. Using a medication tracker as the app. Just started with Rust last December, so it's been a firehose Rust->Axum->SurrealDB.

[–] [email protected] 1 points 1 year ago

For people interested by a small tutorial to use the dual core RPi Nano in pure rust I put that together a while ago: https://github.com/gbin/rp2040-mandel-pico

[–] [email protected] 1 points 1 year ago

I've been perpetually working on various gamedev projects for many years now. I'll finish one eventually, I promise!

Most recent one is a retro style JRPG. With a flexable skill system where each character has two classes and can pick some number of skills from them. Also has a number of equippable "quick time" events a-la Mario RPGs. Using ggez for it, which is a decent engine. Although for future projects I may pick something more feature complete like bevy.

Currently thinking about starting a new project to make a Sonic-like game, because if Sega isn't going to do it, I may as well give it a go. :P

[–] [email protected] 1 points 1 year ago

im working on a discord bot to help my server plan some specific events. it will send out and rsvp messsage and then dm interested users to gather their info to compile into a list to make sending out invites faster.

[–] keef 1 points 1 year ago

I started on a media thingy like sonarr if you’re in the self hosted world.

I’ve only wrote application code so I’m using this to grok life times and some of the more deep topics rust offers.

[–] [email protected] 1 points 1 year ago

Been working on a file manager clone taking influence from several others, like nfm and joshuto.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Took a break but I'll be back soon: frida-deepfreeze-rs It's a tool that makes frida scripts permanent. Coding it in Rust was a bit of a pickle but since I wanted it to be cross-compatible and statically compiled didn't have much of a choice :P

For those that don't know, frida is a tool that injects a JS engine inside a running process. It's like a debugger but now you can code it in JS and the API is much, MUCH nicer. You can intercept functions and change their parameter or their result, watch the memory, etc.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

I'm currently working on a small Visual Novel that uses the Free Monad macro crate I've written.

Originally I just wanted to see if Free Monads can be implemented using the traits from the higher crate. I was so happy with the result, that I decided to publish it on crates.io, and therefore I had to come up with an example program. Therefore I wrote a (very short) text adventure, just for illustration.

And that was so much fun, that I decided to make something bigger based on it. And here I am now, writing an interpreter for a small storytelling embedded Domain Specific Language...

[–] [email protected] 1 points 1 year ago

I'm working on a command line tool that automatically adds furigana to Japanese text.

https://github.com/encody/autoruby

[–] [email protected] 1 points 1 year ago

I'm currently working on a support ticket management system that incorporates a Discord bot & Github, and will have a dashboard (currently WIP).

[–] [email protected] 1 points 1 year ago

Currently building a custom anti-bot reverse proxy solution in rust that uses cryptography for a proof of work captcha.