Getting Started with Rust Cloudflare Workers

This page summarizes the projects mentioned and recommended in the original post on dev.to

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • serverless-rust

    Code to accompany Serverless Rust articles.

  • I should point out I am still relatively new to Rust so you might know of better Rust implementations of the Rust code below. In fact, I would love feedback on how I could improve the Rust code (drop comments below or add pull requests to the demo code repo). Instead of best practice Rust, this is more of a guide on how to get up and running with Rust Cloudflare Workers where I share some of the Rust I have learned. That said I hope you can benefit from the post if you already know Rust but want to know how to get going with Rust Cloudflare Workers.

  • Rustlings

    :crab: Small exercises to get you used to reading and writing Rust code!

  • Rustlings — a collection of small exercises you can run through to improve your Rust. Consider this if you prefer a more practical approach to learning, rather than reading the book,

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • serde

    Serialization framework for Rust

  • Reqwest and Serde are very powerful and you will probably use them a lot as you start using Rust Cloudflare Workers. See Reqwest docs as well as serde docs for more on how you can use them.

  • [package] name = "my-rust-cloudflare-worker" version = "0.1.0" authors = ["Blake Costa "] edition = "2018" description = "My first Rust Cloudflare Worker" repository = "https://github.com/example-profile/my-rust-cloudflare-worker" license = "BSD-3-Clause"

  • crates.io

    The Rust package registry

  • Cargo is the Rust package manager. To search for crates (Rust packages) try https://crates.io/. We won’t go into more detail on rustup and cargo here as you will probably find more complete information wherever you are learning Rust.

  • reqwest

    An easy and powerful Rust HTTP Client

  • Reqwest and Serde are very powerful and you will probably use them a lot as you start using Rust Cloudflare Workers. See Reqwest docs as well as serde docs for more on how you can use them.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts