www.shuttle.rs
In this article we're going to talk about how you can get started with Loco - a new Rust web framework that builds on Axum and takes inspiration from Ruby on Rails. We will cover getting started using controllers, migrations, middleware and...
Observations/Thoughts
2024-01-03
~6 min read
www.shuttle.rs
Although Ruby on Rails is not as popular as it used to be, in its prime, it was a force to be reckoned with. Many successful businesses were built from it - Airbnb and Shopify being two of many big names coming out of this, although more re...
Project/Tooling Updates
2023-12-27
~7 min read
www.shuttle.rs
To this day, Actix Web remains an extremely formidable competitor in the Rust web backend ecosystem. It's no wonder that it's lasted so long; despite any impact that previous events may have had on it, it's still going strong and is one of...
Rust Walkthroughs
2023-12-20
~8 min read
www.shuttle.rs
Although Rust is often perceived as being an intimidating language to learn, there have been many advancements in terms of making Rust accessible to everybody - particularly in the Rust backend web framework space. With Rocket v0.5 being re...
Rust Walkthroughs
2023-12-20
~11 min read
www.shuttle.rs
When it comes to learning Rust, often the first real program you'll make might be a command-line interface (CLI) application. Although command-line tools are quite common, they are also a good way to practice learning the basics of a langua...
Rust Walkthroughs
2023-12-13
~7 min read
www.shuttle.rs
With so many backend web frameworks in the Rust web ecosystem, it's difficult to know what to choose. Although much further in the past you might have seen Rocket shoot to the top of the leadeboard for popularity, nowadays it's typically Ax...
Rust Walkthroughs
2023-12-13
~13 min read
www.shuttle.rs
Type safety: two words that, when put together, have the potential to cause plenty of heated debate. While many software engineers advocate for type safety no matter the situation, other people of note like DHH would consider themselves to...
Observations/Thoughts
2023-12-06
~8 min read
www.shuttle.rs
A commonly said piece of feedback from someone who's learning Rust as a second language tends to be that enums are far better supported in Rust than any other language. A cursory glance at Google for "enums in Rust" returns a result in the...
Rust Walkthroughs
2023-11-29
~6 min read
www.shuttle.rs
We'll be making a website in the form of a Rust static site generator that we'll be able to add our own pages to. If you want to skip straight to the project, deploy your own instance and try it out, you can follow the instructions below: R...
Rust Walkthroughs
2023-11-15
~10 min read
www.shuttle.rs
Whether you're a new web developer or more experienced senior developer, testing is a key component of being able to make sure your web applications are bug-free and work as intended. Although at first you might only want to do manual testi...
Observations/Thoughts
2023-11-08
~12 min read
www.shuttle.rs
When it comes to Rust, although it's lauded as a language that is memory-safe, blazing fast and efficient, it's also known for having a compiler that will complain at you for everything (hence terms like "compiler-driven development" becomi...
Rust Walkthroughs
2023-11-01
~5 min read
www.shuttle.rs
Shuttle Launchpad #10: Serving HTML Hello and welcome to a new edition of Shuttle Launchpad! First of all, we want to welcome all the new subscribers to Launchpad! There has been quite an influx in the last couple of days, and we are glad y...
Observations/Thoughts
2023-10-25
~7 min read
www.shuttle.rs
Introduction# When it comes to writing an API, sometimes you might have several data sources and want to coalesce them into one easy-to-query API on the frontend. This is where GraphQL comes in: an query language made for APIs and declarati...
Rust Walkthroughs
2023-10-18
~7 min read
www.shuttle.rs
When it comes to using SQL, the Rust ecosystem has us spoiled for choice: thankfully, there are already a few that have come out on top which we can use. SQLx is a purely async, runtime-agnostic Rust SQL crate that allows you to use compile...
Observations/Thoughts
2023-10-11
~8 min read
www.shuttle.rs
Oh no, not another 'Is Rust better than Go?' article. Seriously, haven't we all had our fill of these comparisons by now? But before you sigh in exasperation, hear us out! Many comparisons between Go and Rust emphasize their differences in...
Observations/Thoughts
2023-10-04
~27 min read
www.shuttle.rs
Introduction# With so many different libraries at our disposal for outputting logs in Rust, it's difficult to know which one to choose. When println!, dbg! and eprintln! don't cut it, having a way to structure your logs is extremely importa...
Miscellaneous
2023-09-27
~11 min read
www.shuttle.rs
Introduction# Have you ever thought about making your own database of potential businesses for lead generation or product price data so you can get your products at the cheapest price without any effort? Web scraping is what lets you do tha...
Observations/Thoughts
2023-09-13
~5 min read
www.shuttle.rs
Introduction# Large language models are mostly known for their use in chatbots like ChatGPT. Impressive as they are, that's not their only use case. A simple technique called "embedding" allows us to quantify any textual information and use...
Miscellaneous
2023-09-13
~9 min read
www.shuttle.rs
In this post, we'll be learning how to implement OAuth 2.0 in Rust by writing a backend service that will interact with Google OAuth and will interact with OpenID Connect ("OIDC") service from Google to retrieve a user's email. We'll first...
Rust Walkthroughs
2023-09-06
~5 min read
www.shuttle.rs
Introduction# In the dynamic landscape of web development, Rust has emerged as a language of choice for building safe and performant applications. As Rust's popularity grows, so does the array of web frameworks designed to harness its stren...
Observations/Thoughts
2023-08-30
~13 min read