Back to BorrowScope
Related: Runtime White Paper
Quick Navigation
1. Introduction
2. The Instrumentation Challenge
3. How It Works
4. What Gets Instrumented
5. Usage Guide
6. Integration with Runtime
7. Limitations
8. Roadmap
borrowscope-macro
: Automatic Instrumentation
Procedural Macro for Rust Ownership Tracking
Author:
Mehmet Yalcinkaya, PhD
Senior Software Engineer
Date:
January 2026
Loading Abstract...
Table of Contents
1. Introduction
▶
2. The Instrumentation Challenge
2.1 Manual Instrumentation
2.2 Why Procedural Macros
▶
3. How It Works
3.1 The #[trace_borrow] Attribute
3.2 Transformation Pipeline
3.3 Code Generation
▶
4. What Gets Instrumented
4.1 Variable Bindings
4.2 Borrows and Moves
4.3 Function Calls
4.4 Scope and Drops
4.5 Smart Pointers
4.6 Concurrency Primitives
4.7 Control Flow
4.8 Expressions
4.9 Closures
4.10 Async/Await
▶
5. Usage Guide
5.1 Basic Usage
5.2 Configuration Options
5.3 Output Interpretation
6. Integration with Runtime
7. Limitations
8. Roadmap
Loading Introduction...
Loading The Instrumentation Challenge...
Loading How It Works...
Loading What Gets Instrumented...
Loading Usage Guide...
Loading Integration...
Loading Limitations...
Loading Roadmap...