-
The procedural macro implementations have become a bit unwieldy to maintain and add features to. They are essentially one function each, which has continued to grow in size as more features are implem…
-
This is something I've dreamed of having in the C++ googletest library. The difference is in Rust this seems possible!
```rust
#[googletest::StructMatcher]
struct MyType {
field_1: i32,
fie…
-
# Proposal
## Problem statement
`proc_macro` has no clear testing story on its own. It's also not possible to use it in build scripts.
## Motivating examples or use cases
The top t…
-
### Code
i have a presumably-extremely-broken proc macro which itself builds successfully but, when used, causes a segfault.
in `lib.rs`:
```Rust
use proc_macro::TokenStream;
use quote::{…
-
Create a `log!` macro to improve debuggability. It should use scarb's [procedural macro](https://docs.swmansion.com/scarb/docs/reference/procedural-macro.html) to create a `log!` macro call:
```
log…
-
Best practice in LV is to wrap functionality into an error handling case structure and have error ins and outs into all VIs.
We could add the same thing automatically to DLL functions with a derive…
-
I'm curious if the various code snippets like:
```
// nopw (%rax,%rax)
0x66, 0x66, 0x66, 0x66, 0x2e, 0x0f, 0x1f, 0x84, 0, 0, 0, 0, 0,
// mov %fs:0,%rax
0x64, 0x48, 0x8b, 0x04, 0x25, 0, 0, 0, 0,
…
-
[Procedural Macros in Rust – A Handbook for Beginners](https://www.freecodecamp.org/news/procedural-macros-in-rust/)
-
[Procedural Macros in Rust – A Handbook for Beginners](https://www.freecodecamp.org/news/procedural-macros-in-rust/)
-
Aspect-Oriented Programming allows the decorator pattern. How could it be added to this project?