Looking forward to #rustweek2026.
Started learning #rustlang and the quality of resources is just awesome. The rust book (with quizzes), the documentation, and the rustlings project (https://rustlings.rust-lang.org) are all really helpful.
Using Gram as my IDE atm, which is an AI-less Zed fork (https://codeberg.org/GramEditor/gram)
RustConf 2026 (Sept 8-11, Montreal + online) tickets now open:
Early Bird ends April 29 ($690 employer / $425 individual).
Virtual: pay what you want.
does anyone here know if clap can parse an argument into a vector of structs with optional fields that would fall back to a default value?
i'm trying to write an interface for forwarding ports like so: [host:]port[:port][,[host:]port[:port]], square brackets denoting optionality with host defaulting to 127.0.0.1
example: $ program -f 3,127.0.0.2:8080:80 would map to something like [ [ 127.0.0.1, 3, 3 ], [ 127.0.0.2, 8080, 80 ] ]
feels like something i'll have to write my own parser for but i just wanna make sure there isn't a better way to do this, wouldn't be suprised if clap can cover such a complex usecase
Can some rustlang fluent creature help me with an axum problem?
I want to write some middleware that reads a cookie, a header does some value choosing that it needs some configuration for and attached the result to the request.
Currently this is implemented using an axum middleware function with state that is passed through axum::middleware::from_fn_with_state to turn it into a layer, but I want to turn it into a Layer struct, but I keep running into type problems.
async fn middleware(
State(arc_state): State<Arc<LanguageManifest>>,
cookie_header: Option<TypedHeader<headers::Cookie>>,
mut req: Request<Body>,
next: Next,
) -> Response {
[…]
}
Rust Foundation's Interop Initiative shifts from 2024-2026 research on Rust-C++ challenges to implementation phase, prioritizing practical near-term tools and coordination for safer mixed-language systems.
Here is how you can add popups to your Rust terminal app! 🦀
🧩 **tui-overlay** — Composable overlay widget for @ratatui_rs apps
💯 Modals, toasts, drawers with animations & backdrop dimming
⭐ GitHub: https://github.com/jharsono/tui-overlay
#rustlang #ratatui #tui #library #widget #programming #terminal