30th August 2026 09:55
Stackoverflow - Number of High Scored Rust Questions
Top Monthly Stackoverflow Rust Questions
| Question | Score | Views | Answers | Answered |
|---|---|---|---|---|
| Respond with either a Redirect or a NamedFile in actix-web | 1 | 34 | 1 | True |
| Combine known-size slices into an array in rust | 1 | 19 | 2 | False |
| why dereferences of references to non-copyable data do not have the O permission to avoid double-frees in Rust? | 1 | 40 | 1 | True |
| Generate unique type parameter in procedural derive macro | 1 | 25 | 1 | True |
| Main thread frozen handling interval, sending accumulated data with enormous delay | 1 | 40 | 1 | True |
| How can I return self from a method mocked using mockall? | 2 | 47 | 1 | True |
| What would be the appropriate way to mark a folder as specifically ignored within Cargo and VsCode? | 1 | 31 | 2 | False |
| Collect RangeInclusive<T> into Vec<T> | 1 | 44 | 1 | True |
| Getting Oauth2 token in Rust | 1 | 23 | 0 | False |
| Why is phantom data not auto inferred? | 1 | 53 | 1 | True |
| Accept HashMap<String, SomePyClass> as function argument in pyo3 | 1 | 53 | 1 | True |
| Simple error handling for precondition/argument checking in Rust | 1 | 59 | 3 | False |
| In Rust: what structure can be made to avoid having to use RefCell? | 1 | 73 | 1 | True |
| init a const array with heterogenous data in rust | 1 | 35 | 1 | True |
| CSV with nested structs | 1 | 45 | 1 | True |
| Values after flag parsed with first argument | 1 | 30 | 0 | False |
| How to create Tree Zipper using Rust? | 1 | 39 | 1 | False |
| Why is `#[no_mangle]` required to see Rust functions in WASM library? | 2 | 55 | 2 | True |
| Rocket validations are not executing on Json | 1 | 60 | 1 | True |
| get transactions/logs from different program, on a span of blocks | 1 | 16 | 0 | False |
| How to bind json value with sqlx QueryBuild | 1 | 11 | 0 | False |
| Transform JSON Key into a Polars DataFrame | 1 | 87 | 3 | True |
| String slice in a const function | 1 | 58 | 2 | True |
| serde deserialize json array into option struct | 1 | 46 | 1 | True |
| Serialize a string with Serde without adding double quotes | 1 | 38 | 1 | True |
| Can not borrow mutable more than once at a time error when calling function in loop in Rust | 2 | 43 | 1 | True |
| Proper way to do conditional branching with a tuple | 1 | 50 | 1 | True |
| Get rid of generics in wrapper structs | 1 | 51 | 1 | True |
| Unable to select a jsonb column to a struct with a Json<_> field | 1 | 48 | 0 | False |
| Reading HID device from Rust with a Tauri App | 1 | 48 | 1 | True |
| Associated type (type parameter) naming convention | 2 | 48 | 1 | True |
| Calling a C++ virtual method from Rust throws an Access violation error even after it executed successfully | 2 | 109 | 1 | True |
| Elegant way to turn a Vector3 into Vector4 | 1 | 81 | 1 | True |
| cannot borrow `*self` as mutable more than once at a time, why different return values affect `self` | 1 | 41 | 1 | True |
| Resolving linking issues on Rust / C++ interop | 1 | 53 | 1 | True |
| Mutually recursive traits in Rust with default implemenations | 3 | 51 | 1 | True |
| Is it possible to implement a test for `T.clone` for `T: Copy` | 2 | 40 | 1 | True |
| Method on generic struct that takes inner type as parameter | 1 | 48 | 1 | True |
| Deserializing mixed data types with Rust's serde_json | 1 | 37 | 1 | True |
| Print lazy_static! variables in GDB? | 1 | 31 | 0 | False |
| How to find the position(s) of a number in a 2D array? | 2 | 49 | 1 | True |
| Why does this fizz buzz code in Rust slower than Node.js? | 1 | 58 | 2 | False |
| measure sum of code size of monomorphizations? | 3 | 32 | 1 | False |
| Why is my Mersenne prime code faster with a larger exponent? | 3 | 57 | 1 | True |
| Calling Rust functions from inline assembly and calling conventions | 3 | 73 | 1 | True |
| Prevent Rest Condition in Rust Match Statement | 3 | 36 | 1 | True |
| Rust: How to add element to vector and return reference to that element? | 1 | 47 | 1 | True |
| how to clone an Rc from a method that takes in &self | 1 | 56 | 2 | True |
| How to use .def files to create forwarded exports in a Rust dll (cdylib) | 1 | 36 | 1 | False |
| How can I read a reqwest::Response object's bytes_stream() with an implementer of arrow_array::RecordBatchReader? | 1 | 41 | 1 | True |
| Rust group enums members but keep match exhaustivity check | 1 | 57 | 2 | True |
| Crossterm not clearing screen properly | 3 | 56 | 1 | True |
| What are the pitfalls of this utility function to map over a mutable reference? | 3 | 58 | 1 | True |
| How would the Broker pattern look like in Rust? | 2 | 38 | 0 | False |
| How to containerize the compilation process for a Rust-based Windows application on Linux? | 2 | 74 | 1 | True |
| How to execute a function on an object if and only if it implements a certain trait in rust? | 2 | 59 | 1 | True |
| Borrow and internal IntoIterator | 1 | 46 | 1 | True |
| Implementing generic Borrow transitively for HashMap key lookup | 1 | 40 | 0 | False |
| Cross filesystem move in Rust similar to shutil.move in Python | 1 | 35 | 0 | False |
| Can I compartmentalize dependencies of a crate within a local dynamic rlib? | 1 | 23 | 0 | False |
| Is there any difference between the two implementation of the struct? | 1 | 66 | 2 | True |
| Why type need to be specified manually in this code, in rust? | 1 | 26 | 1 | True |
| How to implement TryFrom for a generic type in Rust? | 1 | 55 | 1 | False |
| Does array of Option takes up memory in Rust when Option is None? | 1 | 70 | 1 | True |
| How can I implement a Functor trait in Rust? | 1 | 64 | 1 | True |
| Why is my rust program producing a Segfault | 4 | 98 | 0 | False |
| How to best parallelize code modifying several slices of the same Rust vector? | 3 | 91 | 2 | True |
| How can I access memory address where Rust stores values | 2 | 55 | 1 | True |
| JNI crate. How pass -XstartOnFirstThread option to jvm? | 1 | 67 | 1 | True |
| 1 Billion counter using pointer approach | 1 | 83 | 1 | True |
| How do I share a raw pointer across threads in Rust? | 1 | 60 | 1 | False |
| Lifetime parameters in trait declarations | 4 | 61 | 1 | True |
| Why will Rust allow a specific array element in a println!, but not a slice | 2 | 56 | 2 | False |
| Handling Concurrency, Overflow, and Periodic Draining in a Rust HashMap Collection | 1 | 40 | 0 | False |
| Accessing packed field in Rust and Compiler recommendation | 1 | 42 | 2 | True |
| Calculating Dataframe Covariance in Rust Polars | 1 | 35 | 0 | False |
| Does this code violate the unique mutable reference principle? | 1 | 57 | 0 | False |
| Dependency missing: rust nightly - Rust not installed | 1 | 45 | 1 | True |
| Raymarching into an octree in wgsl | 1 | 32 | 0 | False |
| Why is calling Box-ed closure requires unstable fn_traits? | 1 | 45 | 1 | True |
| How to compare a value in struct using match | 1 | 57 | 2 | True |
| "future cannot be sent between threads safely" error | 1 | 70 | 1 | True |
| What am I doing wrong when implementing sha256 in Rust? | 1 | 95 | 1 | True |
| How to re-open a minimized Tauri application with Keyboard shortcuts | 1 | 92 | 2 | True |
| closures in rust like in high-level language | 1 | 58 | 1 | True |
| where the files of localStorage of tauri app? | 1 | 87 | 0 | False |
| Access to shadowed variable in Rust | 2 | 50 | 1 | True |
| Finding challenging to call function from Rust to NextJS ( Tauri + NextJS ) | 1 | 49 | 1 | True |
| Running the bevy breakout example in WSL | 1 | 85 | 1 | True |
| Is there a better way to implement this OOP(ish) in Rust? | 1 | 6 | 0 | False |
| How to check that a string is among a fixed set of values in rust? | 1 | 54 | 2 | True |
| Why is Copy a supertrait of Pod in the bytemuck crate? | 5 | 84 | 1 | True |
| How can I remove 3 years from a date in Rust? | 4 | 86 | 2 | True |
| How to filter a multidimensional array in Rust? | 1 | 53 | 1 | True |
| How to reformulate multiple trait bounds as a single trait? | 1 | 51 | 1 | True |
| Table causing stack overflow in rust | 1 | 55 | 1 | True |
| Why isn't the code reflecting the actual mathematical behaviour when doing a binary search guess? | 1 | 21 | 0 | False |
| How to escape "# and #" in raw string literals | 2 | 93 | 2 | True |
| How does sorting a vector of references to references of str work on the strings rather than the outermost references? | 1 | 50 | 2 | True |
| How to have two difference patch versions of the same package? | 1 | 54 | 2 | False |
Top Weekly Stackoverflow Rust Questions
| Question | Score | Views | Answers | Answered |
|---|---|---|---|---|
| Combine known-size slices into an array in rust | 1 | 19 | 2 | False |
| Main thread frozen handling interval, sending accumulated data with enormous delay | 1 | 40 | 1 | True |
| Respond with either a Redirect or a NamedFile in actix-web | 1 | 34 | 1 | True |
| why dereferences of references to non-copyable data do not have the O permission to avoid double-frees in Rust? | 1 | 40 | 1 | True |
| Generate unique type parameter in procedural derive macro | 1 | 25 | 1 | True |
| How can I return self from a method mocked using mockall? | 2 | 47 | 1 | True |
| Simple error handling for precondition/argument checking in Rust | 1 | 59 | 3 | False |
| Collect RangeInclusive<T> into Vec<T> | 1 | 44 | 1 | True |
| What would be the appropriate way to mark a folder as specifically ignored within Cargo and VsCode? | 1 | 31 | 2 | False |
| In Rust: what structure can be made to avoid having to use RefCell? | 1 | 73 | 1 | True |
| Getting Oauth2 token in Rust | 1 | 23 | 0 | False |
| Why is phantom data not auto inferred? | 1 | 53 | 1 | True |
| How to create Tree Zipper using Rust? | 1 | 39 | 1 | False |
| init a const array with heterogenous data in rust | 1 | 35 | 1 | True |
| CSV with nested structs | 1 | 45 | 1 | True |
| Values after flag parsed with first argument | 1 | 30 | 0 | False |
| Why is `#[no_mangle]` required to see Rust functions in WASM library? | 2 | 55 | 2 | True |
| How to bind json value with sqlx QueryBuild | 1 | 11 | 0 | False |
| Rocket validations are not executing on Json | 1 | 60 | 1 | True |
| get transactions/logs from different program, on a span of blocks | 1 | 16 | 0 | False |
| String slice in a const function | 1 | 58 | 2 | True |
| serde deserialize json array into option struct | 1 | 46 | 1 | True |
| Transform JSON Key into a Polars DataFrame | 1 | 87 | 3 | True |
| Serialize a string with Serde without adding double quotes | 1 | 38 | 1 | True |
| Can not borrow mutable more than once at a time error when calling function in loop in Rust | 2 | 43 | 1 | True |
| Unable to select a jsonb column to a struct with a Json<_> field | 1 | 48 | 0 | False |
| Reading HID device from Rust with a Tauri App | 1 | 45 | 1 | True |
| Proper way to do conditional branching with a tuple | 1 | 50 | 1 | True |
| Get rid of generics in wrapper structs | 1 | 51 | 1 | True |
| Associated type (type parameter) naming convention | 2 | 48 | 1 | True |
| Calling a C++ virtual method from Rust throws an Access violation error even after it executed successfully | 2 | 109 | 1 | True |
| Elegant way to turn a Vector3 into Vector4 | 1 | 81 | 1 | True |
| Resolving linking issues on Rust / C++ interop | 1 | 53 | 1 | True |
| cannot borrow `*self` as mutable more than once at a time, why different return values affect `self` | 1 | 40 | 1 | True |
| Mutually recursive traits in Rust with default implemenations | 3 | 51 | 1 | True |
| Is it possible to implement a test for `T.clone` for `T: Copy` | 2 | 40 | 1 | True |
| Method on generic struct that takes inner type as parameter | 1 | 48 | 1 | True |
| Print lazy_static! variables in GDB? | 1 | 31 | 0 | False |
| Deserializing mixed data types with Rust's serde_json | 1 | 37 | 1 | True |
| How to find the position(s) of a number in a 2D array? | 2 | 49 | 1 | True |
| Why does this fizz buzz code in Rust slower than Node.js? | 1 | 58 | 2 | False |
| Why is my Mersenne prime code faster with a larger exponent? | 3 | 56 | 1 | True |
| measure sum of code size of monomorphizations? | 3 | 32 | 1 | False |
| Prevent Rest Condition in Rust Match Statement | 3 | 36 | 1 | True |
| Calling Rust functions from inline assembly and calling conventions | 3 | 71 | 1 | True |
| How can I read a reqwest::Response object's bytes_stream() with an implementer of arrow_array::RecordBatchReader? | 1 | 34 | 1 | True |
| how to clone an Rc from a method that takes in &self | 1 | 54 | 2 | True |
| How to use .def files to create forwarded exports in a Rust dll (cdylib) | 1 | 35 | 1 | False |
| Rust: How to add element to vector and return reference to that element? | 1 | 47 | 1 | True |
| Rust group enums members but keep match exhaustivity check | 1 | 55 | 2 | True |
Top Daily Stackoverflow Rust Questions
| Question | Score | Views | Answers | Answered |
|---|---|---|---|---|
| Combine known-size slices into an array in rust | 1 | 19 | 2 | False |
| why dereferences of references to non-copyable data do not have the O permission to avoid double-frees in Rust? | 1 | 40 | 1 | True |
| Main thread frozen handling interval, sending accumulated data with enormous delay | 1 | 40 | 1 | True |
| How can I return self from a method mocked using mockall? | 2 | 45 | 1 | True |
| In Rust: what structure can be made to avoid having to use RefCell? | 1 | 66 | 1 | True |
| What would be the appropriate way to mark a folder as specifically ignored within Cargo and VsCode? | 1 | 31 | 2 | False |
| Collect RangeInclusive<T> into Vec<T> | 1 | 43 | 1 | True |
| Why is phantom data not auto inferred? | 1 | 51 | 1 | True |
| Getting Oauth2 token in Rust | 1 | 23 | 0 | False |
| Values after flag parsed with first argument | 1 | 26 | 0 | False |
| CSV with nested structs | 1 | 39 | 1 | True |
| init a const array with heterogenous data in rust | 1 | 26 | 1 | True |
| How to create Tree Zipper using Rust? | 1 | 34 | 1 | False |
| Why is `#[no_mangle]` required to see Rust functions in WASM library? | 2 | 53 | 2 | True |
| serde deserialize json array into option struct | 1 | 46 | 1 | True |
| String slice in a const function | 1 | 53 | 2 | True |
| How to bind json value with sqlx QueryBuild | 1 | 11 | 0 | False |
| Rocket validations are not executing on Json | 1 | 54 | 0 | False |
| Transform JSON Key into a Polars DataFrame | 1 | 71 | 3 | True |
| get transactions/logs from different program, on a span of blocks | 1 | 16 | 0 | False |
| Serialize a string with Serde without adding double quotes | 1 | 34 | 1 | True |
| Can not borrow mutable more than once at a time error when calling function in loop in Rust | 2 | 40 | 1 | True |
| Unable to select a jsonb column to a struct with a Json<_> field | 1 | 43 | 0 | False |
| Get rid of generics in wrapper structs | 1 | 47 | 1 | False |
| Proper way to do conditional branching with a tuple | 1 | 39 | 1 | True |
| Associated type (type parameter) naming convention | 2 | 43 | 1 | True |
| Calling a C++ virtual method from Rust throws an Access violation error even after it executed successfully | 1 | 79 | 1 | True |
| Elegant way to turn a Vector3 into Vector4 | 1 | 70 | 1 | True |
| Resolving linking issues on Rust / C++ interop | 1 | 48 | 1 | True |
| Mutually recursive traits in Rust with default implemenations | 3 | 46 | 1 | True |
| Is it possible to implement a test for `T.clone` for `T: Copy` | 2 | 35 | 1 | True |
| Print lazy_static! variables in GDB? | 1 | 25 | 0 | False |
| Deserializing mixed data types with Rust's serde_json | 1 | 31 | 1 | True |
| Method on generic struct that takes inner type as parameter | 1 | 43 | 1 | True |
| How to find the position(s) of a number in a 2D array? | 2 | 45 | 1 | True |
| Why does this fizz buzz code in Rust slower than Node.js? | 1 | 58 | 2 | False |
| measure sum of code size of monomorphizations? | 3 | 30 | 1 | False |
| Why is my Mersenne prime code faster with a larger exponent? | 2 | 40 | 1 | True |
| Calling Rust functions from inline assembly and calling conventions | 3 | 58 | 1 | False |
| Prevent Rest Condition in Rust Match Statement | 3 | 35 | 1 | True |
| how to clone an Rc from a method that takes in &self | 1 | 47 | 2 | True |
| Rust: How to add element to vector and return reference to that element? | 1 | 41 | 1 | True |
| How to use .def files to create forwarded exports in a Rust dll (cdylib) | 1 | 26 | 1 | False |
| Rust group enums members but keep match exhaustivity check | 1 | 38 | 2 | True |
| How can I read a reqwest::Response object's bytes_stream() with an implementer of arrow_array::RecordBatchReader? | 1 | 28 | 1 | True |
| Crossterm not clearing screen properly | 3 | 48 | 1 | True |
| What are the pitfalls of this utility function to map over a mutable reference? | 3 | 52 | 1 | True |
| How to execute a function on an object if and only if it implements a certain trait in rust? | 2 | 49 | 1 | True |
| How would the Broker pattern look like in Rust? | 2 | 29 | 0 | False |
| Cross filesystem move in Rust similar to shutil.move in Python | 1 | 27 | 0 | False |
Top Yearly Stackoverflow Rust Questions
| Question | Score | Views | Answers | Answered |
|---|---|---|---|---|
| Why can't this macro handle trailing comma? | 3 | 87 | 0 | False |
| Does multithreaded tokio run task on a single OS thread? | 2 | 1603 | 3 | True |
| (void)variable alternative for Rust | 2 | 202 | 1 | True |
| adding trace_id field to all emited logs using tokio tracing | 3 | 986 | 0 | False |
| Why are temporary values of Rust sometimes referential and sometimes not? | 3 | 187 | 1 | True |
| How do I require one of the two Clap options? | 3 | 1424 | 1 | True |
| How to get the module tree? | 3 | 777 | 2 | True |
| Unable to get user_id from Actix Web session data after successful login | 3 | 442 | 0 | False |
| Why does rust require explicit lifetimes for mutable references but not regular reference? | 2 | 73 | 1 | True |
| tokio::sync::broadcast::Receiver<T> is not Clone | 2 | 665 | 1 | True |
| Calling a C++ virtual method from Rust throws an Access violation error even after it executed successfully | 2 | 109 | 1 | True |
| How to use `tracing-subscriber` Rust crate to build a mult-writer, global filter subscriber | 3 | 713 | 1 | True |
| Maturin project with Python bindings behind feature | 3 | 309 | 1 | True |
| Mutually recursive traits in Rust with default implemenations | 3 | 51 | 1 | True |
| What does `actix-web` use a provided `tokio` runtime for? | 3 | 461 | 2 | True |
| Why is my Mersenne prime code faster with a larger exponent? | 3 | 57 | 1 | True |
| Common trait for tonic client/channel | 3 | 206 | 0 | False |
| How to find the position(s) of a number in a 2D array? | 2 | 49 | 1 | True |
| How to change background in ICED | 2 | 443 | 1 | True |
| Calling Rust functions from inline assembly and calling conventions | 3 | 73 | 1 | True |
| measure sum of code size of monomorphizations? | 3 | 32 | 1 | False |
| Using the ? operator in a void/unit function | 3 | 74 | 1 | True |
| Item not found even after the trait is defined and implemented | 3 | 343 | 0 | False |
| How can I access memory address where Rust stores values | 2 | 55 | 1 | True |
| Prevent Rest Condition in Rust Match Statement | 3 | 36 | 1 | True |
| Web-scraping with headless-chrome (Rust), clicking doesn't seem to work | 3 | 790 | 1 | True |
| What are the pitfalls of this utility function to map over a mutable reference? | 3 | 58 | 1 | True |
| How do I determine the pixel width of a string of text? | 3 | 236 | 2 | True |
| Crossterm not clearing screen properly | 3 | 56 | 1 | True |
| How to best parallelize code modifying several slices of the same Rust vector? | 3 | 91 | 2 | True |
| Why is my rust program producing a Segfault | 4 | 98 | 0 | False |
| Lifetime parameters in trait declarations | 4 | 61 | 1 | True |
| Rust macro split expression into bytes and into byte vector | 3 | 84 | 1 | True |
| Unexpected NotValidForName with Rust's tonic with TLS | 3 | 1196 | 1 | True |
| How does Boxing move data from stack to heap? | 2 | 169 | 1 | True |
| How to return slice of a vector in a struct | 2 | 66 | 1 | True |
| Why would an object implementing a trait expect a longer lifetime than a concrete object? | 2 | 51 | 1 | True |
| What is the difference between Closure::new and Closure::wrap in Rust wasm | 2 | 70 | 1 | True |
| Deserialize into a generic type with serde::from_value | 2 | 202 | 1 | True |
| Access to shadowed variable in Rust | 2 | 50 | 1 | True |
| How to add lifetime Parameter to Box<> with dyn type alias | 2 | 59 | 1 | True |
| Why does tokio run only n-1 of n tasks when called in a weird way? | 2 | 462 | 2 | True |
| How can I remove 3 years from a date in Rust? | 4 | 86 | 2 | True |
| Define a struct where only some fields can be defaulted | 3 | 113 | 1 | True |
| What happens when I use `ic_cdk::spawn` in an IC canister and then panic after? | 3 | 38 | 1 | True |
| Why is Copy a supertrait of Pod in the bytemuck crate? | 5 | 84 | 1 | True |
| How to pass optional parametr to middleware in from_fn func in axum? | 3 | 1141 | 1 | True |
| Logic about return in rust | 3 | 68 | 1 | True |
| How to escape "# and #" in raw string literals | 2 | 93 | 2 | True |
| Is an Axum handler cancelled if the requester disconnects? | 3 | 74 | 0 | False |