#

rust

Rust programming language

ProgrammingRust HashMap Lifetimes: Why Query Must Outlive Map

Learn why Rust requires query lifetimes to outlive HashMap lifetimes in rust programming. Understand rust borrow checker behavior and implicit lifetime bounds.

1 answer 1 view
ProgrammingRust Struct Borrowing: Mutable & Immutable Field Solutions

Learn how to resolve Rust borrowing conflicts when accessing different struct fields with mutable and immutable references. Explore splitting borrows, reborrow idioms, and alternative solutions.

1 answer 1 view
Programminglibrdkafka: Kafka Producer Consumer Tuning for High Throughput

Optimize Kafka producers and consumers with librdkafka/rdkafka in Rust for max throughput on small JSON messages. Tune batching, compression, memory limits, and backpressure to handle tens of GB/hour without crashes.

1 answer 1 view
ProgrammingConvert Chrono DateTime to BSON in Rust MongoDB 3.4.1

Fix 'expected DateTime, found DateTime' error converting chrono::DateTime to BSON DateTime in Rust with mongodb 3.4.1. Add bson crate with chrono-0_4, use from_chrono() or Into for rust chrono, rust mongodb serialization.

1 answer 1 view
ProgrammingRust: Compare u16 to #[repr(u16)] Enum Variant

Learn how to compare a u16 value to a #[repr(u16)] Rust enum variant like packet types from devices. Use casting with 'as u16', pattern matching, or TryFrom for idiomatic, safe comparisons without PartialEq errors.

1 answer 1 view
ProgrammingPolars Rust: Upsample Time-Series Gaps to 5m Intervals

Learn to upsample time-series gaps in Polars Rust to exact 5-minute intervals using date_range, vstack, and forward fill. Preserve non-aligned timestamps like 00:05:17 without replacement. Rust code examples for sensors data.

1 answer 1 view
ProgrammingTwo-Step Offline Unattended Rust Installer for Windows

Two-step offline Rust installer on Windows: one online bundle with rustup, toolchains and crates; one silent offline install to set up rustup, cargo and PATH.

1 answer 1 view
ProgrammingC++ vs Rust: Future Prospects & Which to Learn Now

Compare C++ vs Rust future prospects, performance, memory safety, ecosystem, jobs. C++ remains dominant with vast ecosystem; Rust grows in safety-critical areas. Learn C++ for broad jobs, Rust for modern systems and long-term edge.

1 answer 1 view
ProgrammingRust vs JS/TS Binaries: Backend API Performance

Compare Rust performance vs JS/TS binaries (Bun, Deno) for backend API servers: throughput, latency, CPU/memory, concurrency stability. Benchmarks show Rust edges in predictability; JS/TS viable for fast development.

1 answer 1 view