📝Get your *FREE Rust cheat sheet* : www.letsgetrusty.com/cheatsheet
@lbertondev91492 жыл бұрын
Awesome, I give thanks !!
@Anto-mi5pn2 жыл бұрын
Please do more project based videos. I couldn't for the life of me understand why there aren't a lot of rust projects on KZbin.
@Karpfly2 жыл бұрын
Yes! Please do some projects! Some series with 10-15 min per video on where you describe how it works. API with DB and Frontend, desktop app(gtk, qt bindings), simple game(godot bindings) or embedded :)
@whoopassmemes72562 жыл бұрын
I think it's because rust environment is pretty young. A lot of libraries has not 1.0, and despite the most love language since 2016, but i think a lot of them are professional who has a lot of experience and not really relying on tutorial. They just read the docs
@Karpfly2 жыл бұрын
@@whoopassmemes7256 yea, but this channel it's about learning Rust, I prefer learning with projects, on my university we have programming class with two kind of teachers, the "book" type where you write few simple cli program every class, and "project" type(those guys are owners of small dev company) - they only said: "i want you split in groups and write me app that does this, this and this, i don't care what technology you use, im your customer, sell me the app that i want. If you have problem with project im here to help you", so basically our groups have written and deployed multiple projects: desktop app(both linux and windows), web app and android app - that learned me much more than creating simple cli programs
@whoopassmemes72562 жыл бұрын
@@Karpfly yes, i agree with you. But that's not my point. My point is, the language is young and has pretty little community who are also content creators compared to other languages like javascript, golang, etc. But i love watching rust related videos, even though I'm not really learning the language, because here in Indonesia rust is not popular at all, and I'm currently in uni, still beginer, and currently learning golang. So maybe someday i will learn it
@Karpfly2 жыл бұрын
@@whoopassmemes7256 yea, you are right, same is for me i like rust but i only saw one job post in Poland where rust was only mentioned as nice to know, maybe some day...
@thomascastelly54402 жыл бұрын
For desktop applications, Tauri + Yew it's a pretty cool setup 100% Rust!
@fus3n2 жыл бұрын
do you know any (rust) beginner friendly GUI crates
@lbertondev91492 жыл бұрын
Tauri is amazing desktop and mobile applications!!
@thomascastelly54402 жыл бұрын
@@lbertondev9149 Is mobile already available? I saw "in progress" and "coming soon". A cool setup to try for mobile is Flutter in FFI with Rust :)
@thomascastelly54402 жыл бұрын
@@fus3n You should take a look to Dioxus
@lbertondev91492 жыл бұрын
@@thomascastelly5440 Yes, that's right, but soon mobile development will be available!
@musdevfrog2 жыл бұрын
The framework looks really nice to be honest. I might even consider building my projects without javascript. Rust is the future.
@haystackdmilith2 жыл бұрын
Using Yew since version 0.13. It's a lovely framework :) Nice you mentioned it
@ebrelus76872 жыл бұрын
Cześć. Tworzenie apek na androida już dodali? Czy w rust da się coś pisać funkcjonalnie są do tego biblioteki jak lodash i Ramda w js? Ten kanał tu chyba jest solidny na start. Sorki jestem zielony, dopiero ogarnialem reacta.
@genericuser91382 жыл бұрын
Some medium or beginner level project based tutorials would be better. Most tutorials and videos on newer techs are just how to make counter. Moreover, a project with backend and frontend would be much appreciated. Thank you!
@pedrobmorales Жыл бұрын
Phenomenal, lots of excellent material!!! Will look into building UIs with Rust and Yew!
@thecombativemedic5212 жыл бұрын
This is awesome I love practical and repeatable applications your an awesome teacher and made all of this feel so easy to learn!
@haystackdmilith2 жыл бұрын
Cargo extension worth mention: `cargo install cargo-edit` will install `cargo add` feature. With this you can simply write `cargo add yew` in the project root and it will automatically pick the latest version available.
@gregoryking26642 жыл бұрын
In Rust 1.62 this comes built in.
@nsa3967 Жыл бұрын
This is built in now
@brianteague80312 жыл бұрын
sauron is also worth checking out and also supports SSR.
@agivney Жыл бұрын
As always, a great tutorial, so easy to follow. Keep up the good work.
@chairmakerPete Жыл бұрын
Wow - this is really neat! Rust looks a bit tricky to learn, but could well be worth the effort.
@jaysistar27112 жыл бұрын
Perseus and Sycamore are my current choice. Server Side Rendering (SSR) and client side rendering Single Page App (SPA) in 1 package, like Next.js, or Sveltekit.
@ebrelus76872 жыл бұрын
can you share something simple like this on github to look? or a link to such
@RiwenX2 жыл бұрын
I was considering Yew for a new project, but the ecosystem is still lacking. For example, there is no map library yet.
@MikeM88912 жыл бұрын
For me the wasm file this produced was over a 1 MB! I guess I need to consider the size of my project before using Yew. I would love to see what Yew is really capable of. It just seems really heavy for such a small app, one that would be very easy and light to implement in Javascript with just notepad.
@izacximenes2 жыл бұрын
use trunk build --release
@crazyaccess2 жыл бұрын
Let’s rust, new intro loving you and your channel…
@MathiasLuer6 ай бұрын
I really love that. I have a question how do Yew apps perform in the matter of search engines
@codetothemoon2 жыл бұрын
Fantastic video! I am a bit of a Yew fan :)
@lukecastellan30002 жыл бұрын
Although I'm a Ziglang guy, it's super cool to see what is possible with Rust and WebAssembly!
@diegosorte2 жыл бұрын
X2
@altairbueno56372 жыл бұрын
The struct based components may be deprecated in the future in favor of function components tho
@----__---2 жыл бұрын
Afaik the general consensus afaik that wasm will not be an ideal solution fot building frontends until it can do direct dom manipulation.
@SumoCumLoudly2 жыл бұрын
Web assembly won't take off because its still too slow, not close to native performance. So apps that are too heavy for the Web are still too heavy, and javascript is already fine for everything else.
@----__---2 жыл бұрын
@@SumoCumLoudly Web assembly is not slow. Its literally the fastest you can get on the web. Once the major browsers start enabling wasm to have access to the browser APIs and the DOM, the javascript FFI will not be a bottleneck and wasm become able to really take off.
@climatechangedoesntbargain91402 жыл бұрын
I think long term everything will be wasm, including js
@raidensama1511 Жыл бұрын
As said back in the early 2000s JavaScript needs to die
@MisererePart2 жыл бұрын
I think you should take a look at Dioxus, which seems to be a more evolved framework than Yew for styling.
@pancakeslayer90842 жыл бұрын
How can I change default 8080 port?
@typecek2 жыл бұрын
how do I center a div
@UndeadSasuke342 жыл бұрын
I am a web dev, and I started learning rust for fun, and I love it. Do you think companies in the not too far future will start building apps with rust for backend and/or frontend? I will be so down to get a job for a company like this
@simppugaming25462 жыл бұрын
I followed the amazing tutorial but how would I go about deploying the website?
@yashsaxena92 жыл бұрын
Hello, I'm new to rust and webassembly. Can you specify what are the gains of yew over existing frameworks? I thought webassembly gets an api level access to dom so actually modifying dom elements is slower than a js way of dom manipulation, so wouldn't it take a huge toll when using web assembly for that?? Also does yew use multithreading? Also I can't find newer content on webassembly and yew, most of the things I get over internet is 2 to 4 years old, please suggest some newer content of you know any. Thank you :)
@someghosts2 жыл бұрын
Commenting here so I get alerted if anyone replies
@payman55812 жыл бұрын
Nice job. Can we use tailwind or bootstrap with yew?
@alexandersemionov57902 жыл бұрын
What’s the size of resulting wasm and JS?
@siminaniwhat Жыл бұрын
Hey man thanks for these amazing videos. Could you do more tutorials on yew wasm, like after testing it locally, how could we host it online for the internet to access? Currently im trying to host a static web page done using yew, and I tried to host it on github page, but it did not seem to work. github pages only able to load my index.html which is an empty page.
@mandjcraft2 жыл бұрын
I wish you did this with function components instead.
@jaldaadithya50532 жыл бұрын
could you please make a video on actix web with yew
@PieroRolando2 жыл бұрын
They now support functional components and hooks!
@funnynews3412 жыл бұрын
the basic videos is so much as docs show. But we can't find a complete projects rust production like other language (python, js, react,..)
@Thegamer-kf8zz2 жыл бұрын
Awesome video! This helped so much!!!!!
@avaric3z2 жыл бұрын
Can you make a video with ICED?
@tetuaoro2 жыл бұрын
Thanks a lot. Sure more video about yewww.
@valentinomelis83312 жыл бұрын
More video with yew! Even Using Tokio or Tauri please
@guymercier627 Жыл бұрын
Great programming and nice application... but still there is a long way before it can be compared or replace the Django library... looking forward to Rust.... I would like some example of replacing my React frontend with Rust. Currently I use React in some frontend applications and Django-Python RestFramework API backend...
@__lyynn2 жыл бұрын
Hey, what kind of UI software can we build with Rust ? This type of application can be easier un JavaScript with Électron and NodeJS. ( I have discover the Rust yesterday and i love it 😂 cli applications would be fun to build )
@lucianochadru40642 жыл бұрын
kzbin.infovideos
@lucianochadru40642 жыл бұрын
Don't be scared, this is actually easier that what you may think at the beginning. Just... fake it 'til you make it !
@lucianochadru40642 жыл бұрын
Reason why use Yew instead of wasm-pack ?
@lucianochadru40642 жыл бұрын
Lmao just figured out how dumb this comment was
@askmeshiah2 жыл бұрын
Thanks so much. Keep up the good work.
@saaddahmani18702 жыл бұрын
Please, a video about desktop GUI frameworks in Rust.
@13ciaran13000 Жыл бұрын
Sorry to be a noob here, but for the love of god can someone please explain to me what the hell "rustup" is. Everywhere I go seems to just assume I have it, and when I go to install it it says I need to uninstall rust??????? Like I assume it has its own version of rustc or whatever but idk. Someone please explain.
@13ciaran13000 Жыл бұрын
Like is there no way to target WASM with like normal Rust???? Like I have to install this weird alternative version of Rust?
@bartoszdobija2069 Жыл бұрын
@@13ciaran13000 it's not alternative version of rust, this is more like rust installer, it can update your rust, add packages like yew or rust-analyzer etc
@alexkuiper10962 жыл бұрын
Brilliant - thanks!
@TheZdannar2 жыл бұрын
I would like to see some videos taking Yew farther. Otherwise, I always enjoy your content.
@batman48952 жыл бұрын
I would love to see more wasm(_bindgen) tutorials as well as macro tutorials in the future! How did you actually achieve that the terminal is showing your history commands?
@aduentix94912 жыл бұрын
It's probably not zsh (the shell) (which is standard on MacOS), but "fish". You can look up tutorial on how to get a nice fish shell :)
@batman48952 жыл бұрын
@@aduentix9491 thank you!
@sbx17202 жыл бұрын
nice, but I prefer dioxus because you can build for web, mobile and desktop
@ironhammer40952 жыл бұрын
Wow, thanks for this comment. I did not know Dioxus existed. Now I do.
@leftyhero1472 жыл бұрын
Wtf man, you just read my mind. I was looking for something with Yew and Wasm
@coldsir54062 жыл бұрын
Awesome content. Love it. If Rust was be a girl I would marry her.
@andrefilipefonsecaborba49892 жыл бұрын
please, more rust videos!!!
@s1n7ax2 жыл бұрын
Please create more videos. Global state and other important stuff
@tomascerny65672 жыл бұрын
The font size is so large it hurts my eyes.
@jeffg46862 жыл бұрын
I INVENTED "impl vars" !!! It's one for the books ! (and I'm not even the smart one, not by a long shot - but I invented impl vars). Jeff was here 🤪
@kennethbeal2 жыл бұрын
Thank you!
@bobgodwinx2 жыл бұрын
The Best! Thanks
@mtteslian91592 жыл бұрын
Great class !
@adsick_ua2 жыл бұрын
suggest increasing video bitrate for better quality
@GlobalYoung72 жыл бұрын
Thank you 🙏 😊
@andriyabu2 жыл бұрын
awesome man.
@gusvanwes61928 ай бұрын
I can't follow this as I don't know react
@xodix14162 жыл бұрын
Could you look into Tauri? Setup is quite easy but calling rust from the frontend is something I will never understand
@ikazuchi-san57722 жыл бұрын
Tauri* its for making desktop applications out of web applications, just like electron
@xodix14162 жыл бұрын
@@ikazuchi-san5772 Ducking auto correct.
@ikazuchi-san57722 жыл бұрын
@@xodix1416 oh i see, ye autocorrect is horrible sometimes
@dziurappa2 жыл бұрын
Yes, I want more!
@alexzander__63342 жыл бұрын
wow, at last you started to put github repo of what you are doing in the video
@jonathanmoore56192 жыл бұрын
Thks
@MarkusBurrer2 жыл бұрын
I like Rust, but in this case I really would prefer Elm
@maalunandhu0072 жыл бұрын
thank you
@antonpodkur35202 жыл бұрын
More project videos!
@betrueto12 жыл бұрын
Noticed your later videos were on a Macbook, and earlier Ubuntu. Also, we all know Microsoft is a big Rust advocate. I want to create a VM for Rust dev with *all* the goodies to standardize the development environment. Can you recommend an OS? DO I give up any goodies with Linux (clippy, analyzer, etc.)? If not, is there a distro with a small footprint and required dev libraries that someone could recommend to build up such a VM? Thanks in advance. :-)
@klutch41982 жыл бұрын
Nice!
@stefankyriacou71512 жыл бұрын
More project based videos would be awesome!
@wintersunset17732 жыл бұрын
SIX HOURS OF PAIN Gone a couple minutes Thanks a bunch
@Fidelity_Investments2 жыл бұрын
I think I have a crush on this man.
@willinton062 жыл бұрын
A bit of boilerplate ngl but pretty good nonetheless
@sajjad78182 жыл бұрын
Awesome
@bitconnect2 жыл бұрын
i liked the video
@voqlyafvxj56582 жыл бұрын
You people need to understand this guy dont want to do more stuff like that. And people in a lot of these type of channels too. This guy takes code from yew repository, simplify this and record the video. If you google "yew counter" you'll find the example project from official yew repo. Thank you for your attention.
@sileme37332 жыл бұрын
If it weren't for you, I don't know what to do, I don't want to spend money on it
@krtirtho2 жыл бұрын
Seriously, the creators of Yew didn't find any better name than this? -_-
@andregraes2 жыл бұрын
A COUNTER?? Really?? A counter?!
@learntry90742 жыл бұрын
perfect ..
@zhaadd2 жыл бұрын
this is my first time crying over coding
@Scipio-Nigerianus2 жыл бұрын
Nice although it's counterintuitive to build a website with Rust. Way too complicated for something as simple as a counter. Svelte does this in like 5 lines
@mosth8ed2 жыл бұрын
Yeah, but Rust, though..
@RiwenX2 жыл бұрын
Obviously, a true production app in Yew wouldn't be a simple counter...
@tigrux2 жыл бұрын
That sound of a mechanical keyboard… hmmmm….
@wajahatalibasharat69232 жыл бұрын
rember life is short, so spend it wisely
@HylianEvil2 жыл бұрын
do what now to the like button?
@electrocuted50102 жыл бұрын
But why would you build a web app in Rust, when the ecosystem is undeveloped and JS/TS is mature? I really don't see an incentive to compile to WASM for the world's fastest cookie clicker app.
@climatechangedoesntbargain91402 жыл бұрын
Performance, Backend compatibility, fun
@veritopian1823 Жыл бұрын
This vid would be much better if you had the code prepared so you could concentrate on explaining it. Your explanation isn't very good because you're thinking only at the code level, with no wider view. Watching people type is like watching paint dry...
@nam17802 жыл бұрын
I AM BROKE SO I CANT AFFORD IT MY PARENTS WILL NEVER ALLOW (TT)
@MrZiyak992 жыл бұрын
Rust is clearly not meant to ever be used for web apps but this is cool nonetheless
@santiago47732 жыл бұрын
Always the same st*pid counter app 🤦😪
@THEGAMER-cc2eq2 жыл бұрын
How's the situation in Ukraine?
@MMABeijing2 жыл бұрын
it s fine
@evangeloskolimitras52762 жыл бұрын
Oh man please don't make the channel shity. Don't do the mistake other youtubers do. I come from a multiple years of web dev background and I know the library/framework/what so ever shiet. Actix, tokio etc yeah i think they offer something but in general my opinion is to keep your channel as vanilla as you can. Teach rust. Not rust frameworks. Just a suggestion. Keep up the nice work.
@flogginga_dead_horse40222 жыл бұрын
no
@Hyperboid2 жыл бұрын
Nix users: Use this command to serve: nix-shell -p trunk --run "trunk serve"
@tomkcey2 жыл бұрын
websockets :) we want websockets message broker :) we want message broker postgres :) we want postgres :)
@commievoyager2 жыл бұрын
Exellent! That all works! Just one point that _ctx should be private for me. But it still works.