Our great sponsors
-
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.
-
tokio
A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
After telling myself over and over that today is the day I start learning rust. I finally successfully built a (very small) cli for engram.
# Cargo.toml [package] name = "eg" version = "0.1.0" edition = "2021" # See more keys and their definitions at [https://doc.rust-lang.org/cargo/reference/manifest.html](https://doc.rust-lang.org/cargo/reference/manifest.html) [dependencies] reqwest = { version = "0.11", features = ["json", "cookies"] } tokio = { version = "1", features = ["full"] }
This is where the tokio library comes in to play. We add it to the Cargo.toml under [dependencies] .
Related posts
- A Rust controller for Kubernetes
- Cargo Script
- Scriptisto: "Shebang interpreter" that enables writing scripts in compiled langs
- Shipp – Deadly simple package manager (for C/C++)
- Cargo has never frustrated me like npm or pip has. Does Cargo ever get frustrating? Does anyone ever find themselves in dependency hell?