Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Want to quickly put dbg! into external crates?
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
nakabonne
May 19, 2021
Programming
72
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Want to quickly put dbg! into external crates?
https://github.com/nakabonne/rhack
nakabonne
May 19, 2021
More Decks by nakabonne
See All by nakabonne
Write an embedded time-series database in Go
nakabonne
1
770
モジュールの深さについて / depth of module
nakabonne
0
170
Web API × Clean Architecture / CleanArchitecture Go
nakabonne
3
18k
Other Decks in Programming
See All in Programming
dRuby over BLE
makicamel
2
400
Skillsは効率化、Agentsは"自分の拡張"——Builder時代のエージェント編成(CC Night 2026)
wemra
1
180
代数的データ型って何が嬉しいの? #frontend_phpcon_do
kajitack
8
3.8k
TSKaigi Night Talks 2026_TypeScriptでサプライチェーンの整合性を型に閉じ込める
geekplus_tech
0
420
act1-costs.pdf
sumedhbala
0
130
JavaDoc 再入門
nagise
1
430
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.4k
Inside Stream API
skrb
1
810
AI 輔助遺留系統現代化的經驗分享
jame2408
1
1.1k
Creating Composable Callables in Contemporary C++
rollbear
0
170
どこまでゆるくて許されるのか
tk3fftk
0
270
Oxcを導入して開発体験が向上した話
yug1224
4
350
Featured
See All Featured
The Anti-SEO Checklist Checklist. Pubcon Cyber Week
ryanjones
0
170
Google's AI Overviews - The New Search
badams
0
1.1k
Design in an AI World
tapps
1
250
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
210
Technical Leadership for Architectural Decision Making
baasie
3
430
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
260
Unsuck your backbone
ammeep
672
58k
Mind Mapping
helmedeiros
PRO
1
270
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
440
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
508
140k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
450
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.2k
Transcript
Want to quickly put dbg! into external crates? Rust LT
Online #3
自己紹介 • 中尾 涼 (@nakabonne) • 普段: Go • Rust歴1ヶ月程度
書き始めて思ったこと • 依存ライブラリの挙動をデバッグしたい ◦ dbg!を外部クレートに書きたい • 外部クレートにパッチを送る際少し面倒 → シュッといじって、サッと捨てたい
簡単に解決できそう • ローカルの被参照クレートをコピー (.cargo/registry/src/<crate>) • Cargo.tomlのASTをいじって dependencies の参照先をそこに向ける • 向き先を戻すにはCargo.tomlをUndoするだけ
rhack - github.com/nakabonne/rhack
rhack - github.com/nakabonne/rhack
rhack - github.com/nakabonne/rhack
Good first issues • Add flag to undo to only
undo specific package #3 ◦ rhack undo reqwest • Add flag to also delete local file contents #4 ◦ rhack undo --purge
まとめ Rustの基礎知識、コミュニティの温かさを知ることが出来ました