Our great sponsors
-
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.
Crate author here, macro_magic takes an extremely tricky to implement (and thus rare in the wild) pattern for accessing the tokens of foreign items in Rust within proc/attribute macros by path, the decl macro callback pattern, and makes it easy to use and full accessible for people who want to leverage this superpower in their proc and attribute macros.
This approach enables some very exotic functionality that is normally impossible in rust proc macros, where you can decorate an item _anywhere_ with your attribute macro, and that item's tokens will become accessible when referenced by path as part of the input to any macro_magic-amplified proc or attribute macro.
Some crates/ecosystems making use of macro_magic already include:
- https://crates.io/crates/supertrait (enables default associated types in stable rust)
- https://github.com/paritytech/polkadot-sdk
Happy to answer any questions anyone may have about macro_magic!
Also worth noting, I am on the job market looking for my next Rust and/or CTO position :) -- info in bio
Related posts
- Looks like Polkadot co-founder Robert Habermeier is building a hyper-scalable data availability layer that scales with Polkadot cores.
- Polkadot Digest 28 Sep 2023
- Polkadot Digest 14 Sep 2023
- build error because found duplicate lang item `panic_impl`
- Deloitte Taps Polkadot Ecosystem's Kilt Blockchain for Digital Shipping Logistics