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
20
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
520
モジュールの深さについて / depth of module
nakabonne
0
130
Web API × Clean Architecture / CleanArchitecture Go
nakabonne
3
17k
Other Decks in Programming
See All in Programming
Milestoner
bkuhlmann
1
400
Changed Rules: Architectures with Lightweight Stores
manfredsteyer
PRO
0
230
From Spring Boot 2 to Spring Boot 3 with Java 21 and Jakarta EE
ivargrimstad
0
1.1k
try! Swift Tokyo 2024のLT枠に採択されたプロポーザルを出すときに考えていたこと
ski
0
340
SpringBoot+MyBatisで例外が出たときどこを見るか
syukai
0
110
CircleCIを活用して AWSへの継続的デリバリーを 実践する
coconala_engineer
1
230
ONE WEDGE_company_guide
1wedge_one
0
380
#phpcon_odawara オープン・クローズドなテストフィクスチャを求めて / open closed test fixtures
77web
3
220
本格ローグライク制作にEbitengineを選んでみた
nagainaganawa
0
290
品質とスピードを両立: TypeScriptの柔軟な型システムをバックエンドで活用する
kosui
8
2.2k
Java 22 Overview
kishida
1
170
Elm Form Validation
bkuhlmann
0
510
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
61
6.7k
Embracing the Ebb and Flow
colly
79
4.1k
Imperfection Machines: The Place of Print at Facebook
scottboms
258
12k
Music & Morning Musume
bryan
41
5.6k
Documentation Writing (for coders)
carmenintech
59
3.9k
The Illustrated Children's Guide to Kubernetes
chrisshort
29
46k
Building a Scalable Design System with Sketch
lauravandoore
455
32k
Unsuck your backbone
ammeep
662
57k
Building Better People: How to give real-time feedback that sticks.
wjessup
354
18k
How STYLIGHT went responsive
nonsquared
92
4.8k
Being A Developer After 40
akosma
56
580k
Producing Creativity
orderedlist
PRO
336
39k
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の基礎知識、コミュニティの温かさを知ることが出来ました