Skip to content

Commit

Permalink
Add README stub.
Browse files Browse the repository at this point in the history
  • Loading branch information
flaviusb committed Dec 28, 2022
1 parent db6a3cf commit 8244400
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# do-with-in

This is a set of Rust packages that provides a basic form of use-site metaprogramming via staging for proc\_macros.

## What?

In its simplest form, you can wrap the invocation of some other proc\_macro with `do_with_in!` in order to do metaprogramming during the invocation of the thing - that is, in the input itself - using a fairly basic language. We don't have true unquote-splicing, as that is more or less impossible in Rust.

But ultimately, this package was made to allow for a specific kind of refactoring in my [fantasy cpu emulator](https://github.com/flaviusb/fantasy-cpu-emulator) that I could not achieve otherwise. Hopefully this will prove useful to other people as well.

## Maybe an example?

...

0 comments on commit 8244400

Please sign in to comment.