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
35
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
680
モジュールの深さについて / depth of module
nakabonne
0
150
Web API × Clean Architecture / CleanArchitecture Go
nakabonne
3
18k
Other Decks in Programming
See All in Programming
WebAssemblyインタプリタを書く ~Component Modelを添えて~
ruccho
1
910
CEDEC2025 長期運営ゲームをあと10年続けるための0から始める自動テスト ~4000項目を50%自動化し、月1→毎日実行にした3年間~
akatsukigames_tech
0
150
TanStack DB ~状態管理の新しい考え方~
bmthd
2
330
Jakarta EE Core Profile and Helidon - Speed, Simplicity, and AI Integration
ivargrimstad
0
190
ゲームの物理
fadis
5
1.5k
RDoc meets YARD
okuramasafumi
1
110
The state patternの実践 個人開発で培ったpractice集
miyanokomiya
0
150
The State of Fluid (2025)
s2b
0
200
ワープロって実は計算機で
pepepper
2
1.4k
Rancher と Terraform
fufuhu
0
100
Portapad紹介プレゼンテーション
gotoumakakeru
1
130
AIでLINEスタンプを作ってみた
eycjur
1
200
Featured
See All Featured
Build The Right Thing And Hit Your Dates
maggiecrowley
37
2.8k
Navigating Team Friction
lara
189
15k
GraphQLの誤解/rethinking-graphql
sonatard
71
11k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
31
2.2k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.5k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
10
1k
Rebuilding a faster, lazier Slack
samanthasiow
83
9.1k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
16k
Thoughts on Productivity
jonyablonski
69
4.8k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Fireside Chat
paigeccino
39
3.6k
Faster Mobile Websites
deanohume
309
31k
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の基礎知識、コミュニティの温かさを知ることが出来ました