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
nakabonne
May 19, 2021
Programming
0
36
Want to quickly put dbg! into external crates?
https://github.com/nakabonne/rhack
nakabonne
May 19, 2021
Tweet
Share
More Decks by nakabonne
See All by nakabonne
Write an embedded time-series database in Go
nakabonne
1
690
モジュールの深さについて / depth of module
nakabonne
0
150
Web API × Clean Architecture / CleanArchitecture Go
nakabonne
3
18k
Other Decks in Programming
See All in Programming
2分台で1500examples完走!爆速CIを支える環境構築術 - Kaigi on Rails 2025
falcon8823
3
3.1k
Go言語の特性を活かした公式MCP SDKの設計
hond0413
1
180
なぜあの開発者はDevRelに伴走し続けるのか / Why Does That Developer Keep Running Alongside DevRel?
nrslib
3
370
GraphQL×Railsアプリのデータベース負荷分散 - 月間3,000万人利用サービスを無停止で
koxya
1
1.1k
階層構造を表現するデータ構造とリファクタリング 〜1年で10倍成長したプロダクトの変化と課題〜
yuhisatoxxx
3
910
CSC509 Lecture 06
javiergs
PRO
0
240
そのpreloadは必要?見過ごされたpreloadが技術的負債として爆発した日
mugitti9
2
3k
XP, Testing and ninja testing ZOZ5
m_seki
2
290
開発生産性を上げるための生成AI活用術
starfish719
1
170
ててべんす独演会〜Flowの全てを語ります〜
tbsten
1
220
NetworkXとGNNで学ぶグラフデータ分析入門〜複雑な関係性を解き明かすPythonの力〜
mhrtech
3
1k
CSC509 Lecture 05
javiergs
PRO
0
290
Featured
See All Featured
How to Ace a Technical Interview
jacobian
280
24k
Practical Orchestrator
shlominoach
190
11k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
Bash Introduction
62gerente
615
210k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
15k
The Power of CSS Pseudo Elements
geoffreycrofte
79
6k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
27k
Building a Modern Day E-commerce SEO Strategy
aleyda
43
7.7k
The Cult of Friendly URLs
andyhume
79
6.6k
Fashionably flexible responsive web design (full day workshop)
malarkey
407
66k
[RailsConf 2023] Rails as a piece of cake
palkan
57
5.9k
Making the Leap to Tech Lead
cromwellryan
135
9.5k
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の基礎知識、コミュニティの温かさを知ることが出来ました