Our great sponsors
-
You should try reading the rust book, one of the first things it tells you is how to install rust
-
futures-batch
An adapter for futures, which chunks up elements and flushes them after a timeout — or when the buffer is full. (Formerly known as tokio-batch.)
Is there any ready-made way of doing that or do I have to roll my own? I found futures-batch but I can't make it work with tokio channels. I feel like I'm missing something obvious.
-
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.
-
Do you mean as part of build.rs? Yes, that's certainly doable, and has been done in the past. You can use env!("OUT_DIR") for that. Examples you may want to refer to include my mutagen crate and criterion.
-
What I'm interested in doing is creating something similar to Open Policy Agent but something which doesn't use Rego for the scripting language. I don't need anything super complex like OPA. What I do want is to implement a simple "policy as code" and allow end users to write a script (in this case Rhai) that can let them create more robust authorization policies.
-
tokio
A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
Hi r/rust! I want to use tokio for an online (via TCP) pub/sub network, but I can't figure out how. It seems tokio does not support topics/messages out-of-the-box. I have searched through many crates, most of which can do pub/sub but not through a TCP connection. Some guiding tips would be much appreciated!
-
As for clients/brokers for MQTT, the most well maintained looks to be rumqtt.
-
First time hearing about rhai, but there's a project in that space called Oso that's authored in Rust and uses a different DSL than Rego. You may or may not find it appealing.
-
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.
-
Maybe instead of re-running the program, you could just record its execution and work on that? (https://rr-project.org/)
-
Writing self-referential data structures is fairly difficult in Rust, even for experienced users. There's a good series that builds up several concepts that will be useful here even though it's about linked lists instead of trees: Learn Rust With Entirely Too Many Linked Lists
-
No, but here's an issue about it: https://github.com/rust-lang/rust/issues/53749