Our great sponsors
-
That error message is kinda bad (github issues one, two and three!) - with those fixed, it might look something like this:
-
While I was writing clippy-dirty, I used --message-format=json-diagnostic-rendered-ansi, which returns JSON objects with additional field called rendered that contains string with rendered message. Unless you want to somehow modify the message, I wouldn't re-invent the wheel and simply use that.
-
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.
-
Here's a real world example I've written.
-
mini-redis
Incomplete Redis client and server implementation using Tokio - for learning purposes only
The mini-redis project has an example of this.
-
If you need to pass arguments to rustc, try cargo rustc or RUSTFLAGS instead of invoking it manually. If you're cross-compiling, check out cross (uses Docker) or xargo.
-
To do this with traits you would need specialization but since you are using macros you should be able to use "Autoref-based stable specialization". Here is a playground which uses the latter approach to implement the wanted macro without using any nightly features.