CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 09:01:40 GMT
content-type: text/html; charset=utf-8
cf-ray: 9652b6b46f8ac1b5-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=395d7cde-7214-4b51-91e3-5dcf33f8452e; expires=Sun, 26 Jul 2026 09:01:40 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: 7d0ae306-9638-46a1-be46-f57663449c29
x-worker-origin-response-time: 633000000
x-dns-prefetch-control: off
set-cookie: prov=395d7cde-7214-4b51-91e3-5dcf33f8452e; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=3LUZhx.pVfaxZJPP7.iO5FlHPkqA8gb0vmShSs8q1i8-1753520500-1.0.1.1-MWV23K38RXu1cZMVYVPYPfxQiEvunLTQv2jjyQtQrcLmRFS0GpwQujUr.zP3Q7_mOI6VkHisTGjLMXN4TZBh3aqm5O6gHA.O5s0_1dC5WU8; path=/; expires=Sat, 26-Jul-25 09:31:40 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=H7egmpxdduYus_FkFTyw3vhqN3c2aGmoZ_Hx9DtRlms-1753520500561-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'rust' Questions - Code Review Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [rust]
Rust is a systems programming language focused on three goals: safety, speed, and concurrency. It maintains these goals without needing a garbage collector, making it a useful language for a number of use cases other languages aren't good at: embedding in other languages, programs with specific space and time requirements, and writing low-level code, like device drivers and operating systems.
876 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
10
votes
4
answers
2k
views
Builder pattern in Rust
I tried to implement Builder pattern, a popular design pattern for constructing objects consisting of different components, in Rust.
Here is my attempt:
...
4
votes
1
answer
116
views
Higher-kinded types in Rust
Also posted on Reddit.
As a small personal exercise, I'm trying to implement a notion of higher-kinded types in Rust using type-level defunctionalisation based on the "Lightweight higher-kinded ...
7
votes
1
answer
556
views
Testing a user submitted python function
I am creating a website with coding questions. When a user submits a code for a question I use the contents of the question to create a python file and then I send it to the piston API for evaluation.
...
1
vote
2
answers
116
views
Translating an image encoded as u32 to an array
I have a function in an embedded system which translates an image encoded in a 32-bit integer to 3x9 matrix (an array of arrays):
...
2
votes
0
answers
56
views
Basic Rust server + client to handle future game logic
I made a really basic server and client in Rust using tokio for the server.
I would like to receive feedback on the (very limited) code I have so far, just to make sure I'm on track to follow Rust's ...
1
vote
1
answer
91
views
Creating functions that send and receive atomic messages in Rust paradigm
I'm converting a library from C to Rust, and I want to see if this is the optimal way to implement network communication. This ...
1
vote
2
answers
304
views
Fibonacci sequence generator
I have a piece of code that attempts to reduce the work and span in making a Fibonacci sequence. My approach is to parallelize the code as much as possible, along with doing matrix multiplication and ...
5
votes
1
answer
115
views
File system regex searcher
This is my first Rust project (I'm primarily a C guy). I want to know if my code is properly idiomatic (Rusty?). Also, are there any inefficiencies?
The code defines an iterator (...
4
votes
3
answers
122
views
Number guessing game in Rust
I am learning Rust and would like a review to make sure I am following best Rust practices before continuing. The user enters a number between 1 and 100 up to 6 times to guess the randomly-generated ...
2
votes
0
answers
92
views
Monte-Carlo pricing engine for a structured product
I'm implementing a Monte-Carlo pricing engine to price a structured product in Rust, using the usual Black-Scholes assumptions. This pricing engine is used in a (basic) gRPC server which receives all ...
4
votes
1
answer
137
views
Generating Time-based One Time Passcode
Following Wikipedia: Time-based one-time password and Wikipedia: HMAC-based one-time password, is this Rust implementation of the TOTP/HOTP algorithm correct?
As far as I can see, this matches the ...
1
vote
1
answer
63
views
Needleman-Wunsch algorithm with affine gap cost
Needleman-Wunsch is a bioinformatics algorithm used to align 2 sequences. The algorithm outputs the score of the alignment and a Vec containing all operations to reconstruct the alignment. I do not ...
0
votes
0
answers
37
views
GraphQL client for Github Projects API
As a fun hobby project I made my own time logger in Rust called Rusty Time Logger. You can track how many time you spent on a ticket or feature, until now it missed the feature to automatically update ...
5
votes
2
answers
400
views
Rust implementation of Euler problems
I'm starting to learn rust and figured my first simple project would be to solve some of the Euler problems. I'd appreciate if anyone could tell me where I might be ...
4
votes
1
answer
101
views
File list and monitor
I recently was given a take home assignment for a job interview. The task was specified like so:
...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
beginner × 208
performance × 69
algorithm × 53
parsing × 35
strings × 26
primes × 23
iterator × 22
multithreading × 19
file × 16
error-handling × 14
game × 14
console × 13
file-system × 13
linked-list × 13
sorting × 13
tree × 13
generics × 12
vectors × 12
cryptography × 11
comparative-review × 10
lexical-analysis × 10
mathematics × 10
more related tags
Hot Network Questions
- How many simple groups are there of a given infinite cardinality?
- Quadratic Hecke characters with certain given local components
- Moving multiplying cells away
- Why is 0.0 printed as 0.00001 when rounding upward?
- Sram crank upgrade
- Why is this delayed differential system giving errors in plotting the solution?
- Why does my laptop's display turn off when I'm away from the keyboard?
- Can one engage with physics (or science) without touching philosophy?
- Where should a drain saddle for an RO system be installed?
- Do TeX engines support Shavian OpenType fonts?
- What does this word "ahn-shdah-heh" mean?
- Did the first sin in the garden of Eden actually take place before the fruit was eaten?
- How to navigate in the Universe's Heat Death
- I don't understand Photos Library.photoslibrary
- Can you yaw an airplane by only using differential thrust?
- How do I set up a recursive algorithm to repeatedly square root a positive real number?
- Not being introduced to the team – should I ask for it?
- Current integrator LTSpice simulation
- Is this a violation of open source?
- How can I evenly space my instances after they've been progressively scaled?
- Why is time reversal not a natural part of the Galilean group?
- Is it possible to use the PC power button to pre-select the OS in rEFInd UEFI dual boot setup?
- Where did the name of Windows XP come from? Was it connected to the Cairo project?
- Will an error in two of my published papers affect my PhD thesis evaluation?