potent-quotables

Crates.iopotent-quotables
lib.rspotent-quotables
version0.1.0
created_at2025-11-22 18:00:28.773056+00
updated_at2025-11-22 18:00:28.773056+00
descriptionA powerful macro for quoting Rust syntax
homepage
repositoryhttps://github.com/wleslie/potent-quotables
max_upload_size
id1945528
size15,450
Will Leslie (wleslie)

documentation

README

This crate provides pq!, a powerful macro for quoting Rust syntax.

Similar to the well-known quote! macro, pq! is intended for use in proc-macros and code-generation tools. It allows you to write Rust code and treat it as data (specifically, as a TokenStream).

pq! distinguishes itself from quote! by providing additional features for greater expressiveness. In particular, pq! can:

  • interpolate arbitrary expressions instead of just identifiers;
  • embed control flow and other statements (not just repetition) directly into the sequence of tokens to be quoted.
Commit count: 0

cargo fmt