Skip to content
Cracked
AI
Problems
Tracks
Roadmap
Articles
Leaderboard
Search
Ctrl K
Mode:
Rust
PyTorch
JAX
Python
Rust
C++
PyTorch
JAX
Python
Rust
C++
Log in
Sign up
Problems
Tracks
Articles
Roadmap
Leaderboard
Set up the runtime
Log in
Sign up
PyTorch
JAX
Python
Rust
C++
Radio
We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Macros practice problems in Rust
Search problems
Difficulty:
Easy
Medium
Hard
Category:
Primitives
Framework
End-to-End
Research
Tag:
macros
clippy
traits
ownership
iterators
unsafe
borrowing
concurrency
strings
performance
drop
async
collections
errors
lifetimes
api-design
option
slices
allocation
closures
E0382
generics
edition-2024
macro-rules
ffi
metaprogramming
rc
structs
match
refcell
enums
modules
patterns
e0502
idiom
trait-objects
futures
interior-mutability
panic
raw-pointers
clone
dyn
E0277
guards
Mutex
parsing
smart-pointers
soundness
atomics
capstone
derive
determinism
E0507
executor
floats
hashmap
layout
moves
newtype
ordering
Show more tags
Sort:
Title
Easiest first
Hardest first
Recently added
Clear filters
Showing 16 of 16
Status
Title
Difficulty
Category
Tags
A macro-generated FFI binding layer
Hard
End-to-End
macros
ffi
unsafe
clippy
extern-c
idiom
A mini DSL: compile-time expression evaluation
Hard
Primitives
macros
macro-rules
dsl
recursion
const-eval
metaprogramming
Building std's macros: vec!, matches!, a HashMap literal
Medium
Primitives
macros
macro-rules
standard-library
collections
metaprogramming
Callbacks and TT bundling
Hard
Primitives
macros
macro-rules
callbacks
expansion-order
metaprogramming
Counting repetitions without ${count} (which is still unstable)
Medium
Primitives
macros
macro-rules
repetition
const-eval
metaprogramming
expr is atomic, tt is not: the precedence trap
Medium
Primitives
macros
macro-rules
fragment-specifiers
precedence
metaprogramming
Follow-set rules: why the compiler rejects your matcher
Hard
Primitives
macros
macro-rules
follow-sets
fragment-specifiers
edition-2024
Fragment specifiers: the complete tour
Medium
Primitives
macros
macro-rules
fragment-specifiers
metaprogramming
edition-2024
Internal rules and push-down accumulation
Hard
Primitives
macros
macro-rules
code-generation
accumulation
metaprogramming
Macro hygiene: why your variable didn't leak
Medium
Primitives
macros
macro-rules
hygiene
name-resolution
metaprogramming
Macro recursion and incremental TT munchers
Hard
Primitives
macros
macro-rules
recursion
tt-muncher
metaprogramming
macro_rules! scoping is not item scoping
Hard
Framework
macros
macro_rules
scoping
panic
e0433
matches! and the lints that push you toward it
Easy
Primitives
matches
macros
patterns
clippy
Nested repetition and zipping metavariables
Hard
Primitives
macros
macro-rules
repetition
nesting
metaprogramming
Repetition: $(...),* and friends
Easy
Primitives
macros
macro-rules
repetition
variadics
metaprogramming
Your first macro_rules!: matchers and transcribers
Easy
Primitives
macros
macro-rules
metaprogramming
tokens