-
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.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
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,
-
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"
-
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 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.