Why would `as_ref()` be required here rather than a reference?
After playing around with newtypes a bit, I'm curious about this use of the AsRef trait: impl PaliSearcher { pub fn new(index: &PaliIndex) -> Result<Self> { let reader =...
View ArticleSping 1.5.5 — a cross-platform network diagnostics CLI written in Rust
I recently open-sourced Sping, a network diagnostics CLI I’ve been building in Rust. It started from a very simple annoyance: when ping starts timing out, that’s usually when the actual...
View ArticleRecent explosion in Rust Rewrites and Reimplementations with LLMs. Thoughts?
Noticed that since the most recent Claude Opus 5.5 module got released there was a massive surge (if you can even call it that) in the amount of games reimplemented or rewritten in Rust. I understand...
View ArticleThey cloned commercial desktops apps with Rust
You might have already seen it in https://www.youtube.com/watch?v=eFB79TYI-Vw and Crafting Apps: open-source creative tools — ArtCraft ArtCraft · GitHub I am not really surprised, I supposed it would...
View ArticlePomodoro Time Chamber
https://github.com/andersondanilo/pomodoro-time-chamber This Pomodoro app is inspired by Pomodoro Tracker, but it introduces a few features designed to make time estimation and productivity tracking...
View ArticleI built an unsafe scanner alternative to Cargo Geiger
Hi Everyone! I would like to share the cargo-issafe project. I announced it in reddit, but the community and the moderators are very unwelcoming. I hope here I got a more positive discussion. The...
View ArticleCorrect format to use on a 'scene' file
Just got me wondering, similar to Godot's scene (.tscn) what existing format would be just as convenient when implementing a similar thing, which is to handle 'Node' trees and instancing another scene...
View ArticleHotcode: easy to use hot-reload
I find hot-reloading a very useful feature that speeds up development and makes debugging easier. I use it extensively in C#, and I wanted to have the same feature in Rust, so I created a crate for...
View ArticleT rust lang playground dependency
src/main.rs #![allow(unused)] fn main() { use std::collections::HashMap; let map1 = HashMap::from([(1, 2), (3, 4)]); let map2: HashMap<_, _> = [(1, 2), (3, 4)].into(); assert_eq!(map1, map2); }...
View ArticleConvert ref-to-raw-pointer to ref-to-NonNull without transmute?
Consider this toy function: fn ptr_as_nonnull<T: ?Sized>(input: &*mut T) -> Option<&NonNull<T>> { if input.is_null() { None } else { // Is it possible to implement this...
View ArticleRender pipeline error wgpu
let render_pipeline_layout = device.create_pipeline_layout(&PipelineLayoutDescriptor { label: None, bind_group_layouts: &[Some(&default_bgl), Some(&camera_bgl)], immediate_size: 0, });...
View ArticleWhy no Dependent Matrix Type?
Hello, I don't really know how to really introduce this topic. Background: I want to implement compile time safe matrix multiplication. For that i want to have a struct with const generics for the...
View ArticleRfig: Rust terminal autocomplete for zsh, Bash and Fish
rfig is an open-source Rust utility that adds IDE-style terminal autocomplete to zsh, Bash and Fish on macOS and Linux. It is a Fig-inspired project for developers looking for an open-source Fig...
View ArticleFeedback wanted: compio-pool, a thread-per-core connection pool for !Send...
Hi all, I've been building compio-pool, a connection pool for the compio runtime (completion-based, thread-per-core, io_uring / IOCP). 0.1.0 is on crates.io now, and I'd like design and API feedback...
View ArticleRust abstractions for kernel sources
Hi, I just got my my kernel Rust enabled and have compiled a working minimal LKM, but see that I now need access to some of the kernel calls under the net framework. Which leads me to believe I need...
View ArticlePorting a Slint UI Rust desktop application from Windows to macOS
After releasing my first Rust desktop application PitchGrid Continuum Bridge for Windows, I worked out that, If I wanted a Mac version, I would have to buy my first Mac and implement it myself. So I...
View ArticleTrait object with associated types in field - requires generic param?
I currently have: trait ListModel { fn get_stuff(&self, row: i) -> Stuff; ... } struct List { model: Rc<dyn ListModel>, ... } I think I want to change my model to use row IDs instead of...
View ArticleAny thin wrapper around the Web Worker API?
Hi, I'm currently writing some audio decoding pipeline targeting wasm32-unknown-unknown. In the queue / jittering part, I wanna be able to have one task that pushes data as it comes (with all the...
View ArticleFollow-up: tooling to detect failed devirtualization?
I've made a benchmark of the Rust overhead that can be caused by vtable calls. The reality, however, is that Rust can often do a good job of devirtualizing such calls. This benchmark shows an extreme...
View ArticleFeedback on carpathia
Hello I released my side project GitHub - sdoerig/carpathia: Declarative database introspection and language agnostic code generation. · GitHub . As I'm still learning, feedback on my...
View Article