Prompt for User Input with Rust Inquire Crate 🦀 Rust Programming Tutorial for Developers

  Рет қаралды 2,316

Trevor Sullivan

Trevor Sullivan

Күн бұрын

If you need to prompt a user of your Rust application for input, the "inquire" crate can likely help you out. The open source inquire crate will help you prompt for simple text values, select one or multiple values from a list, pick a date from a calendar, edit files using an external editor, and more. The inquire crate also features custom data validation, so you can ensure your users are entering data according to certain rules that you specify.
🚨📦 Help support this channel - shop through my Amazon storefront!
⬇️⬇️⬇️
www.amazon.com...
⬆️⬆️⬆️
🤯 Rust Programming Playlist 🦀 • Rust Programming Tutor...
📖 Rust Cargo Workspaces📦➡️ doc.rust-lang....
Visual Studio Code ➡️ code.visualstu...
Rust Website ➡️ rust-lang.org
Rustup Installer ➡️ rustup.rs
Rust Docs ➡️ doc.rust-lang....
Please follow me on these other social channels!
➡️ trevorsullivan...
➡️ github.com/pcg...
➡️ / pcgeek86
➡️ / trevorsullivan
➡️ / trevorsoftware
➡️ tiktok.com/pcg...
All trademarks, logos and brand names are the property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names,trademarks and brands does not imply endorsement.
#rustlang #rust #rustdev #opensource #software #linux #devops #programming #rusty #dev #coding #codinglife #code #coder #ubuntu #ubuntulinux #appdev #developer

Пікірлер: 43
@TrevorSullivan
@TrevorSullivan 2 ай бұрын
🚨📦 Help support this channel - shop through my Amazon storefront! ⬇⬇⬇ www.amazon.com/shop/trevorsullivan ⬆⬆⬆
@prashlovessamosa
@prashlovessamosa 2 ай бұрын
Thanks for coming back please keep uploading consistently.
@AhmedFalih-kj3tt
@AhmedFalih-kj3tt 2 ай бұрын
Thank you so much for your amazing Rust tutorials! Your content has been incredibly helpful, and I truly appreciate the time and effort you put into making such high-quality videos. I wish you all the best and hope you continue to share your knowledge with the community. Keep going, you're making a huge impact!
@TrevorSullivan
@TrevorSullivan 2 ай бұрын
@@AhmedFalih-kj3tt hello Ahmed, thank you for letting me know that these videos have helped you, and your encouragement! I'm so happy to hear that you're learning Rust! 🦀 Keep experimenting and creating new things, and don't be afraid to share your creations as open source. 😊
@461k
@461k Ай бұрын
Trevor, you are amazing. I truly appreciate all these videos and the effort you put into them. You and your channel continuously motivate me to write more code and you've taught me so many concepts. You give me so many good ideas. Thank you!
@meyou118
@meyou118 2 ай бұрын
good to see you back
@stormz4040
@stormz4040 2 ай бұрын
Thank you for all your videos. They are awesome.
@santana2771
@santana2771 2 ай бұрын
I've been desperate looking for a crate like this, didn't even watch the video but you gave me a great recommendation thankyou so much!
@TheBuilder
@TheBuilder 2 ай бұрын
welcome back
@TrevorSullivan
@TrevorSullivan 2 ай бұрын
@@TheBuilder thank you! I'm happy to be back. Looks like you've been busy. 📺
@martinkrenk
@martinkrenk 2 ай бұрын
Wow, I was just looking for a video on this exact topic a few days ago and was surprised you hadn’t made one. Great timing! 😄
@aintnochange
@aintnochange 2 ай бұрын
We're SO back thanks!
@TrevorSullivan
@TrevorSullivan 2 ай бұрын
party-parrot.gif
@James-the-elder
@James-the-elder 2 ай бұрын
Welcome back. It’s been awhile
@TrevorSullivan
@TrevorSullivan 2 ай бұрын
@@James-the-elder thanks for coming back! 🦀
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 2 ай бұрын
It looks like a very versatile and powerful crate. I wish I discovered it eralire, because I have to implement a very similar functionality independebly. I wish we had more good Rust channels like yours.
@MikeHenry0001
@MikeHenry0001 2 ай бұрын
Yay yay yay yay He's Backkkkkk!!!!!
@symshark
@symshark 2 ай бұрын
Awesome, welcome back! its been a while
@TrevorSullivan
@TrevorSullivan 2 ай бұрын
@@symshark thank you! I'm happy to continue the Rust playlist! 🦀 I really love the language! Enjoy coding! 🦀
@Zipper4o
@Zipper4o 2 ай бұрын
Finally some more content from the man
@LBernardinello
@LBernardinello 21 күн бұрын
Great video! Please make one using Druid GUI
@artwelf
@artwelf Ай бұрын
Great video, thanks! But when you check the first letter of the name, it is always useful to remember that not all valid letters are ASCII letters. It is better to check: match input.chars().next() { Some(c) => { if c.is_uppercase() { ... } } }
@TrevorSullivan
@TrevorSullivan Ай бұрын
Yes that's a great point! Thanks for sharing.
@thedi0
@thedi0 2 ай бұрын
hey trevor, make an video about ratatui crate please!
@TrevorSullivan
@TrevorSullivan 2 ай бұрын
That's definitely on the list! 🙂 I've used it a little bit, it's just pretty complicated and will take me quite a while to come up with a good quality video on the topic. Thanks for sharing your interest in it! Keep an eye out! 👀
@ohmyv3gatron
@ohmyv3gatron 2 ай бұрын
hmm can't you to like if x.is_uppercase?
@James-the-elder
@James-the-elder 2 ай бұрын
You could, but I believe the idea was to write custom validators.
@TrevorSullivan
@TrevorSullivan 2 ай бұрын
@@ohmyv3gatron good idea! I could have actually used that method inside the custom validator, right? Thanks for pointing that out!
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 2 ай бұрын
Do you know any place where I can submit an article about Rust programming?
@TrevorSullivan
@TrevorSullivan 2 ай бұрын
@@kamertonaudiophileplayer847 have you thought about creating your own blog? It's really easy to do with GitHub and a static site generator! Maybe look at astro?
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 2 ай бұрын
@@TrevorSullivan I use the github a lot. My concern that people like to read blog from different people in one place. Otherwise your suggestion is fine.
@TrevorSullivan
@TrevorSullivan 2 ай бұрын
@@kamertonaudiophileplayer847 I understand what you mean. I guess you could try Medium or dev.to?
@kamertonaudiophileplayer847
@kamertonaudiophileplayer847 2 ай бұрын
@@TrevorSullivan Thanks, I already think of them. I thought maybe there is a good place specifically for Rust. But it looks like the language isn't really popular yet.
@TrevorSullivan
@TrevorSullivan 2 ай бұрын
@@kamertonaudiophileplayer847 yeah it's not crazy popular yet, but now is a good time to get in before it blows up 😊🦀
@BrazenNL
@BrazenNL 2 ай бұрын
I'm already using this crate and wanted to see how you use it. It looks more like a Rust tutorial than an inquire tutorial.
@TrevorSullivan
@TrevorSullivan 2 ай бұрын
@@BrazenNL gotcha, this was more intended to introduce people to the create who might not already be using it. One practical use case, that I used this for recently, was to manage Amazon S3 storage. I wrote a utility that allows you to create or delete buckets, create some random test data, empty all objects from the bucket, and list objects in the bucket. It's not exactly production ready, but I posted a preview of it to my LinkedIn page, and X I think. I published it to crates.io as "s3-stress"
@BrazenNL
@BrazenNL 2 ай бұрын
@@TrevorSullivan Okay. However, after 20 minutes you're still talking about error handling in Rust, so I clicked away. Don't get me wrong, your channel, your rules, just letting you know why I lost interest. Might be an example of Dutch directness, I have no idea how it's perceived on your end.
@TrevorSullivan
@TrevorSullivan 2 ай бұрын
​@@BrazenNL I'm sorry you didn't get any value out of it. Since inquire uses the Result type as a return value, I thought it was relevant to discuss some common patterns for handling error conditions. My general objective is for viewers to learn at least one new, little trick from each of my videos, even if it doesn't pertain to the video's primary topic. Sometimes it's just helpful for people to see how others go about problem solving. I certainly don't expect 100% of people to like my style. I appreciate your involvement in the Rust community.
@BrazenNL
@BrazenNL 2 ай бұрын
@@TrevorSullivan Yes, and the Result type is _exactly_ that. A Rust feature which has nothing to do with the crate (or, if you take that perspective, something you can explain with _every_ crate. Anyway, enough of me telling you what I expected.
@paulobitfranca
@paulobitfranca 2 ай бұрын
please make the source code available (:
@amanfreecs
@amanfreecs 2 ай бұрын
♥️♥️🫂
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,7 МЛН
When mom gets home, but you're in rollerblades.
00:40
Daniel LaBelle
Рет қаралды 54 МЛН
why rust libraries may never exist.
7:26
Low Level
Рет қаралды 267 М.
Walking Away From JavaScript
1:06:44
ThePrimeTime
Рет қаралды 212 М.
Rust's Witchcraft
9:18
No Boilerplate
Рет қаралды 183 М.
Don't Contribute to Open Source
9:55
Theo - t3․gg
Рет қаралды 237 М.
The Only Unbreakable Law
53:25
Molly Rocket
Рет қаралды 333 М.
you need to build a RUST desktop app!!
27:21
Travis Media
Рет қаралды 321 М.
All Rust features explained
21:30
Let's Get Rusty
Рет қаралды 316 М.
Миллионер | 2 - серия
16:04
Million Show
Рет қаралды 1,7 МЛН