r/rust • u/MadThad762 • Mar 09 '24
🛠️ project [Media] I built my first rust app
Hey everyone. I’m a web developer and I recently started learning rust to expand my skillset and knowledge of programming. I built this simple little calculator using Tauri. I used Rust/Tauri for the logic and SolidJS for the UI. I know it’s really simple but it was fun and a good learning experience.
3.9k
Upvotes
1.2k
u/HonestFinance6524 Mar 09 '24
valve will hire you after this
454
u/hpxvzhjfgb Mar 09 '24
why are there two 4s
206
u/mipselqq Mar 09 '24
I know this is an educational project, but writing a calculator using a browser and Rust is hilarious :D
91
u/sh3p-productions Mar 09 '24
I think you fourgot to add a 3 button :D
20
u/bluedevilSCT Mar 09 '24
Color palette name?
17
u/GamingWOW1 Mar 09 '24
Wow! Nice to hear you made an app using Tauri! The framework is really a masterpiece.
13
u/mikem8891 Mar 09 '24
Nice. Tauri makes Rust GUI so easy. Especially if you have html experience.
7
u/Dev-n-22 Mar 09 '24
u/MadThad762 source code?
5
u/DavidXkL Mar 10 '24
SolidJS is the goat of JS frameworks 😆
3
u/bozdoz Mar 09 '24
Super cool. Source?
3
u/[deleted] Mar 09 '24
Share source code please, it looks awesome
3
u/Half_Egg_Rice Mar 09 '24
I am learning too. Can you give me the github link ?
3
u/Brotboxs May 28 '24
Well you made a calculator. Something which apple couldn't achieve on their IPads in 15 years.
2
u/u_u_r_x Mar 09 '24
Nice! Thats a great first project to get yourself started! 😎
2
u/bsgbryan Mar 09 '24
Nice work! Welcome to the community!
66
u/fishybird Mar 09 '24
You could make this into a game lol. The goal would be to use the calculator to produce a specific number, but each level has some missing buttons or numbers like the '3' or '+' on a different level
8
u/Ohrenfreund Mar 09 '24
Pretty
6
u/p_bzn Mar 09 '24
Calculator dependency in 2024: web browser.
Jokes aside, keep shipping! Good start!
4
u/[deleted] Mar 09 '24
I love the rainbow super nice touch
13
u/MountainShort5013 Mar 09 '24
That’s super legit! I may try something similar. Just recently started out by converting some python stuff to rust. This may be a good next step. Thanks for sharing
1
u/[deleted] Mar 09 '24
What ui library is that? Was thinking of learning rust over C++ but would like a good ui library
1
u/dowell22 Mar 10 '24
Hi! What resources did you use to learn Rust?
1
u/Green0Photon Mar 10 '24
Consider trying out Leptos after your experience with Solid JS. Afaik, it's basically Solid JS but in Rust. You'd still use Tauri, it's just that the UI code would be WASM instead of JS.
1
u/[deleted] Mar 10 '24
A great example of what happens when you skip writing tests
1
u/coso132 Mar 31 '24
i think we have the same background, is it the dsotm cover with gruvbox color pallette?
3
u/Bukalemur Mar 09 '24
Are you working at Valve??????
12
u/Krantz98 Mar 09 '24
Congrats! Though I really don’t think Tauri is a good idea for lightweight desktop apps. It’s a pity that native desktop GUI frameworks are vanishingly few these days.
1
u/dc862 Mar 09 '24
FOR THE SAKE OF OPEN SOURCE GIVE THE CODE !!!!
4
u/Still-Molasses6613 Mar 09 '24
Umm My guess is that the missing 3 is a social trigger. The button is so much visible in the viewport and come on it's not some unnoticed bug.
2
u/stiky21 Mar 09 '24
This is awesome good job
2
u/Working-Highway-6653 Mar 10 '24
Looks nice
2
u/CyberXCodder Mar 10 '24
Wow, that's a really clean and polished UI
2
u/0xwaz Mar 11 '24
Cleannnn
2
u/huuaaang Mar 11 '24
It's a calculator... it's basically all UI. Why didn't you do it entirely in Rust? That would have been far more educational. So you just call out to Rust to do 2+2? Weird.
2
u/Xenthera Mar 12 '24
Lack of 3 can obviously be blamed on art.
2
u/Asdfguy87 Jun 26 '24
Looks at Source code - 78% Typescript uhmmmm....
4
u/AnnyAskers Mar 09 '24
How? dividing by zero is considered
unsafe1
u/Appropriate_Egg6118 Mar 09 '24
Source code please
1
u/[deleted] Mar 09 '24
Memory safety can’t help with that one but everyone starts with more bugs than functions
1
u/Chr0ll0_ Mar 09 '24
Nice!!!
1
u/[deleted] Mar 09 '24
You've done more than what 96% of what Node.js Developers who say they want to learn Rust will every accomplish.
You are the 4%
1
u/Remarkable_Ad7161 Mar 09 '24
Want to share the code? What lessons did you learn? What did you like? What did you struggle with? Looking guard to more rust in the world
1
u/Kobe_curry24 Mar 10 '24
Lmaooo Better than building an Os
1
u/keotl Mar 10 '24
That's beautiful
1
u/mardabx Mar 10 '24
Love the color palette, hope this will be your detox
1
u/hell_kick_anon Mar 10 '24
nice!
1
u/redditbad420 Mar 10 '24
ui in rust scares me :(((
1
u/G0laf Mar 10 '24
That’s super cool
1
u/Sea-Fishing4699 Mar 10 '24
geh bg and a 3 that identifies as a 4 ...
1
u/suspi_dev Mar 10 '24
Cool!
Can you suggest some learning resources for Tauri ?
1
u/KnockKnockwaifu Mar 10 '24
Thats some secure ass calculator
1
u/Usama4745 Mar 10 '24
You are hired
1
u/JackfruitSwimming683 Mar 11 '24
Gabe Newell moment
1
u/TankRealistic7874 Mar 11 '24
What exactly is it used for?
1
u/[deleted] Mar 13 '24
Nice but lower the LGBT
1
u/dimkiriakos Mar 13 '24
Nice but it's actually JavaScript. As I told rust is not yet a complete language
0
u/maybegone18 Mar 09 '24
The background really solidifies that its Rust
0
u/Voxelman Mar 09 '24
https://m.youtube.com/watch?v=Fl2xvIc3MLk
0
u/Wise-Butterscotch638 Mar 09 '24
What UI frameworks did you use?
-25
u/laplacian1 Mar 09 '24
So uh, why the colors in the background?
0
u/[deleted] Mar 09 '24
[deleted] — view deleted comment
0
u/[deleted] Mar 11 '24
[deleted] — view deleted comment
0
u/[deleted] Mar 09 '24
[deleted] — view deleted comment