Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
cucumber
Cucumber testing framework for Rust. Fully native, no external test runners or dependencies. (by cucumber-rs)
-
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.
- Mocking: Have a look at mockall: https://github.com/asomers/mockall
- Integration test: I created my own mock servers in the past (here is the code for chapter 11 where I explain a more sophisticated setup: https://github.com/Rust-Web-Development/code/tree/main/ch_11/integration-tests)
And maybe reading documentation. In NodeJS, you can trial&error a bit more to figure out what works. In Rust, this time is spent on docs.rs and figuring out which type is returned and what it implements.
Hi Bastian. I am a lurker of r/rust and at best a rust newbie who only recently started glancing at rust for web development projects. Everywhere I turn, I see rocket.rs + sqlx. My question is why did you chose to write with warp over rocket.rs in your book? (Note that I am genuinely curious and have no strong opinions about rockets.rs)