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
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
nakabonne
May 19, 2021
Programming
70
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
760
モジュールの深さについて / depth of module
nakabonne
0
170
Web API × Clean Architecture / CleanArchitecture Go
nakabonne
3
18k
Other Decks in Programming
See All in Programming
Moments When Things Go Wrong
aurimas
3
140
フロントエンドとバックエンドで「1文字」を揃えよう
youkidearitai
PRO
0
170
The Arts and Crafts of Work in the AI Era — Toward Mastery in Software Development
kuranuki
1
710
3Dシーンの圧縮
fadis
1
590
AIチームを指揮するOSS「TAKT」活用術 / How to Use “TAKT,” an OSS Tool for Orchestrating AI Teams
nrslib
6
800
作って学ぶ、 JSX (TSX) ランタイムの基本
syumai
7
1.5k
Composerを使ったサプライチェーン攻撃の様子を眺めてみる #phpstudy
o0h
PRO
2
220
DynamoDBには集計系のクエリがないけどなんとかしたい
musan
1
130
AI時代のUIはどこへ行く?その2!
yusukebe
19
6.5k
OSもどきOS
arkw
0
400
net-httpのHTTP/2対応について
naruse
0
430
今さら聞けないCancellationToken
htkym
0
220
Featured
See All Featured
First, design no harm
axbom
PRO
2
1.2k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.2k
The Pragmatic Product Professional
lauravandoore
37
7.3k
Test your architecture with Archunit
thirion
1
2.3k
Leveraging Curiosity to Care for An Aging Population
cassininazir
1
260
Building Flexible Design Systems
yeseniaperezcruz
330
40k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.5k
The Language of Interfaces
destraynor
162
27k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Making Projects Easy
brettharned
120
6.7k
brightonSEO & MeasureFest 2025 - Christian Goodrich - Winning strategies for Black Friday CRO & PPC
cargoodrich
3
720
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
820
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の基礎知識、コミュニティの温かさを知ることが出来ました