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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
nakabonne
May 19, 2021
Programming
59
0
Share
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
750
モジュールの深さについて / depth of module
nakabonne
0
170
Web API × Clean Architecture / CleanArchitecture Go
nakabonne
3
18k
Other Decks in Programming
See All in Programming
セグメントとターゲットを意識するプロポーザルの書き方 〜採択の鍵は、誰に刺すかを見極めるマーケティング戦略にある〜
m3m0r7
PRO
0
570
Vibe NLP for Applied NLP
inesmontani
PRO
0
450
AWSコミュニティ活動は顧客のクラウド推進に効くのか / Do AWS community activities help customers adopt the cloud?
seike460
PRO
0
150
Road to RubyKaigi: Play Hard(ware)
makicamel
1
370
Server-Side Kotlin LT大会 vol.18 [Kotlin-lspの最新情報と Neovimのlsp設定例]
yasunori0418
1
170
Claude Codeをカスタムして自分だけのClaude Codeを作ろう
terisuke
0
140
10 Tips of AWS ~Gen AI on AWS~
licux
5
430
AI時代のエンジニアリングの原則 / Engineering Principles in the AI Era
haru860
0
570
Claude CodeでETLジョブ実行テストを自動化してみた
yoshikikasama
0
470
(Re)make Regexp in Ruby: Democratizing internals for the JIT
makenowjust
2
540
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
220
Coding as Prompting Since 2025
ragingwind
0
840
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
10
1.1k
Site-Speed That Sticks
csswizardry
13
1.2k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.6k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
340
A Tale of Four Properties
chriscoyier
163
24k
Claude Code のすすめ
schroneko
67
220k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
270
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
340
職位にかかわらず全員がリーダーシップを発揮するチーム作り / Building a team where everyone can demonstrate leadership regardless of position
madoxten
62
53k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
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の基礎知識、コミュニティの温かさを知ることが出来ました