What system are you using? I mean I am assuming it is a Linux based OS, but which one? I looks so clean and perfect/
@OlivierGeorg4 ай бұрын
I am following your tutorials, which is amazing. Always right to the point, always working great. Except for with one, which seems due to newsapi now requiering a UserAgent header. So I added the line .header("User-Agent", "CliNews") in fetch_async and it works. Thanks for the excellent job!
@Dreku225 ай бұрын
cargo install bacon 🔥 ty
@ajinkyax7 ай бұрын
Subscribed. even your website has some great articles. Good one
@creativcoder7 ай бұрын
Thank you :) It means a lot.
@debojyotimahto_338910 ай бұрын
Cargo deb is not working on my system it shows "You are creating a package for your current operating system only, and not for Linux.Use --target if you want to cross-compile"
@creativcoder7 ай бұрын
You should try github.com/burtonageo/cargo-bundle now.
@RyanYogan11 ай бұрын
This is great content, thank you, your videos helped clear up some confusion I was facing with rust, and you taught egui really well! Thanks!
@JXQU3 Жыл бұрын
Really helpful!
@buhaytza2005 Жыл бұрын
Thanks
@a5y Жыл бұрын
Thanks for taking time to put this together. Much appreciated.
@matteostara Жыл бұрын
Great video, thank you! I have noticed you use zsh too, and I was wondering how did you install bacon? I have installed it as you suggested with cargo install bacon but when I call it from terminal is red, meaning the command is not recognised. Do you happen to know why? Thanks again :)
@naitikmakwana4286 Жыл бұрын
after clicking on refresh button my application got stuck on loading page. please help!!!!
@Lucs-ku5cb Жыл бұрын
I think it would be much easier using Trunk
@devfagundes Жыл бұрын
Not even one single code that I get from tutorials in Rust works. So impressive
@xXYourShadowDaniXx3 ай бұрын
Skill Issue
@devfagundes3 ай бұрын
@@xXYourShadowDaniXx totally haha
@skoovee28 күн бұрын
you are watching a old video, its still good for the basics of how egui works but you should be looking at the docs yourself
@pashok1641 Жыл бұрын
my level of trust to the author after he mentions haskell typeclasses ↗️↗️↗️
@Mahmudul_Hasan92 Жыл бұрын
Excellent video. I faced an edge case when using the News API, sometimes it provides Null values for the titles and urls, and the app crashes because serde can't deserialize such data. I modified the code as below after doing some reading, and now it always(at least for now, not sure if other exceptions can occur) works. Basically this handles the case when the API gives a null value. Leaving it here if someone else gets stuck in this issue. #[derive(Deserialize, Debug)] pub struct Article { #[serde(deserialize_with = "deserialize_null_default")] pub title: String, pub url: String, } fn deserialize_null_default<'de, D, T>(deserializer: D) -> Result<T, D::Error> where T: Default + Deserialize<'de>, D: Deserializer<'de>, { let opt: Option<T> = Option::deserialize(deserializer)?; Ok(opt.unwrap_or_default()) }
@princeofexcess Жыл бұрын
is there a way to set opacity of 50% on the whole window in iced? transparency setting is not doing anything for me.
@anfelo91 Жыл бұрын
Great videos!
@paulclements3412 Жыл бұрын
I stumbled upon rust by accident having become totally disillusioned with c++ due to the tiresome and faulty header file structure and its inability to reliably work with OpenGL and other graphics packages and the difficulty of generating UI buttons. I'm a semi retired micro electronics designer (only hardware until a few years back!!) and teacher and am aiming to develop some software for interfacing projects with the raspberry pi as a start - I've come from having successfully programmed in python (mostly interactive stuff for kids in after school clubs) but realised it is too slow being an interpreted language. I also learned Pi Assembler but it has issues communicating to graphics devices using the "mailbox" . Rust (so far) appears to overcome the problems I faced with c++ and Pi assembler and your tutorial is so far the best and most informative support I have found, many thanks; I shall be studying your presentations and applying your superbly presented material over the next few weeks; if you are aware of any issues about using rust with the Pi 4b I'd be most grateful for your advice - just hoping that graphics will work - compiling code for graphics using the nano editor produces loads of errors and I've just switched over to visual studio code (I use visual studio with c# on my laptop). In the meantime you have my very best wishes, you are a very clever chap sir, I envy you for being a "natural" at this (I feel I will struggle for ever at it!!)and once again many thanks for "exploding the myth"
@RobertoOrtis Жыл бұрын
Does it compile on windows?
@Zooiest Жыл бұрын
What cursor pack do you use?
@learntry9074 Жыл бұрын
Thank you.. see you in 7b :)
@andrewbarnard5253 Жыл бұрын
Inspired by your app, I tried a different API that returned a JSON array of objects. That led me down a rabbit hole learning more about json_serde and how to model this in Rust. I got there in the end! Thx!
@brunob.7792 Жыл бұрын
Google pitchfork will put an end in all this suffering very soon
@Yas-gs8cm2 жыл бұрын
dude, this is the only tutorial out there for EGUI is approachable! Good job really... Covering almost everything, not too fast, not too slow and expressive... gj really
@avsaase2 жыл бұрын
Great series. How are you able to drag the window around when you have disabled the window decorations?
@creativcoder2 жыл бұрын
You can drag holding windows/cmd key. I'm planning to add visual cue at title bar to move window without the need to use windows/cmd key.
@peterthecoderd.12102 жыл бұрын
Sorry. I have really tried to follow this tutorial as I'd really like to learn. You go through things too fast, beginning with having the implementation fill in automatically at 7:00. I could not get this to work. I paused the playback and tried to enter in the function manually, but all I get is errors. I'm not new to programming, just new to Rust. Right now it seems impossible to learn from your examples.
@creativcoder2 жыл бұрын
For errors: Maybe your egui, version might be an upgraded one than the one in the video. For the pace: It you notice the video description it's shot as an "overview video". I'll try to slow down in future videos. Thank you for the feedback.
@damien87562 жыл бұрын
Hi, for this implementation with threads, there seems to be 2 behaviours. 1. if no api_key exist on start up - thread closes after fetch news 2. if api_key exist on start up - thread will maintain and go into an infinite loop with blocking at app_rx.recv()? For preload_articles() function, i seem to be getting infinite warn logs. Is that expected cuz I do not see that in the video. anyway, thanks for making this series!
@creativcoder2 жыл бұрын
1. If no api key exists, it will prompt you to enter the api key. 2. Yes The most recent commit in the repository has warning logs removed. Try that
@filmo2 жыл бұрын
2022-10 - Using Mac OSX I'm getting an error: no `run_native` in the root when building against the wasm32 target Not sure if this is Mac specific or what. almost no info found via googling. If anybody has same issue and has solved, please let me know. (It compiles fine when targeting the native desktop, just not 'wasm32') error[E0432]: unresolved import `eframe::run_native` --> headlines/src/main.rs:1:26 | 1 | use eframe::{egui::Vec2, run_native, NativeOptions}; | ^^^^^^^^^^ no `run_native` in the root
@creativcoder2 жыл бұрын
What command did you use to build for wasm32? Unfortunately, I don't have access to Mac atm, so cannot repro
@janmarais912 жыл бұрын
Will the refresh logic work if there was no API key set at launch time? Seems to me that the match arm dealing with the refresh message is using the API key set at init and therefore won't know what the newly set API key is.
@creativcoder2 жыл бұрын
Yes, if no api key is set, it will prompt you for the same. In the most recent commit to the repository, there's also a settings button to reset the api key.
@SATCOMGoose2 жыл бұрын
For RPM based linux distributions ie Fedora and RHEL instead of cargo-deb use the "cargo-rpm" crate
@aeases-2 жыл бұрын
just out of curiosity what is the settings/extension/theme your using for the dock in gnome?
@filmo2 жыл бұрын
Question: Why is 'render_top_panel()' placed into 'impl Headlines' but the helper functions 'render_footer' and 'render_header' are not?
@creativcoder2 жыл бұрын
Good catch, there isn't any reason, I might have missed refactoring it while shooting the video. Will make changes
@kagenao23362 жыл бұрын
this is what i've been looking for... for so long. I do not overexaggerate when I say that this (imo) is close to perfect. (maybe speak a bit louder) Keep up the amazing work!
@creativcoder2 жыл бұрын
Thank you, means a lot. Sure, will fine tune my rec setup
@sushmitpalrishiyt2 жыл бұрын
if anyone is install bacon, try installing using "cargo install --locked bacon". normal "cargo install bacon" throws "tokio" error in the end
@TheZazatv2 жыл бұрын
Why I find such videos so relaxing & inspiring. Thank you! Keep on posting 🤗
@peterthecoderd.12102 жыл бұрын
Hello! Thanks for making this video. It all worked fine until the render_articles function. From that point until now building and running generates many lines of errors. None of these errors were from the code I entered, but from at least one of the crates. One of them says something like "can't be used in a stable release." I've spent a good couple of hours trying to figure it out. I thought I would be following your tutorials as you get into using egui. I'm lost. It is a shame you didn't post your source files for this tutorial, but for a future one.
@creativcoder2 жыл бұрын
Hey thanks. Can you try checking out the repo at `refactor` git tag: github.com/creativcoder/clinews/releases/tag/refactor and see if you can build it?
@alihusham15602 жыл бұрын
Now you have two title bars? How to remove the default title bar?
@creativcoder2 жыл бұрын
As per the most recent release of egui 0.19, you need to set docs.rs/eframe/latest/eframe/struct.Frame.html#method.set_decorations to false to get rid of the outer window.
@overshifted2 жыл бұрын
Great video, but I would like to mention that the Imgui library, is actually called "Dear Imgui" and is pronounced "Dear I'm GUI"
@torstenmeyer46532 жыл бұрын
your vids are great. i got so much understanding of stuff from rust... this is fantastic
@andygravs2 жыл бұрын
when i try to create the debian package using cargo deb i get this error unrecognized option: --strip-unneeded does anyone know how to solve that? I'm on macOS Monterey 12.4
@yevgeniygrechka64312 жыл бұрын
This was a great tutorial; do you know what is the best way to play an audio file (e.g. mp3) with egui?
@alfredomenezes88142 жыл бұрын
This lesson was awesome thank you very much 🦀❤️
@alfredomenezes88142 жыл бұрын
Amazing thank you for the tutorial ❤️🦀
@alfredomenezes88142 жыл бұрын
This is amazing and much more easier than I expected to do in Rust! Coming from Java, the Java program to do the same thing would be hundreds of lines longer to do the same thing Thank you very much for this tutorial and keep up with the Rust tutorials! 🦀
@alfredomenezes88142 жыл бұрын
Very nice, thank you for the course!
@alihusham15602 жыл бұрын
isn't YEW better and faster than this?
@henrylang6992 жыл бұрын
faster? it calls web technologies from wasm lol
@alihusham15602 жыл бұрын
@@henrylang699 oh so EGUI does not depend on javascript at all?
@chiragsingla.2 жыл бұрын
I love your voice
@CaioDanielNunesSantos2 жыл бұрын
Thank you
@spinthma2 жыл бұрын
Super life intro thanks a lot!
@spinthma2 жыл бұрын
and also the immediate compile and the output on the terminal, which plugin do you use?