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.
-
sqlx
🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite. (by launchbadge)
-
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.
I don't recall procedural macros ever having that ability (the original RFC said that syntax wouldn't be supported). There were syntax extensions (like proto!) which supported that ability. And I believe macro_rules! definitions were implemented as an extension using that syntax.
You can find a comparison of several concurrent maps here: https://github.com/xacrimon/conc-map-bench
Rust intentionally keeps the standard library as small as possible. This means its missing features preset in many other languages' standard libraries. In fact, std::sync::mpsc is seen by some to be a mistake to have in the standard library: the crossbeam implementation should usually be used instead.
What are the best crates for mqtt these days? I found mqtt-rs which looks pretty promising - are there any other ones I should be aware of?
I don’t know whether it’s the best but Paho MQTT Rust works nicely for me. It’s a wrapper around the C lib and the set up rather straight forward too. Support for MQTT 3.1 and 5.
Hands-down SQLite, always :-) Easy to setup, easy to debug, with excellent support from sqlx.
If you're looking for something pure Rustic, then I've heard a few good things about sled, too.