Premium Only Content
Demystifying FRAME Macro Magic | Substrate Seminar (full livestream)
In this seminar, we are joined by Parity core FRAME developer, Sam who steps us through how the FRAME pallet Rust macro parsing and expansion works through the lens of implementing a simple pallet macro. See the seminar lesson plan for more details and links to learning resources:
https://github.com/substrate-develope...
👉 Have a topic you’d like to propose for the next seminar? Submit a Github issue here: https://github.com/substrate-develope...
📺 Subscribe to this channel on Twitch: https://dashboard.twitch.tv/polkadotdev/
🗞 Sign up to the Substrate Developer newsletter for updates on all things Substrate: https://substrate.io/ecosystem/connec...
0:00 Intro
3:10 Sam’s background and current work
8:48 Why are macros so important for FRAME developers?
10:31 What are macros?
16:42 What are tokens?
19:00 Declarative macros in Rust
23:24 Procedural macros in Rust
29:31 Attribute proc macro example
33:09 Macro state tracking
38:01 The outer macro pattern
39:59 FRAME pallet outer macro pattern
46:14 Q: Does FRAME make it easier or harder for experienced Rust developers?
54:38: Q: Will it be possible to use an inner call in another file?
59:50 Q: When will Substrate move away from GitHub dependencies to crate dependencies?
1:01:35 Q: What are some of your favourite macros to use during runtime development?
1:04:00 FRAME pallet attribute macro stubs
1:09:46 Q: What’s an example of unhygienic macro code?
1:11:35 Demo: stepping through cargo expansion and adding the whitelist storage attribute
1:28:24 Recap
1:31:44 Q: What improvements would you like to see in FRAME?
1:33:50 Q: How does this fit into construct_runtime?
1:36:00 Q: What dev setup tips do you have for developers?
1:45:24 Q: Where can I learn more about the different FRAME macros?
1:48:07 Outro
1:51:50 Q: What do you advise for developers transitioning into Rust/Substrate?
#polkadot #substrate #rustlang #macros
---------------------------------------------------------------------------------------------------------------------------------------------
If you have any questions, reach out to the community on our social channels 👇
Discord: https://dot.li/discord
Element: https://matrix.to/#/#polkadot:web3.foundation
Twitter: https://twitter.com/Polkadot
Reddit: https://www.reddit.com/r/polkadot/
Subscribe to the newsletter: https://bit.ly/Polkadot_Newsletter
Polkadot Lightpaper: https://polkadot.network/Polkadot-lig...
Polkadot Wiki: https://wiki.polkadot.network/docs/en...
Polkadot Ambassador Program: https://polkadot.network/polkadot-amb...
-
LIVE
StoneMountain64
32 minutes agoBlack Ops 7 ZOMBIES 1st Playthrough of the BIGGEST MAP EVER
39 watching -
LIVE
FusedAegisTV
15 hours agoFUSEDAEGIS | This is Going to Take GOTY | Expedition 33 PART II
110 watching -
20:39
Professor Nez
1 hour agoNEW Epstein Leak Just Changed EVERYTHING!
5 -
LIVE
SilverFox
13 hours ago🔴LIVE - ARC Raiders - SilverFox x Grimm Hollywood - BETRAYAL DAY
86 watching -
LIVE
The Charlie Kirk Show
1 hour agoTrans Thomas Crooks? + Who Wants To Leave + Is Inflation Over?| Hassett, Emmons, Sec. Turner | 11.17
3,783 watching -
56:51
The Rubin Report
2 hours agoOnline Outrage After Michelle Obama Tries to Play the Victim Card
59.4K53 -
LIVE
LFA TV
19 hours agoLIVE & BREAKING NEWS! | MONDAY 11/17/25
2,615 watching -
LIVE
The Mel K Show
2 hours agoMORNINGS WITH MEL K - Stop Participating in Chaos-They Need You Distracted - 11-17-25
856 watching -
LIVE
The Shannon Joy Show
2 hours agoTrump Flip Flops On Epstein Files - Demands Release * MAGA & MAHA Pysops Crash & Burn While ‘America First’ Psyop Launches
254 watching -
1:01:26
Grant Stinchfield
19 hours agoEXPLOSSIVE NEW EMAILS REVEAL: DEMS TOOK ‘GET TRUMP’ ADVICE DIRECTLY FROM EPSTEIN!”
4.13K4