Latest / CyberSecurity Summary / Rust Web Programming: A hands-on guide to developing fast and secure web apps with the Rust programming language
Transcript
- 0:00Speaker 1: All right, diving into Rust for web development.
- 0:03Speaker 2: That's a that's a great choice.
- 0:05Speaker 1: It's known for its speed and security, right yeah. Yeah,
- 0:08Speaker 1: And to help us kind of break it all down,
- 0:10Speaker 1: we have excerpts from Rust Web Programming, a hands on
- 0:14Speaker 1: guide Excellent. I'm excited to unpack this. It's a good one,
- 0:19Speaker 1: I think so. Yeah, So Rust is gaining traction, it is.
- 0:23Speaker 1: It is, especially for those high performance web apps for sure.
- 0:26Speaker 2: For sure, it kind of.
- 0:27Speaker 1: Bridges the gap, you know, between that low level control
- 0:30Speaker 1: and high level abstraction. Absolutely, so it seems like this
- 0:34Speaker 1: book is a perfect starting point.
- 0:36Speaker 2: I think so too, especially for.
- 0:38Speaker 1: Those who may have some background and web development already.
- 0:41Speaker 2: Yeah, if you've got HTML, CSS, JavaScript out of your belt,
- 0:44Speaker 2: you're you're going to be in a good spot.
- 0:46Speaker 1: Like the usual suspects for sure. But it also delves
- 0:49Speaker 1: into deploying on AWS, yeah, which I think is a
- 0:52Speaker 1: major win absolutely for practical experience.
- 0:54Speaker 2: You gotta get that real world story. Yeah.
- 0:56Speaker 1: So there's a lot to unpack, there is, But we
- 0:59Speaker 1: can't forget about those core Rust concepts like.
- 1:02Speaker 2: Yeah, like data types, memory management, or handling, right, and
- 1:06Speaker 2: these can be stumbling blocks, especially if you're coming from
- 1:08Speaker 2: a language like Python or JavaScript. Oh for sure, you
- 1:11Speaker 2: know where things are maybe a little bit.
- 1:12Speaker 1: Looser, yeah, a little more forgiving exactly. So how Rust
- 1:17Speaker 1: handles things differently is one of the first things that
- 1:20Speaker 1: grab my attention. Okay, strong typing. This concept of ownership
- 1:24Speaker 1: of variables and memory management without a garbage collector, right,
- 1:28Speaker 1: that's a lot to process.
- 1:29Speaker 2: It is, It is a lot to process, and that's
- 1:31Speaker 2: that's what makes us so unique. This, this ownership system
- 1:36Speaker 2: in particular, is key to Rust's memory safety. Okay, without
- 1:41Speaker 2: needing that garbage collector. Interesting, Yeah, so think of it
- 1:45Speaker 2: this way. Every piece of data in Rust has a
- 1:47Speaker 2: designated owner, and when that owner is no longer needed,
- 1:51Speaker 2: the data is automatically cleaned up. No more memory leaks
- 1:54Speaker 2: or those pesky dangling pointers.
- 1:56Speaker 1: It's like having a built in cleanup crew your code.
- 2:00Speaker 2: That's a great way to put it.
- 2:01Speaker 1: Always making sure things are tidy, yeah and efficient.
- 2:04Speaker 2: Keep everything nice and clean.
- 2:06Speaker 1: But how does that play out in a real world scenario?
- 2:10Speaker 2: Okay, so let's take strings as an example. On page sixteen,
- 2:15Speaker 2: the book shows how a string is created and assigned
- 2:19Speaker 2: to a variable, making that variable the owner. Then if
- 2:22Speaker 2: you pass that string to a function, ownership is transferred.
- 2:26Speaker 2: You're essentially handing over responsibility, gotcha, for that piece of data.
- 2:30Speaker 2: And this prevents situations where multiple parts of your code
- 2:35Speaker 2: might try to modify the same data simultaneously.
- 2:38Speaker 1: Which would cause chaos.
- 2:40Speaker 2: Yeah, it can lead to all sorts of problems.
- 2:41Speaker 1: So it's like having a clear chain of command for
- 2:45Speaker 1: your data absolutely, so everyone knows who's in charge exactly.
- 2:48Speaker 2: And it's visually represented in that diagram on page sixteen
- 2:52Speaker 2: showing the strings relationship to strains, So it really helps
- 2:54Speaker 2: to see it laid out like that.
- 2:56Speaker 1: Definitely, now onto something that always makes me a bit nervous,
- 3:00Speaker 1: error handling.
- 3:01Speaker 2: Oh yeah.
- 3:01Speaker 1: It seems that Rust takes a very unique approach, as
- 3:05Speaker 1: it does with these things called options and results. Oh right,
- 3:08Speaker 1: It kind of sounds a little intimidating.
- 3:10Speaker 2: They do. They do sound a little intimidating at first,
- 3:12Speaker 2: but options and results are Rust's way of forcing you
- 3:18Speaker 2: to confront those potential errors head on, okay, like, really
- 3:22Speaker 2: think about what could go wrong, gotcha. The book uses
- 3:25Speaker 2: a great example on page ten with a hash mat. Okay,
- 3:28Speaker 2: when you try to retrieve a value using a key
- 3:33Speaker 2: that the key might not exist and So instead of
- 3:36Speaker 2: just like returning the value, which could lead to unexpected crashes,
- 3:40Speaker 2: Rust returns an option.
- 3:42Speaker 1: So it's like Rust is saying, hey, be prepared, Yeah,
- 3:45Speaker 1: this might not work out as plans, exactly.
- 3:47Speaker 2: It's a bit more upfront than other.
- 3:49Speaker 1: Languages that kind of let you get away with ignoring
- 3:52Speaker 1: those potential errors.
- 3:53Speaker 2: Right. In those other languages, you can just kind of
- 3:55Speaker 2: like cross your fingers and hope for the best.
- 3:57Speaker 1: Yeah, hope it works.
- 3:58Speaker 2: But Rust is like, nope, let's deal with this right now.
- 4:01Speaker 1: Yeah, let's be explicit.
- 4:03Speaker 2: Yeah.
- 4:03Speaker 1: So that option acts like a container. It either holds
- 4:06Speaker 1: the value you're looking for, or it indicates that it's empty, exact,
- 4:10Speaker 1: and you have to explicitly check and unwrap it to
- 4:14Speaker 1: access that value.
- 4:15Speaker 2: Yep, And that prevents those nasty runtime surprises.
- 4:18Speaker 1: So you're not getting this, like you said.
- 4:20Speaker 2: Crashes exactly, No, no crashes.
- 4:22Speaker 1: Later on down the line, I'm starting to see how
- 4:25Speaker 1: this emphasis on explicit error handling can lead to more
- 4:31Speaker 1: robust code in the long run.
- 4:32Speaker 2: Absolutely, it's like building a safety net, yeah, into your
- 4:35Speaker 2: program from the ground up.
- 4:37Speaker 1: Okay, great, now onto structs and treats. I have to
- 4:40Speaker 1: admit those names sound a little intimidating a little bit.
- 4:43Speaker 2: Yeah they sound a little scary, yeah, but they're actually
- 4:45Speaker 2: pretty straightforward.
- 4:46Speaker 1: Okay.
- 4:47Speaker 2: So think of structs as blueprints, okay for your data.
- 4:52Speaker 2: They let you define the structure of the information you're
- 4:54Speaker 2: working with.
- 4:55Speaker 1: Gotcha.
- 4:56Speaker 2: Traits, on the other hand, are like contracts.
- 4:58Speaker 1: Okay.
- 4:59Speaker 2: They define be behavior that different structs can share.
- 5:02Speaker 1: So if you have a struct that represents a user, okay,
- 5:06Speaker 1: you can have a trait that defines how to authenticate
- 5:08Speaker 1: that user right exactly, okay, and any other struct that
- 5:11Speaker 1: wants to handle authentication would need to implement that trait exactly.
- 5:17Speaker 2: Yeah. And that's how you ensure consistency, yeah, across your code.
- 5:21Speaker 1: Gotcha.
- 5:21Speaker 2: So the book illustrates this concept nicely on pages twenty eight,
- 5:25Speaker 2: thirty and fifty one with the coordinates struct and traits
- 5:28Speaker 2: like get to delete and edit. Cool, and it shows
- 5:31Speaker 2: you how you can add specific functionality to a struck,
- 5:34Speaker 2: making your code more modular and easier to maintain.
- 5:37Speaker 1: So it's about those building blocks, creating those reusable components
- 5:40Speaker 1: that you can mix and match to create more complex functionality.
- 5:44Speaker 2: Exactly.
- 5:45Speaker 1: Awesome. So, speaking of toolboxes, okay, we can't forget about Cargo.
- 5:50Speaker 2: Of course not. Cargo's the best rusts.
- 5:52Speaker 1: Build system and package manager.
- 5:55Speaker 2: Right.
- 5:55Speaker 1: It's like having a personal assistant for your rest projects. Yeah,
- 5:59Speaker 1: it seems like Cargo handles everything. It pretty much does,
- 6:03Speaker 1: from managing dependencies, building your code, running tests, generating documentation.
- 6:10Speaker 2: It's like the Swiss army knife.
- 6:12Speaker 1: It is a Swiss army knife.
- 6:13Speaker 2: Of Rust develops.
- 6:15Speaker 1: You don't have to manually download and install libraries, worry
- 6:18Speaker 1: about compatibility issues, any of that headache inducing stuff.
- 6:22Speaker 2: None of that.
- 6:23Speaker 1: Cargo just handles it all for you.
- 6:25Speaker 2: Yep, it just takes care of it.
- 6:27Speaker 1: Now, let's move on to web frameworks. Okay, the book
- 6:30Speaker 1: focuses on Actics Web, known for its speed.
- 6:34Speaker 2: It is blazing fast.
- 6:35Speaker 1: What makes it so fast, so.
- 6:36Speaker 2: Actis Web leverages Rust's asynchronous capabilities. It uses async programming,
- 6:43Speaker 2: which essentially allows your web app to juggle multiple tasks
- 6:47Speaker 2: concurrently without getting bogged down by waiting. Think of it
- 6:51Speaker 2: like a chef who can prep ingredients for one dish
- 6:54Speaker 2: while another is simmering on the stove.
- 6:56Speaker 1: So instead of waiting for one task to finish before
- 6:59Speaker 1: moving on to the next, exactly, it can keep things moving.
- 7:02Speaker 2: Yep, keep everything flow and smoothly.
- 7:04Speaker 1: Making it much more efficient and responsive.
- 7:06Speaker 2: It's all about that efficiency.
- 7:07Speaker 1: So Rust has built in support for this asynchronous programming
- 7:11Speaker 1: it does, which Actic's Web expertly uses right out of
- 7:15Speaker 1: the box. The book breaks down the structure of an
- 7:17Speaker 1: Actic's web app on page eighty six, Yeah, showing how
- 7:21Speaker 1: views are modularized for different functionalities like authentication or handling
- 7:27Speaker 1: specific data items.
- 7:28Speaker 2: Yeah, it's all about keeping your code nice and organized.
- 7:31Speaker 1: Yeah, it's all about organization and keeping your code clean exactly.
- 7:34Speaker 1: And then we have routes which we see defined on
- 7:37Speaker 1: pages ninety eight and one oh two. Yeah, and these
- 7:39Speaker 1: are like the signposts of your web app.
- 7:41Speaker 2: Yeah, think like the roadmap for your application.
- 7:45Speaker 1: So they direct incoming requests to the appropriate views based.
- 7:48Speaker 2: On the URL exactly. So somebody goes to you know,
- 7:52Speaker 2: slash log in, yeah, it knows to send them to
- 7:54Speaker 2: the log in view. Perfect, things like that.
- 7:57Speaker 1: Speaking of data, I see that actics Web uses Jason
- 8:00Speaker 1: extensively for communication.
- 8:02Speaker 2: Jason is the language of the web. It is, it is,
- 8:05Speaker 2: it really is.
- 8:06Speaker 1: But luckily there's Sarday.
- 8:08Speaker 2: Yes, Sauraday is a life saver.
- 8:09Speaker 1: To simplify that whole process.
- 8:11Speaker 2: Makes it so easy.
- 8:12Speaker 1: Saraday effortlessly converts Rust data structures into JSON format for
- 8:18Speaker 1: sending over the network, and seamlessly converts incoming Jason back
- 8:23Speaker 1: into Rust.
- 8:24Speaker 2: Structs, right back into those nice, neat data structures.
- 8:27Speaker 1: The book showcases this beautifully on page one oh five,
- 8:31Speaker 1: where a j request is handled and the response is
- 8:34Speaker 1: sent back as Jason data, all beautifully structured using a
- 8:38Speaker 1: Toto item struct defined on page one ten.
- 8:41Speaker 2: It's a great example.
- 8:42Speaker 1: Yeah, I think so too. So Rust combines power with elegance.
- 8:47Speaker 1: You get the control and safety of RUSS with the
- 8:49Speaker 1: convenience and readability of well structured code.
- 8:52Speaker 2: And that's what we all want, right we do. We
- 8:55Speaker 2: want our code to be readable and understandable.
- 8:58Speaker 1: So far we've explored how Rust hands data, yeah, manages
- 9:02Speaker 1: memory structures web apps. Right, it's a lot to take in,
- 9:06Speaker 1: but it's pretty impressive.
- 9:07Speaker 2: It is. It is very impressive.
- 9:09Speaker 1: So what's next on a Rust adventure?
- 9:11Speaker 2: Well, no web app is complete without data persistence, right,
- 9:14Speaker 2: We need a way to store information beyond those temporary
- 9:17Speaker 2: JSON files. So for that we have diesel therm for Rust.
- 9:22Speaker 1: All right, let's dive into that in part two. That's
- 9:24Speaker 1: good So, dear listener, take a moment to digest all
- 9:28Speaker 1: this amazing Rust knowledge.
- 9:30Speaker 2: There's a lot to unpack.
- 9:32Speaker 1: There is. We'll be right back with part two.
- 9:34Speaker 2: Yeah, looking forward to it.
- 9:36Speaker 1: To explore diesel and other fascinating aspects of Rust web development.
- 9:40Speaker 1: See you soon, Welcome back. Last time, we got a
- 9:42Speaker 1: glimpse of how Rust approaches you know, memory management and
- 9:46Speaker 1: error handling.
- 9:47Speaker 2: It's a different way of thinking, but I'm starting to
- 9:49Speaker 2: appreciate how it leads to more robust code.
- 9:52Speaker 1: Oh yeah, for sure. Yeah, but let's dive back into
- 9:55Speaker 1: the book and see how those concepts play out in
- 9:57Speaker 1: web development.
- 9:58Speaker 2: So good.
- 9:59Speaker 1: I'm particularly interested in those closures mentioned in the chapter
- 10:03Speaker 1: on handling HTTP requests? What exactly are they?
- 10:07Speaker 2: So? Closures are essentially anonymous functions that have this needability
- 10:14Speaker 2: to capture variables from their surrounding environment.
- 10:17Speaker 1: Do they have a memory?
- 10:19Speaker 2: Yeah, they kind of have a memory. They hold on
- 10:21Speaker 2: to information from the context in which they were created.
- 10:24Speaker 1: Okay, that sounds intriguing, but how does that translate to
- 10:29Speaker 1: building web servers?
- 10:30Speaker 2: So think about how you define routes in a web framework.
- 10:34Speaker 2: You're essentially mapping URLs to specific code that handles those requests.
- 10:40Speaker 2: Closures provide this really concise and flexible way to do this.
- 10:44Speaker 2: Remember that httpserver dot new function in aactics web.
- 10:48Speaker 1: Yeah, that's where you create the web server exactly.
- 10:50Speaker 2: You pass a closure to that function, and that closure
- 10:53Speaker 2: defines the applications logic.
- 10:55Speaker 1: So the closure acts like the brain of the web server.
- 10:58Speaker 2: Yeah, that's a great way to put.
- 10:59Speaker 1: It, decide what to do with each incoming request.
- 11:02Speaker 2: Yeah, it's like the control center okay. And because closures
- 11:07Speaker 2: can capture variables from their surroundings, they can access things
- 11:13Speaker 2: like database connections or configuration settings okay, that are defined
- 11:17Speaker 2: outside the closer itself.
- 11:18Speaker 1: So it's like having everything the server needs readily available.
- 11:21Speaker 2: Exactly. It's all right there at its fingertips.
- 11:24Speaker 1: It seems like closures bring a lot of organization and
- 11:27Speaker 1: efficiency to the table.
- 11:28Speaker 2: They really do, they really do.
- 11:30Speaker 1: But web development also often involves a lot of asynchronous programming.
- 11:34Speaker 2: Oh yeah, it's essential these days.
- 11:36Speaker 1: Which I'm still trying to wrap my head around.
- 11:38Speaker 2: It can be a little mind bending, it can, but
- 11:40Speaker 2: once you get it, it's really powerful.
- 11:43Speaker 1: Okay.
- 11:43Speaker 2: So a secretist programming is all about making your applications
- 11:47Speaker 2: more responsive and efficient. Okay, It allows a program to
- 11:50Speaker 2: work on other things while it's waiting for something like
- 11:53Speaker 2: a network request to complete.
- 11:55Speaker 1: Gotcha. So instead of just sitting idle, right, instead of.
- 11:59Speaker 2: Just blocking and waiting, it can go do other things.
- 12:01Speaker 2: It can multitask exactly, get multitask.
- 12:03Speaker 1: Making better use of resources and time.
- 12:05Speaker 2: Yeah, it's all about maximizing efficiency.
- 12:08Speaker 1: So instead of waiting for like a database query to
- 12:10Speaker 1: finish before moving on exactly, the server can handle other requests.
- 12:15Speaker 2: Yep, keep things moving.
- 12:16Speaker 1: It's like a well coordinated dance.
- 12:18Speaker 2: That's a great way to put it.
- 12:19Speaker 1: So Rust has this built in support. It does it
- 12:22Speaker 1: for asynchronous programming, which acticx web expertly uses.
- 12:27Speaker 2: Yeah, it just takes full advantage of it.
- 12:28Speaker 1: The book does a good job of breaking down the
- 12:31Speaker 1: core concepts of asinc in Rust. Okay, like the async
- 12:35Speaker 1: and awaight keywords.
- 12:37Speaker 2: Right, those are the key players.
- 12:38Speaker 1: And it even explores different ways to run these asynchronous
- 12:41Speaker 1: tasks concurrently using the futures crate.
- 12:45Speaker 2: Yeah, the Future's crate is essential for working with asink
- 12:48Speaker 2: and Rust.
- 12:48Speaker 1: Okay. So now let's shift gears a bit and talk
- 12:50Speaker 1: about managing the different views within our web app.
- 12:53Speaker 2: Right, sounds good?
- 12:54Speaker 1: You know, things like a home page, a log in page,
- 12:58Speaker 1: a user.
- 12:58Speaker 2: Profile, all the different sections.
- 13:01Speaker 1: How does rust approach that?
- 13:03Speaker 2: So Actic's Web encourages modularity by organizing views into separate modules.
- 13:09Speaker 1: So it's all about organization.
- 13:10Speaker 2: Yeah, keeping things tidy as our application grows, right, because
- 13:13Speaker 2: things can get messy quickly, they can if you're not careful.
- 13:17Speaker 1: So the book takes that a step further, okay, and
- 13:19Speaker 1: introduces this concept of view factories.
- 13:22Speaker 2: Oh yeah. View factories are great.
- 13:24Speaker 1: Functions dedicated to configuring and registering your views within the
- 13:28Speaker 1: web application.
- 13:29Speaker 2: Yeah. It's a nice way to centralize things.
- 13:31Speaker 1: So instead of scattering route definitions throughout our code, exactly,
- 13:35Speaker 1: have this centralized.
- 13:37Speaker 2: Place yep, one place to rule them all.
- 13:39Speaker 1: I like that.
- 13:40Speaker 2: It definitely makes things easier to manage.
- 13:42Speaker 1: So these view factories can be as simple or as
- 13:45Speaker 1: complex as you need them to be.
- 13:48Speaker 2: You can tailor them to your specific needs.
- 13:50Speaker 1: The book provides a clear example on page eighty seven, okay,
- 13:54Speaker 1: where a view factory is defined for the auth routs.
- 13:57Speaker 2: All right, so that's handling all your authentic stuff.
- 14:00Speaker 1: It's fascinating how they use the path struct to define
- 14:03Speaker 1: the base URL and then register each individual view using
- 14:08Speaker 1: the service config struct.
- 14:09Speaker 2: Yeah, it's very elegant solution.
- 14:11Speaker 1: That's very structured and elegant.
- 14:12Speaker 2: Yeah. Rust is all about that elegance.
- 14:15Speaker 1: Okay, So let's switch gears again and talk about data handling.
- 14:19Speaker 2: All right, data data data.
- 14:22Speaker 1: They've already seen how handles Jason.
- 14:25Speaker 2: Right, surday is the Jason Master.
- 14:26Speaker 1: But what about extracting data, okay from incoming requests and
- 14:32Speaker 1: sending data back to the client.
- 14:34Speaker 2: So that's that that communication back and forth between the
- 14:37Speaker 2: client and server.
- 14:39Speaker 1: So rust has an elegant solution for this as well.
- 14:41Speaker 1: Of course it does using structs and trades.
- 14:44Speaker 2: Structs and traits to the rescue.
- 14:45Speaker 1: They really are the backbone of rest. We really are
- 14:49Speaker 1: providing this amazing flexibility and organization.
- 14:52Speaker 2: All about structure, it is.
- 14:54Speaker 1: So let's imagine you have a form on your website
- 14:57Speaker 1: for users to enter their name and email address Classic
- 15:01Speaker 1: contact form, act contact form.
- 15:02Speaker 2: Yeah, you would define as struct in rusty to represent
- 15:06Speaker 2: that data with fields for name and email.
- 15:10Speaker 1: Yep, make a nice little struct.
- 15:12Speaker 2: And then in your Arctic's WebView you specify that you
- 15:16Speaker 2: expect this struct as the request body. Gotcha, and Actics
- 15:21Speaker 2: automatically takes care of de serializing the incoming Jason data
- 15:26Speaker 2: into that struct.
- 15:26Speaker 1: It just handles it for you, So no.
- 15:28Speaker 2: More manual parsing, potential errors.
- 15:31Speaker 1: It's all taken care of.
- 15:32Speaker 2: Pactics, just hands you the data.
- 15:34Speaker 1: Yep, nice and neat.
- 15:35Speaker 2: Neatly packaged and ready to use, ready to go. And
- 15:38Speaker 2: sending data back to the client follows a similar approach
- 15:41Speaker 2: pretty much.
- 15:41Speaker 1: Yeah, you can take a restruct, serialize it into Jason
- 15:45Speaker 1: using SORDE, and send it back.
- 15:47Speaker 2: As the response. So again, it's about making that data
- 15:49Speaker 2: exchange smooth and effortless.
- 15:51Speaker 1: Exactly, it should be a seamless process.
- 15:54Speaker 2: It's amazing how Rust manages to make even complex tasks yeah,
- 15:59Speaker 2: feel so streamlined and elegant.
- 16:01Speaker 1: It's a beautiful language.
- 16:02Speaker 2: But there's one crucial aspect we haven't touched upon yet.
- 16:05Speaker 1: Security.
- 16:06Speaker 2: Oh yeah, we can't forget about security.
- 16:08Speaker 1: How do we ensure our web applications are protected from
- 16:11Speaker 1: those malicious attacks?
- 16:13Speaker 2: So security is paramount and Rust lays a really strong
- 16:17Speaker 2: foundation for building secure applications. But we can't just rely
- 16:21Speaker 2: on the language alone. We need to be mindful of
- 16:25Speaker 2: common vulnerabilities and take steps to mitigate them.
- 16:28Speaker 1: So the book covers several security considerations from guarding against
- 16:33Speaker 1: cross site scripting EXSS attacks to implementing proper authentication and
- 16:39Speaker 1: authorization mechanisms.
- 16:41Speaker 2: Yeah, all the important stuff.
- 16:42Speaker 1: So it's a combination of leveraging Rust's strengths and following
- 16:47Speaker 1: those best practices for secure coding.
- 16:49Speaker 2: Yeah, you gotta have both.
- 16:50Speaker 1: So let's start with croft site scripting or EXSS. Right,
- 16:54Speaker 1: it's a common attack where malicious code is injected into
- 16:57Speaker 1: a web page that other users.
- 17:00Speaker 2: Yep, so it's like a way to sneak in code.
- 17:02Speaker 1: Imagine a comment section on a blog, Okay, where users
- 17:05Speaker 1: can submit their HTML.
- 17:07Speaker 2: Oh yeah, that's a classic example.
- 17:08Speaker 1: If an attacker manages to inject a malicious script, they
- 17:12Speaker 1: could potentially steal user data or hijack accounts, all sorts
- 17:17Speaker 1: of bad things. So that's why sanitizing user input is
- 17:20Speaker 1: so crucial.
- 17:21Speaker 2: It is absolutely crucial. You can't trust anything that comes
- 17:23Speaker 2: from the user.
- 17:24Speaker 1: Especially when dealing with HTML.
- 17:26Speaker 2: Yeah, especially EACHTML, because that's where a lot of these
- 17:28Speaker 2: attacks happen.
- 17:29Speaker 1: The book offers best practices for escaping special characters and
- 17:33Speaker 1: ensuring that users submitted content is displayed safely.
- 17:36Speaker 2: Right, So you're essentially neutralizing any potentially harmful code.
- 17:40Speaker 1: It's about treating all incoming data with a healthy dose
- 17:43Speaker 1: of suspicion.
- 17:44Speaker 2: Exactly, trust no one.
- 17:46Speaker 1: Now let's talk about authentication and authorization. Okay, we briefly
- 17:51Speaker 1: mentioned JWT's and password hashing earlier.
- 17:54Speaker 2: Right, those are our security heroes, but how do.
- 17:56Speaker 1: We actually implement those in our rust web app.
- 18:00Speaker 2: So jbt's and password hashing are key components of a
- 18:03Speaker 2: secure authentication system, and the book provides a great walkthrough
- 18:08Speaker 2: on how to implement them, starting with defining a user model. Okay,
- 18:12Speaker 2: much like the to do item model.
- 18:13Speaker 1: Right, so we're creating those rust strucks again exactly.
- 18:16Speaker 2: We love our structure that mirror.
- 18:18Speaker 1: The structure of our data, this time representing a user
- 18:21Speaker 1: in our system.
- 18:22Speaker 2: Right, so you'd have feels for things like username, email address,
- 18:25Speaker 2: and of course the password.
- 18:27Speaker 1: Okay, but with passwords we have to be extra careful. Right.
- 18:30Speaker 2: Oh yeah, passwords are super sensitive.
- 18:32Speaker 1: Storing them in plaintext is a big no no.
- 18:35Speaker 2: Absolutely, you never want to store passwords in plain text.
- 18:37Speaker 1: It's like leaving the keys to the kingdom out in
- 18:40Speaker 1: the open.
- 18:41Speaker 2: Yeah, it's just asking for trouble.
- 18:43Speaker 1: So that's where password hashing comes into play.
- 18:45Speaker 2: Password hashing to the rescue.
- 18:46Speaker 1: Instead of storing the actual password, right, we use a
- 18:50Speaker 1: special function to transform it into a scrambled, unreadable format.
- 18:54Speaker 2: Exactly. It's like turning it into gibberish.
- 18:57Speaker 1: The book suggests using the b crypt crate for this, okay,
- 19:00Speaker 1: and provides an example on page one seventy.
- 19:03Speaker 2: B crypt is a good choice. It's a very strong
- 19:05Speaker 2: hashing algorithm.
- 19:07Speaker 1: Okay. So even if someone gets their hands on those
- 19:09Speaker 1: hashed passwords, they're essentially useless pretty much.
- 19:13Speaker 2: Yeah. Yeah, it's extremely difficult to reverse that process.
- 19:17Speaker 1: It's like trying to solve the complex puzzle without all.
- 19:19Speaker 2: The pieces, exactly. It's a very difficult puzzle.
- 19:22Speaker 1: Okay. So we've hashed and stored those passwords securely.
- 19:26Speaker 2: All right, so far, so good.
- 19:27Speaker 1: What happens when a user tries to log in?
- 19:30Speaker 2: So, when a user tries to log in, we take
- 19:33Speaker 2: the password they enter, okay, hash it using the same
- 19:36Speaker 2: algorithm and compare the resulting hash to the one store
- 19:41Speaker 2: in the database.
- 19:42Speaker 1: So we're not comparing the actual.
- 19:43Speaker 2: Passwords, No, we're comparing the hashes.
- 19:45Speaker 1: Right, we're comparing the gibberius exactly, and if the hash
- 19:48Speaker 1: is match, we know they entered the correct password okay,
- 19:51Speaker 1: and if everything checks out all right.
- 19:53Speaker 2: If they pass the test, we issue them a JA
- 19:57Speaker 2: ANDBA Jason web tooken act like a digital passport containing
- 20:02Speaker 2: information about the user in their session. This token is
- 20:04Speaker 2: then sent back to the client, who usually stores it
- 20:07Speaker 2: in their browser okay and presents it with each subsequent request.
- 20:12Speaker 1: So it's like they're carrying their identification with them as
- 20:15Speaker 1: they navigate the application.
- 20:16Speaker 2: Is their ticket to ride it.
- 20:17Speaker 1: On the server side, we have middleware checking those JWTs,
- 20:22Speaker 1: acting like security guards.
- 20:25Speaker 2: Making sure everything's legit, ensuring.
- 20:27Speaker 1: That only authorized users can access certain areas.
- 20:31Speaker 2: Exactly. It's all about control access.
- 20:32Speaker 1: And if the JWT is invalid.
- 20:35Speaker 2: Or missing right, then we deny access.
- 20:37Speaker 1: We deny the request and send back an.
- 20:39Speaker 2: Error exactly, you shall not pass.
- 20:41Speaker 1: So it's a multi layered approach to security.
- 20:44Speaker 2: It is.
- 20:44Speaker 1: It is using different tools and techniques to protect our
- 20:47Speaker 1: application and its users.
- 20:49Speaker 2: You got to keep everyone safe.
- 20:50Speaker 1: We've covered a lot of ground here. We have from
- 20:53Speaker 1: closures and asynchronous programming to security and data handling all
- 20:59Speaker 1: the important stuff. What other gems are hidden?
- 21:01Speaker 2: Oh, there are plenty more gems.
- 21:02Speaker 1: Within this world of rust Web development.
- 21:04Speaker 2: Rust is full of surprises.
- 21:06Speaker 1: So the book touches on logging, okay, a crucial aspect
- 21:10Speaker 1: of monitoring and debugging web applications.
- 21:13Speaker 2: Logging is essential.
- 21:15Speaker 1: You gotta know what's going on, especially when building RESTful.
- 21:18Speaker 2: Services, especially in production, when things go wrong.
- 21:20Speaker 1: When things go wrong, you need to know why. So
- 21:22Speaker 1: logging it's like having a detailed record.
- 21:25Speaker 2: Yes, it's like a history book of.
- 21:26Speaker 1: Everything that's happening within our application.
- 21:28Speaker 2: Exactly, so you can go back and see what happened.
- 21:30Speaker 1: The book introduces some popular Rust logging libraries, like what
- 21:37Speaker 1: like log in on vlogger. Those are good ones, making
- 21:40Speaker 1: it super easy to integrate logging into our applications.
- 21:44Speaker 2: Yeah, they make it really straightforward.
- 21:45Speaker 1: But there's one more crucial piece of the puzzle okay, deployment.
- 21:50Speaker 2: Ah, yes, deployment the final frontier.
- 21:53Speaker 1: How do we actually get our rust web application out
- 21:56Speaker 1: into the world.
- 21:57Speaker 2: Out into the wild for others to use. So the
- 22:00Speaker 2: book uses AWS as an example. Deploying to an easy
- 22:04Speaker 2: two instance using Docker.
- 22:06Speaker 1: Docker, our trusty friend.
- 22:08Speaker 2: Docker is a lifesaver.
- 22:09Speaker 1: It's like packaging your application and all its dependencies into
- 22:13Speaker 1: this neat little container that can run anywhere exactly.
- 22:16Speaker 2: It's like a little self contained.
- 22:17Speaker 1: World regardless of the underlying operating system. Yep, it's platform
- 22:22Speaker 1: agnostic and AWSC two provides those virtual servers in the
- 22:26Speaker 1: cloud ready to host our containerized applications.
- 22:30Speaker 2: Yeah, it's a match made in heaven.
- 22:31Speaker 1: But how do we get our Docker image from our
- 22:34Speaker 1: computer to the cloud.
- 22:35Speaker 2: So that's where services like Docker Hub come in, which
- 22:38Speaker 2: act as a registry where you can store and share
- 22:41Speaker 2: your Docker images.
- 22:43Speaker 1: So you build your image locally, push it to Docker Hub,
- 22:46Speaker 1: and then your server on AWS can easily pull it
- 22:49Speaker 1: down and run it.
- 22:50Speaker 2: Yeah, it's a very streamline process.
- 22:52Speaker 1: We've covered so much ground in this deep.
- 22:54Speaker 2: Dive we have. It's been a whirlwind, from.
- 22:56Speaker 1: The fundamentals of RUSS to handling requests, securing our app
- 23:01Speaker 1: and even deploying it to the cloud.
- 23:04Speaker 2: The whole nine yards just mind boggling. It is a
- 23:07Speaker 2: lot to take.
- 23:08Speaker 1: In, but we've only scratched the surface.
- 23:09Speaker 2: Oh yeah, just the tip of the iceberg.
- 23:11Speaker 1: Of what's possible with Rust web development.
- 23:13Speaker 2: Rust is an incredibly powerful language.
- 23:15Speaker 1: So what other adventures await us?
- 23:17Speaker 2: Oh, there's always more to explore, and.
- 23:19Speaker 1: What exciting new concepts will we uncover?
- 23:22Speaker 2: I guess you'll have to stay tuned to find out.
- 23:24Speaker 1: So, dear listener, take a break, Yeah, grab a coffee
- 23:26Speaker 1: or something. Let all this information sink in. There's a
- 23:30Speaker 1: lot to process, and we'll be back with Part three.
- 23:33Speaker 2: Looking forward to it to.
- 23:34Speaker 1: Dive into even more fascinating aspects of Rust.
- 23:37Speaker 2: I see you soon.
- 23:39Speaker 1: Welcome back to our rest journey. We've covered so much already,
- 23:43Speaker 1: like how Rust handles data, manages memory, and even secures
- 23:48Speaker 1: our web applications.
- 23:49Speaker 2: It's been quite the adventure it has.
- 23:51Speaker 1: Now I'm really eager to dive into the practical side
- 23:53Speaker 1: of things, like interacting with databases and building those powerful,
- 23:57Speaker 1: RESTful APIs.
- 23:59Speaker 2: You're in for a tree database interaction is a cornerstone
- 24:03Speaker 2: it is of most web applications, and thankfully Rust has
- 24:06Speaker 2: a really powerful tool for that. Diesel the orm we
- 24:09Speaker 2: briefly touched on before.
- 24:10Speaker 1: Yeah, Diesel lets us communicate with our Postgres school database
- 24:14Speaker 1: using nice, clean, type safe rest code.
- 24:17Speaker 2: It's a beautiful thing.
- 24:18Speaker 1: I'm excited to see it in action.
- 24:19Speaker 2: Yeah, me too.
- 24:20Speaker 1: So the book provides a fantastic step by step guide
- 24:23Speaker 1: on using diesels, starting with setting up our development environment using.
- 24:28Speaker 2: Docker ah Docker our trusty friends.
- 24:31Speaker 1: Our trusty friend for creating those isolated environments.
- 24:33Speaker 2: Right. It keeps everything nice and contained.
- 24:35Speaker 1: It's like having a mini virtual machine dedicated to our database,
- 24:40Speaker 1: keeping things organized and preventing conflicts with other software on
- 24:43Speaker 1: our system.
- 24:44Speaker 2: Exactly. It's like its own little sandbox.
- 24:46Speaker 1: So docer makes setting up and managing these environments a breeze.
- 24:50Speaker 2: Oh yeah, it takes all the headache out of it.
- 24:51Speaker 1: The book then guides you through defining our database schemakay
- 24:56Speaker 1: using Diesel's migration system.
- 24:58Speaker 2: Ah. Migration's very import.
- 25:00Speaker 1: Like version control for our database. Right.
- 25:02Speaker 2: Yeah, that's a great way to think about it.
- 25:04Speaker 1: So they allow us to track changes, roll back to
- 25:06Speaker 1: previous versions if made, and keep everything organized.
- 25:10Speaker 2: It makes collaboration so much easier, I bet, yeah, because
- 25:14Speaker 2: everybody can be working on their own migrations and then
- 25:17Speaker 2: you just apply them in order and it all works out.
- 25:19Speaker 1: So Diesel makes this process very smooth, it does it?
- 25:23Speaker 1: Does You create these migration files that describe the changes
- 25:27Speaker 1: you want to make to your database, and Diesel takes
- 25:30Speaker 1: care of applying them in the correct order.
- 25:32Speaker 2: Yeah. It even has a command line tool does it
- 25:34Speaker 2: to simplify running those migrations.
- 25:36Speaker 1: So it's like a one stop shop pretty much. Yeah,
- 25:39Speaker 1: I'm looking at an example on page one fifty six.
- 25:41Speaker 1: It seems pretty straightforward.
- 25:43Speaker 2: Yeah, it's very intuitive.
- 25:44Speaker 1: You define the migration file and inside you write SQL
- 25:48Speaker 1: statements to create or modify tables.
- 25:51Speaker 2: So it's still SQL under the hood. It is, but
- 25:53Speaker 2: Diesel just gives you a nice way to manage it.
- 25:56Speaker 1: And the beauty of it is that Diesel ensures that
- 25:58Speaker 1: those migrations are applied in correct sequence, preventing any inconsistencies
- 26:04Speaker 1: or conflicts that could arise from out of order changes.
- 26:06Speaker 2: It's like a safety net for your database.
- 26:08Speaker 1: It takes a lot of the headache out of database management,
- 26:10Speaker 1: oh for sure.
- 26:11Speaker 2: For sure.
- 26:11Speaker 1: Okay, so we've defined our schema, we've run our migrations.
- 26:15Speaker 2: Now we need to create some Rust models, okay that
- 26:18Speaker 2: represent those database tables.
- 26:20Speaker 1: So these models are like the bridge between our RUST
- 26:24Speaker 1: code and the database, right.
- 26:26Speaker 2: Yeah, they're the intermediaria.
- 26:27Speaker 1: Making interacting with data types safe and easy to manage,
- 26:30Speaker 1: and they.
- 26:31Speaker 2: Keep our code nice and clean.
- 26:32Speaker 1: So we're essentially creating Rust structs.
- 26:35Speaker 2: We love our structure.
- 26:36Speaker 1: That mirror the structure of our table exactly.
- 26:38Speaker 2: Each field in the struct corresponds to a column in
- 26:42Speaker 2: the database table.
- 26:43Speaker 1: I love how Rust encourages us to think about these
- 26:45Speaker 1: data structures and types.
- 26:47Speaker 2: It makes the code so much more explicit and readable.
- 26:50Speaker 1: It really does.
- 26:51Speaker 2: Yeah, and Diesel leverages this to its advantage. It makes
- 26:54Speaker 2: working with databases in Rust a really enjoyable experience.
- 26:58Speaker 1: I bet so. No more wrestling with raw SQL queries.
- 27:01Speaker 2: No more raw sequel unless you really want.
- 27:02Speaker 1: It, unless you really want to.
- 27:04Speaker 2: But Diesel can handle most things for you.
- 27:07Speaker 1: I'm looking at this example on page one sixty one. Okay,
- 27:09Speaker 1: where they define a model for a to do item.
- 27:13Speaker 2: Right, the trustee to do list.
- 27:15Speaker 1: They're using this table macro, which seems to be doing
- 27:18Speaker 1: all the heavy lifting of mapping that's stretched to the
- 27:22Speaker 1: database table.
- 27:23Speaker 2: Yeah. That macro is a lifesaver.
- 27:25Speaker 1: Taking care of all that boilerplate code for you.
- 27:27Speaker 2: Exactly. It just does all the work behind the scenes.
- 27:30Speaker 1: Okay, so we've got our model set up, right, how
- 27:32Speaker 1: do we actually use them to interact with the database.
- 27:35Speaker 2: So Diesel provides this really expressive query builder that allows
- 27:39Speaker 2: you to write database queries in this really type safe way.
- 27:44Speaker 1: So we're not just throwing raw SEQL queries at the database, no, no, no,
- 27:47Speaker 1: and hoping for the best.
- 27:48Speaker 2: Diesels are there to guide us and make sure we're
- 27:51Speaker 2: doing things correctly.
- 27:52Speaker 1: I see an example on page one sixty eight where
- 27:54Speaker 1: they're using diesel to fetch all the to do items
- 27:57Speaker 1: from the database. It's an interesting blend of that sequel
- 28:01Speaker 1: like syntax with those Rust function calls.
- 28:05Speaker 2: Yeah, it's a nice fusion of the two worlds. Is
- 28:07Speaker 2: so you get the familiarity of sequel, but with the
- 28:11Speaker 2: type safety of Rust.
- 28:12Speaker 1: This is fantastic. So we can build these sophisticated database
- 28:15Speaker 1: interactions all within the safety and structure of RUSS exactly.
- 28:18Speaker 1: But what about user authentication?
- 28:20Speaker 2: Ah? Yes, security.
- 28:21Speaker 1: We talked about jbts and password hashing.
- 28:24Speaker 2: Earlier, right, our security heroes.
- 28:26Speaker 1: How do we put those into practice?
- 28:28Speaker 2: Okay, so user authentication is crucial for any application it
- 28:32Speaker 2: is that handles sensitive data. Yeah, and the book does
- 28:35Speaker 2: not disappoint. I bet it provides a really detailed guide
- 28:38Speaker 2: on implementing authentication using jtabts and password hashing. And it
- 28:43Speaker 2: starts by defining a user model. Okay, much like we
- 28:46Speaker 2: did with our to do item model.
- 28:48Speaker 1: So again we're creating those Rust strucks that mirror the
- 28:51Speaker 1: structure of our data. We love our structs, this time
- 28:54Speaker 1: representing a user in our system.
- 28:57Speaker 2: Right, so we'll have fields for username, email address, and
- 29:01Speaker 2: the all important password.
- 29:02Speaker 1: But here's where we have to be extra careful, right, Oh.
- 29:05Speaker 2: Yeah, extra careful with passwords.
- 29:08Speaker 1: Storing them in plaintext is a huge security risk.
- 29:12Speaker 2: Absolutely, never store passwords in plain text.
- 29:14Speaker 1: It's like leaving the keys to the Kingdom out in
- 29:16Speaker 1: the open.
- 29:17Speaker 2: Yeah, it's just asking for trouble.
- 29:19Speaker 1: So that's where password hashing comes in to save the day.
- 29:22Speaker 2: Password hashing to the rescue.
- 29:24Speaker 1: Instead of storing the actual password, we use a special
- 29:27Speaker 1: function to transform it into a scrambled, unreadable format.
- 29:31Speaker 2: We turn it into gobbledygook.
- 29:33Speaker 1: The book suggests using the b crypt create okay and
- 29:36Speaker 1: provides an example on page one seventy nine.
- 29:38Speaker 2: B crypt is a good choice. It's a very strong
- 29:41Speaker 2: hashing algorithm.
- 29:42Speaker 1: So even if someone gets their hands on those hashed passwords,
- 29:46Speaker 1: they're essentially useless.
- 29:48Speaker 2: Yeah, it's extremely difficult to reverse that hashing process.
- 29:51Speaker 1: Okay, So when a user tries to log in, we
- 29:53Speaker 1: take the password they enter, right, hash it using the
- 29:56Speaker 1: same algorithm, and compare the resulting hash to the ones
- 30:00Speaker 1: in the database Exactly, we're comparing the gobbledygook, and if
- 30:03Speaker 1: the hashes match, we know they've entered the correct password.
- 30:06Speaker 2: That's how we know they're who they say they are.
- 30:08Speaker 1: And if everything checks out, what happens then?
- 30:11Speaker 2: Okay? So if the credentials are valid, we generate a
- 30:14Speaker 2: JWT that Jason webtok.
- 30:16Speaker 1: Can we talked about before, the digital passport.
- 30:18Speaker 2: Right, it's their ticket to ride.
- 30:20Speaker 1: Containing information about the user and their session exactly. Okay,
- 30:24Speaker 1: So we send this token back to the client, who
- 30:26Speaker 1: typically stores it in their browser and includes it in
- 30:28Speaker 1: each subsequent request.
- 30:30Speaker 2: Right, It's like their badge of authentication.
- 30:32Speaker 1: So on the server side, we need middleware right that
- 30:34Speaker 1: intercepts those requests, verifies the JWT, and only allows the
- 30:39Speaker 1: request to proceed if everything checks out.
- 30:42Speaker 2: Yeah, the middleware is like the bouncer at the club
- 30:44Speaker 2: checking IDs, making sure everyone's got the right credentials.
- 30:47Speaker 1: And if the JWT is invalid or missing, boot them out.
- 30:50Speaker 1: We deny the request and send back an ERA.
- 30:52Speaker 2: You shall not pass.
- 30:54Speaker 1: It's all about adding those layers of protection to ensure
- 30:57Speaker 1: that only authorized users can access specific resources or perform
- 31:01Speaker 1: certain actions within our application.
- 31:04Speaker 2: Security is a never ending battle it is, but rust
- 31:08Speaker 2: gives us the tools to fight it effectively.
- 31:10Speaker 1: Now that we have user authentication in place, are we
- 31:13Speaker 1: ready to build those APIs we've been talking about.
- 31:15Speaker 2: Let's do APIs or the backbone of the modern web?
- 31:18Speaker 1: They are?
- 31:19Speaker 2: Yeah.
- 31:19Speaker 1: So RESTful APIs are a way to structure our web
- 31:22Speaker 1: services to make them easily accessible and usable by other applications, right.
- 31:26Speaker 2: Exactly, think mobile apps, third party integrations, all sorts of things.
- 31:29Speaker 1: The book focuses on using actis web to build RESTful APIs.
- 31:34Speaker 2: Good choice.
- 31:35Speaker 1: Actics is great for that it is, and it highlights
- 31:38Speaker 1: these important concepts like statelessness, caching, and of course logging
- 31:42Speaker 1: all the essentials. So statelessness means that each request is independent, right.
- 31:46Speaker 2: Right, Each request is treated in isolation.
- 31:49Speaker 1: Making it easier to handle a large number of requests concurrently.
- 31:53Speaker 2: Exactly, it's all about scalability.
- 31:55Speaker 1: Caching helps boost performance by storing frequently accessed.
- 31:58Speaker 2: Data right, so we don't have to hit the data every.
- 32:00Speaker 1: Time, reducing the load on our servers.
- 32:02Speaker 2: Ye, keep those servers happy.
- 32:03Speaker 1: And logging provides those valuable insights into what's happening within
- 32:08Speaker 1: our API.
- 32:09Speaker 2: Right, It's like having a window into your application.
- 32:11Speaker 1: Helping us track down those issues and monitor performance.
- 32:15Speaker 2: Gotta love logs.
- 32:16Speaker 1: The book even touches on techniques like code on demand,
- 32:20Speaker 1: which sounds pretty powerful.
- 32:22Speaker 2: Code on demand is really interesting, it is. Yeah, it
- 32:25Speaker 2: lets you send code from the server to the client okay,
- 32:29Speaker 2: to be executed.
- 32:31Speaker 1: Interesting.
- 32:31Speaker 2: Yeah, it can be really powerful, Okay, but it also
- 32:34Speaker 2: comes with some security risks.
- 32:36Speaker 1: So you got to be careful.
- 32:37Speaker 2: Oh yeah, definitely.
- 32:38Speaker 1: Okay, So let's talk about.
- 32:39Speaker 2: Testing, okay, testing one, two, three.
- 32:42Speaker 1: We build all this amazing functionality, but how do we
- 32:45Speaker 1: actually ensure that it works as expected?
- 32:48Speaker 2: Testing is crucial. Yeah, you got to make sure your
- 32:50Speaker 2: code actually does what you think it does.
- 32:53Speaker 1: So Rust has excellent support for both unit testing right
- 32:56Speaker 1: where you test individual components in isolation.
- 32:59Speaker 2: Ye break it down into smaller pieces.
- 33:01Speaker 1: And functional testing okay, where you test the application.
- 33:04Speaker 2: As a whole, so testing the whole system from end
- 33:07Speaker 2: to end.
- 33:07Speaker 1: The book dedicates an entire chapter to testing that important.
- 33:11Speaker 1: It walks through unit testing individual modules using Rust's built
- 33:15Speaker 1: in testing framework, and then it dives into functional testing
- 33:19Speaker 1: using tools like Postman and Newman.
- 33:21Speaker 2: Ah, Postman and Newman great tools for API testing, So
- 33:24Speaker 2: Postman is a popular tool for testing APIs. Yeah, it's
- 33:28Speaker 2: like the industry standard.
- 33:29Speaker 1: It allows you to create collections of requests, define assertions
- 33:34Speaker 1: to verify the responses, and even automate the execution of
- 33:37Speaker 1: those tests.
- 33:38Speaker 2: Yeah. You can even run those tests for the command
- 33:40Speaker 2: line using nimen oh wow, which is great for continuous
- 33:43Speaker 2: integration and delivery.
- 33:44Speaker 1: So you can essentially automate the testing of your entire
- 33:47Speaker 1: API pretty much. Yeah, ensuring that everything keeps working as
- 33:51Speaker 1: you continue to develop and add new features.
- 33:53Speaker 2: It's all about automation.
- 33:55Speaker 1: That's incredibly powerful. It is, so it takes a lot
- 33:58Speaker 1: of that manual effort and guesswork out of testing.
- 34:00Speaker 2: Yeah. It frees you up to focus on the fun stuff, right.
- 34:03Speaker 1: And it allows us to catch those errors early and
- 34:05Speaker 1: keep our application stable and reliable as it grows.
- 34:08Speaker 2: Exactly.
- 34:09Speaker 1: Wow. Rust truly seems to.
- 34:10Speaker 2: Have it all. It does it does from powerful.
- 34:13Speaker 1: Language features and robust libraries to comprehensive tooling and a
- 34:18Speaker 1: strong emphasis on testing.
- 34:19Speaker 2: It's the whole package.
- 34:21Speaker 1: It feels like it was designed with the developers in mind.
- 34:23Speaker 2: It was. It was definitely built by developers for developers.
- 34:26Speaker 1: So to our listeners, we hope this deep dive has
- 34:29Speaker 1: sparked your own curiosity about Rust.
- 34:31Speaker 2: Yeah, go out there and give it a try.
- 34:33Speaker 1: It's a language that's reshaping the landscape of web development.
- 34:36Speaker 1: It really is, and we can't wait to see what
- 34:38Speaker 1: incredible things you create with it.
- 34:39Speaker 2: Yeah, the possibilities are endless.
- 34:41Speaker 1: Until next time, Happy coding, Happy coding.