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.
-
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.
I'm having issues understanding how Axum handles multiple requests at the same time and if they block each other. I've made a minimal example repo that shows the issue I'm not really understanding: https://github.com/conways-glider/axum-blocking-example
Blanket implementation with default methods in the trait definition: https://github.com/barafael/monitor/blob/main/src/variant_1.rs
I used https://crates.io/crates/strum to iterate over the enum variants, otherwise you'd have to hardcode the list of variants and wouldn't gain anything.
Funny enough that you mention something like the 8080. I know its on a smaller scale, but I actually did a Chip8 emulator in Rust which can be found here. This is the one project that I went all out on attempting to be both as idiomatic and easy to follow as possible in-case I ever go back to improve or add some things. It may be of interest to you as you would be able to see how idiomatic Rust can work while emulating hardware.
&mut * is reborrowing which is allowed
I'm using vscode with rust-analyzer and seem to have come up against a current "type-mismatch" bug related to trait objects and integer types. My code compiles/works and clippy checks out just fine, however I'm still left with red squigglies/errors in vscode. Is there a way to tell rust-analyzer to ignore a single line until the bug is fixed? Something along the lines of... // rust-analyzer: ignore?
Hi! For a pet project of mine I wrote a small crate to more easily deal with anonymous pipes. So far it seems to be working as intended (haven't done any extensive testing yet).
The Rust book is a good start.
Related posts
- What are some common verbose code patterns in rust and unique ways to reduce the said verbosity?
- Published my first Crate today to map Environment Variables to Enums
- Two-way alternative to enum_kinds crate?
- Disappointing experience with 'Command-Line Rust': Seeking more comprehensive Rust resources
- Best way of associating enums with values?